python-pocket-lint-vl.spec 1.8 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071
  1. %{!?python_sitelib: %define python_sitelib %(%{__python} -c "from distutils.sysconfig import get_python_lib; print get_python_lib()")}
  2. Name: python-pocket-lint
  3. Version: 0.5.4
  4. Release: 3%{?_dist_release}
  5. Summary: Pocket-lint a composite linter and style checker
  6. Summary(ja): ソースコードのコンポジットリンターとスタイルチェッカー Pocket-lint
  7. Group: Development/Languages
  8. License: MIT
  9. URL: https://launchpad.net/pocket-lint
  10. Source0: http://launchpad.net/pocket-lint/trunk/%{version}/+download/pocketlint-%{version}.tar.gz
  11. BuildRoot: %{_tmppath}/%{name}-%{version}-root
  12. BuildRequires: python-devel
  13. BuildRequires: python-setuptools
  14. Obsoletes: python-pocketlint
  15. %description
  16. Pocket-lint has several notable features:
  17. * Provides a consistent report of issues raised by the subordinate checkers.
  18. * Alternate Reports can be written to change the report, or integrate the report
  19. into another application.
  20. * Supports checking of multiple source types:
  21. * Python syntax and style
  22. * Python doctest style
  23. * XML/HTML style and entities
  24. * CSS style
  25. * JavaScript syntax and style
  26. * Plain text
  27. * Supports reporting:
  28. * Python doctests
  29. * CSS
  30. * XML/HTML
  31. %prep
  32. %setup -q -n pocketlint-%{version}
  33. %build
  34. %{__python} setup.py build
  35. %install
  36. rm -rf $RPM_BUILD_ROOT
  37. %{__python} setup.py install -O1 --skip-build --root $RPM_BUILD_ROOT
  38. %clean
  39. rm -rf $RPM_BUILD_ROOT
  40. %files
  41. %defattr(-,root,root,-)
  42. %doc AUTHORS COPYING ChangeLog HACKING INSTALL PKG-INFO README
  43. %{_bindir}/pocketlint
  44. %{python_sitelib}/*
  45. %changelog
  46. * Sun Oct 3 2010 Toshiharu Kudoh <toshi.kd2@gmail.com> - 0.5.4-3
  47. - rebuilt with rpm-4.8.1 for pkg-config
  48. * Tue Aug 17 2010 Toshiharu Kudoh <toshi.kd2@gmail.com> - 0.5.4-2
  49. - changed package name a little
  50. * Mon Aug 16 2010 Toshiharu Kudoh <toshi.kd2@gmail.com> - 0.5.4-1
  51. - initial build for VineSeed