]> git.pld-linux.org Git - packages/pylint.git/blob - pylint.spec
- improved pl description
[packages/pylint.git] / pylint.spec
1 %include        /usr/lib/rpm/macros.python
2 Summary:        Python tool that checks if a module satisfy a coding standard
3 Summary(pl):    Pythonowe narzêdzie sprawdzaj±ce zgodno¶æ modu³u ze standardem kodowania
4 Name:           pylint
5 Version:        0.2.1
6 Release:        1
7 License:        GPL
8 Group:          Development/Languages/Python
9 Source0:        ftp://ftp.logilab.fr/pub/%{name}/%{name}-%{version}.tar.gz
10 # Source0-md5:  96e2061d47722fb28fc342e7c574daec
11 URL:            http://www.logilab.org/projects/%{name}/view
12 BuildRequires:  python-modules >= 2.2.1
13 BuildRequires:  rpm-pythonprov
14 Requires:       python-logilab-common >= 0.3.4
15 BuildArch:      noarch
16 BuildRoot:      %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
17
18 %description
19 Python tool that checks if a module satisfy a coding standard.
20
21 %description -l pl
22 Narzêdzie sprawdzaj±ce zgodno¶æ modu³ów napisanych w jêzyku Python
23 z regu³ami tworzenia kodu ¼ród³owego.
24
25 %prep
26 %setup -q
27
28 %build
29 python setup.py build
30
31 %install
32 rm -rf $RPM_BUILD_ROOT
33 install -d $RPM_BUILD_ROOT%{_sysconfdir}
34
35 python setup.py install --optimize=2 --root=$RPM_BUILD_ROOT
36
37 install examples/pylintrc $RPM_BUILD_ROOT%{_sysconfdir}/
38
39 find $RPM_BUILD_ROOT%{py_sitedir} -name \*.py -exec rm -f {} \;
40
41 # see install section of python-logilab-common for explanation
42 rm -f $RPM_BUILD_ROOT%{py_sitedir}/logilab/__init__.*
43
44 %clean
45 rm -rf $RPM_BUILD_ROOT
46
47 %files
48 %defattr(644,root,root,755)
49 %doc ChangeLog TODO README examples/* doc/*.txt
50 %attr(755,root,root) %{_bindir}/*
51 %config(noreplace) %verify(not mtime md5) %{_sysconfdir}/*
52 %{py_sitedir}/*
This page took 0.064233 seconds and 4 git commands to generate.