]> git.pld-linux.org Git - packages/pylint.git/blobdiff - pylint.spec
- ver. 0.6.4
[packages/pylint.git] / pylint.spec
index 948f22e12aaa018ba0967aecc3b3dbff0a994110..f8ff417baae7b5c40ffeb8af2ba91bae0c085820 100644 (file)
@@ -1,17 +1,17 @@
-%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)
 
@@ -19,11 +19,11 @@ 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
@@ -34,16 +34,19 @@ install -d $RPM_BUILD_ROOT%{_sysconfdir}
 
 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}/*
This page took 0.059731 seconds and 4 git commands to generate.