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