]> git.pld-linux.org Git - packages/pylint.git/blob - pylint.spec
- ver. 0.2.1, nfy
[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:        0.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 Patch0:         %{name}-checkers.patch
12 Patch1:         %{name}-rc.patch
13 URL:            http://www.logilab.org/projects/%{name}/view
14 BuildRequires:  python-modules >= 2.2.1
15 BuildRequires:  rpm-pythonprov
16 Requires:       python-logilab-common
17 BuildArch:      noarch
18 BuildRoot:      %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
19
20 %description
21 Python tool that checks if a module satisfy a coding standard.
22
23 %description -l pl
24 Pythonowe narzêdzie sprawdzaj±ce zgodno¶æ modu³u ze standardem
25 kodowania.
26
27 %prep
28 %setup -q
29 #%patch0 -p1
30 #%patch1 -p1
31
32 %build
33 python setup.py build
34
35 %install
36 rm -rf $RPM_BUILD_ROOT
37 install -d $RPM_BUILD_ROOT%{_sysconfdir}
38
39 python setup.py install --optimize=2 --root=$RPM_BUILD_ROOT
40
41 install examples/pylintrc $RPM_BUILD_ROOT%{_sysconfdir}/
42
43 find $RPM_BUILD_ROOT%{py_sitedir} -name \*.py -exec rm -f {} \;
44
45 # see install section of python-logilab-common for explanation
46 rm -f $RPM_BUILD_ROOT%{py_sitedir}/logilab/__init__.*
47
48 %clean
49 rm -rf $RPM_BUILD_ROOT
50
51 %files
52 %defattr(644,root,root,755)
53 %doc ChangeLog TODO README examples/*
54 %attr(755,root,root) %{_bindir}/*
55 %config(noreplace) %verify(not mtime md5) %{_sysconfdir}/*
56 %{py_sitedir}/*
This page took 0.093907 seconds and 4 git commands to generate.