%include /usr/lib/rpm/macros.python Summary: Python tool that checks if a module satisfy a coding standard Summary(pl): Pythonowe narzędzie sprawdzające zgodność modułu ze standardem kodowania Name: pylint Version: 0.2.1 Release: 1 License: GPL Group: Development/Languages/Python Source0: ftp://ftp.logilab.fr/pub/%{name}/%{name}-%{version}.tar.gz # Source0-md5: 96e2061d47722fb28fc342e7c574daec URL: http://www.logilab.org/projects/%{name}/view BuildRequires: python-modules >= 2.2.1 BuildRequires: rpm-pythonprov Requires: python-logilab-common >= 0.3.4 BuildArch: noarch BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) %description Python tool that checks if a module satisfy a coding standard. %description -l pl Narzędzie sprawdzające zgodność modułów napisanych w języku Python z regułami tworzenia kodu źródłowego. %prep %setup -q %build python setup.py build %install rm -rf $RPM_BUILD_ROOT install -d $RPM_BUILD_ROOT%{_sysconfdir} python setup.py install --optimize=2 --root=$RPM_BUILD_ROOT install examples/pylintrc $RPM_BUILD_ROOT%{_sysconfdir}/ find $RPM_BUILD_ROOT%{py_sitedir} -name \*.py -exec rm -f {} \; # see install section of python-logilab-common for explanation rm -f $RPM_BUILD_ROOT%{py_sitedir}/logilab/__init__.* %clean rm -rf $RPM_BUILD_ROOT %files %defattr(644,root,root,755) %doc ChangeLog TODO README examples/* doc/*.txt %attr(755,root,root) %{_bindir}/* %config(noreplace) %verify(not mtime md5) %{_sysconfdir}/* %{py_sitedir}/*