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