-%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
-Release: 0.2
+Version: 0.6.4
+Release: 1
License: GPL
Group: Development/Languages/Python
-Source0: ftp://ftp.logilab.fr/pub/%{name}/%{name}-%{version}.tar.gz
-# Source0-md5: 4447725b8860416264c99d656124c94d
-URL: http://www.logilab.org/projects/%{name}/view
+Source0: ftp://ftp.logilab.fr/pub/pylint/%{name}-%{version}.tar.gz
+# Source0-md5: 7b15dc734ea91995256da22ad6a3aeb0
+URL: http://www.logilab.org/projects/pylint/view
+BuildRequires: python
BuildRequires: python-modules >= 2.2.1
-BuildRequires: rpm-pythonprov
-Requires: python-logilab-common
+%pyrequires_eq python-modules
+Requires: python-logilab-common >= 0.10.0
BuildArch: noarch
BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
Python tool that checks if a module satisfy a coding standard.
%description -l pl
-Pythonowe narzêdzie sprawdzaj±ce zgodno¶æ modu³u ze standardem
-kodowania.
+Narzêdzie sprawdzaj±ce zgodno¶æ modu³ów napisanych w jêzyku Python
+z regu³ami tworzenia kodu ¼ród³owego.
%prep
-%setup -q -n logilab-pylint-0.2.0
+%setup -q
%build
python setup.py build
python setup.py install --optimize=2 --root=$RPM_BUILD_ROOT
-install examples/pylintrc $RPM_BUILD_ROOT%{_sysconfdir}/
+install examples/pylintrc $RPM_BUILD_ROOT%{_sysconfdir}
-find $RPM_BUILD_ROOT%{py_sitedir} -name \*.py -exec rm -f {} \;
+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 ChangeLog TODO README examples/* doc/*.txt
%attr(755,root,root) %{_bindir}/*
%config(noreplace) %verify(not mtime md5) %{_sysconfdir}/*
-%{py_sitedir}/*
+%{py_sitescriptdir}/*