]> git.pld-linux.org Git - packages/pylint.git/blob - pylint.spec
- ver. 0.6.4
[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.4
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:  7b15dc734ea91995256da22ad6a3aeb0
10 URL:            http://www.logilab.org/projects/pylint/view
11 BuildRequires:  python
12 BuildRequires:  python-modules >= 2.2.1
13 %pyrequires_eq  python-modules
14 Requires:       python-logilab-common >= 0.10.0
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_sitescriptdir} -name \*.py -exec rm -f {} \;
40
41 # see install section of python-logilab-common for explanation
42 rm -f $RPM_BUILD_ROOT%{py_sitescriptdir}/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_sitescriptdir}/*
This page took 0.076 seconds and 4 git commands to generate.