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