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