]>
Commit | Line | Data |
---|---|---|
bce5cba7 AF |
1 | # TODO: |
2 | # - include examples in package | |
3 | # | |
baeb5efa | 4 | Summary: Python tool that checks if a module satisfy a coding standard |
24b2f055 | 5 | Summary(pl.UTF-8): Pythonowe narzędzie sprawdzające zgodność modułu ze standardem kodowania |
baeb5efa | 6 | Name: pylint |
f5425a3b JK |
7 | Version: 0.24.0 |
8 | Release: 1 | |
baeb5efa | 9 | License: GPL |
10 | Group: Development/Languages/Python | |
e5a7405a | 11 | Source0: ftp://ftp.logilab.fr/pub/pylint/%{name}-%{version}.tar.gz |
f5425a3b | 12 | # Source0-md5: 71df67d15f3aa1895c543b40a6955ed3 |
b2624a44 | 13 | URL: http://www.logilab.org/project/pylint |
2ae24f33 | 14 | BuildRequires: python-devel |
baeb5efa | 15 | BuildRequires: python-modules >= 2.2.1 |
2ae24f33 | 16 | BuildRequires: rpm-pythonprov |
7c199dbc | 17 | BuildRequires: rpmbuild(macros) >= 1.219 |
07c65085 | 18 | %pyrequires_eq python-modules |
87946be2 PZ |
19 | Requires: python-logilab-astng >= 0.21.0 |
20 | Requires: python-logilab-common >= 0.53.0 | |
93850ade | 21 | Suggests: python-devel-src |
baeb5efa | 22 | BuildArch: noarch |
23 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) | |
24 | ||
25 | %description | |
26 | Python tool that checks if a module satisfy a coding standard. | |
27 | ||
65b81fbb JR |
28 | %description -l pl.UTF-8 |
29 | Narzędzie sprawdzające zgodność modułów napisanych w języku Python | |
30 | z regułami tworzenia kodu źródłowego. | |
c85c0a5a | 31 | |
7c199dbc KK |
32 | %package gui |
33 | Summary: GUI for pylint | |
24b2f055 | 34 | Summary(pl.UTF-8): Graficzny interfejs użytkownika dla pylinta |
7c199dbc KK |
35 | Group: Development/Languages/Python |
36 | Requires: %{name} = %{version}-%{release} | |
37 | Requires: python-tkinter | |
38 | ||
39 | %description gui | |
40 | Tk based GUI for pylint. | |
41 | ||
65b81fbb JR |
42 | %description gui -l pl.UTF-8 |
43 | Oparty na bibliotece Tk graficzny interfejs użytkownika dla pylinta. | |
7c199dbc | 44 | |
baeb5efa | 45 | %prep |
c38ff617 | 46 | %setup -q |
baeb5efa | 47 | |
48 | %build | |
49 | python setup.py build | |
50 | ||
51 | %install | |
52 | rm -rf $RPM_BUILD_ROOT | |
4ec6f79e | 53 | install -d $RPM_BUILD_ROOT{%{_sysconfdir},%{_mandir}/man1} |
baeb5efa | 54 | |
2ae24f33 KK |
55 | python setup.py install \ |
56 | --optimize=2 \ | |
57 | --root=$RPM_BUILD_ROOT | |
4efaa76d | 58 | |
4ec6f79e | 59 | install man/*.1 $RPM_BUILD_ROOT%{_mandir}/man1 |
0f9e6dd1 | 60 | install examples/pylintrc $RPM_BUILD_ROOT%{_sysconfdir}/pylintrc |
4efaa76d | 61 | |
7c199dbc | 62 | %py_postclean |
baeb5efa | 63 | |
64 | %clean | |
65 | rm -rf $RPM_BUILD_ROOT | |
66 | ||
67 | %files | |
68 | %defattr(644,root,root,755) | |
bce5cba7 | 69 | %doc ChangeLog README examples/* doc/*.txt |
ebaa5e6b | 70 | %attr(755,root,root) %{_bindir}/epylint |
7c199dbc | 71 | %attr(755,root,root) %{_bindir}/pylint |
ebaa5e6b | 72 | %attr(755,root,root) %{_bindir}/pyreverse |
7c199dbc | 73 | %attr(755,root,root) %{_bindir}/symilar |
b4896848 | 74 | %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/pylintrc |
4452dff6 | 75 | %{py_sitescriptdir}/* |
4ec6f79e | 76 | %{_mandir}/man1/* |
7c199dbc KK |
77 | |
78 | %files gui | |
79 | %defattr(644,root,root,755) | |
80 | %attr(755,root,root) %{_bindir}/pylint-gui |