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.7.0 Release: 1 License: GPL Group: Development/Languages/Python Source0: ftp://ftp.logilab.fr/pub/pylint/%{name}-%{version}.tar.gz # Source0-md5: aad2e0f360e5af7cb861784985b974d2 URL: http://www.logilab.org/projects/pylint/view BuildRequires: python BuildRequires: python-modules >= 2.2.1 %pyrequires_eq python-modules Requires: python-logilab-common >= 0.10.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},%{_mandir}/man1} python setup.py install --optimize=2 --root=$RPM_BUILD_ROOT install man/*.1 $RPM_BUILD_ROOT%{_mandir}/man1 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}/* %{_mandir}/man1/*