%{!?python_sitelib: %define python_sitelib %(%{__python} -c "from distutils.sysconfig import get_python_lib; print get_python_lib()")}
Name: python-pocket-lint
Version: 0.5.21
Release: 1%{?_dist_release}
Summary: Pocket-lint a composite linter and style checker
Summary(ja): ソースコードのコンポジットリンターとスタイルチェッカー Pocket-lint
Group: Development/Languages
License: MIT
URL: https://launchpad.net/pocket-lint
Source0: http://launchpad.net/pocket-lint/trunk/%{version}/+download/pocketlint-%{version}.tar.gz
BuildRoot: %{_tmppath}/%{name}-%{version}-root
BuildArch: noarch
BuildRequires: python-devel
BuildRequires: python-setuptools
Obsoletes: python-pocketlint
%description
Pocket-lint has several notable features:
* Provides a consistent report of issues raised by the subordinate checkers.
* Alternate Reports can be written to change the report, or integrate the report
into another application.
* Supports checking of multiple source types:
* Python syntax and style
* Python doctest style
* XML/HTML style and entities
* CSS style
* JavaScript syntax and style
* Plain text
* Supports reporting:
* Python doctests
* CSS
* XML/HTML
%prep
%setup -q -n pocketlint-%{version}
%build
%{__python} setup.py build
%install
rm -rf $RPM_BUILD_ROOT
%{__python} setup.py install -O1 --skip-build --root $RPM_BUILD_ROOT
%clean
rm -rf $RPM_BUILD_ROOT
%files
%defattr(-,root,root,-)
%doc AUTHORS COPYING ChangeLog HACKING INSTALL PKG-INFO README
%{_bindir}/pocketlint
%{python_sitelib}/*
%changelog
* Mon Sep 19 2011 Toshiharu Kudoh <toshi.kd2@gmail.com> - 0.5.21-1
- new upstream release
* Thu Jun 09 2011 Toshiharu Kudoh <toshi.kd2@gmail.com> - 0.5.19-1
- new upstream release
* Wed May 18 2011 Toshiharu Kudoh <toshi.kd2@gmail.com> - 0.5.17-1
- new upstream release
* Wed May 4 2011 Toshiharu Kudoh <toshi.kd2@gmail.com> - 0.5.14-1
- new upstream release
- changed BuildArch to noarch
* Sun Dec 19 2010 Toshiharu Kudoh <toshi.kd2@gmail.com> - 0.5.5-1
- new upstream release
* Sun Oct 3 2010 Toshiharu Kudoh <toshi.kd2@gmail.com> - 0.5.4-3
- rebuilt with rpm-4.8.1 for pkg-config
* Tue Aug 17 2010 Toshiharu Kudoh <toshi.kd2@gmail.com> - 0.5.4-2
- changed package name a little
* Mon Aug 16 2010 Toshiharu Kudoh <toshi.kd2@gmail.com> - 0.5.4-1
- initial build for VineSeed
git-svn-id: http://trac.vinelinux.org/repos/projects/specs@4793 ec354946-7b23-47d6-9f5a-488ba84defc7