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