python-pocketlint-vl.spec 1.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263
  1. %{!?python_sitelib: %define python_sitelib %(%{__python} -c "from distutils.sysconfig import get_python_lib; print get_python_lib()")}
  2. Name: python-pocketlint
  3. Version: 0.5.4
  4. Release: 1%{?_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. %description
  15. Pocket-lint has several notable features:
  16. * Provides a consistent report of issues raised by the subordinate checkers.
  17. * Alternate Reports can be written to change the report, or integrate the report
  18. into another application.
  19. * Supports checking of multiple source types:
  20. * Python syntax and style
  21. * Python doctest style
  22. * XML/HTML style and entities
  23. * CSS style
  24. * JavaScript syntax and style
  25. * Plain text
  26. * Supports reporting:
  27. * Python doctests
  28. * CSS
  29. * XML/HTML
  30. %prep
  31. %setup -q -n pocketlint-%{version}
  32. %build
  33. %{__python} setup.py build
  34. %install
  35. rm -rf $RPM_BUILD_ROOT
  36. %{__python} setup.py install -O1 --skip-build --root $RPM_BUILD_ROOT
  37. %clean
  38. rm -rf $RPM_BUILD_ROOT
  39. %files
  40. %defattr(-,root,root,-)
  41. %doc AUTHORS COPYING ChangeLog HACKING INSTALL PKG-INFO README
  42. %{_bindir}/pocketlint
  43. %{python_sitelib}/*
  44. %changelog
  45. * Mon Aug 16 2010 Toshiharu Kudoh <toshi.kd2@gmail.com> - 0.5.4-1
  46. - initial build for VineSeed