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