%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.4.1 Release: 1 License: GPL Group: Development/Languages/Python Source0: ftp://ftp.logilab.fr/pub/pylint/%{name}-%{version}.tar.gz # Source0-md5: 4b6409582a77ebfeb05f2c5a399790dc URL: http://www.logilab.org/projects/%{name}/view BuildRequires: python-modules >= 2.2.1 BuildRequires: rpm-pythonprov Requires: python-logilab-common >= 0.5.0 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_sitescriptdir} -name \*.py -exec rm -f {} \; # see install section of python-logilab-common for explanation rm -f $RPM_BUILD_ROOT%{py_sitescriptdir}/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_sitescriptdir}/*