]> git.pld-linux.org Git - packages/pylint.git/blame - pylint.spec
- bump astng req
[packages/pylint.git] / pylint.spec
CommitLineData
bce5cba7
AF
1# TODO:
2# - include examples in package
3#
baeb5efa 4Summary: Python tool that checks if a module satisfy a coding standard
24b2f055 5Summary(pl.UTF-8): Pythonowe narzędzie sprawdzające zgodność modułu ze standardem kodowania
baeb5efa 6Name: pylint
ad173d2e 7Version: 0.28.0
d354537a 8Release: 1
baeb5efa 9License: GPL
10Group: Development/Languages/Python
ad173d2e
AM
11Source0: https://bitbucket.org/logilab/pylint/get/%{name}-version-%{version}.tar.bz2
12# Source0-md5: 6680efb92319ca65158b9ab5e6d26a81
8b70ac82 13Patch0: %{name}-type_error.patch
ad173d2e 14URL: http://www.pylint.org/
2ae24f33 15BuildRequires: python-devel
baeb5efa 16BuildRequires: python-modules >= 2.2.1
2ae24f33 17BuildRequires: rpm-pythonprov
7c199dbc 18BuildRequires: rpmbuild(macros) >= 1.219
ad173d2e 19BuildRequires: sphinx-pdg
07c65085 20%pyrequires_eq python-modules
b4835e9c 21Requires: python-logilab-astng >= 0.24.3
87946be2 22Requires: python-logilab-common >= 0.53.0
93850ade 23Suggests: python-devel-src
baeb5efa 24BuildArch: noarch
25BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
26
27%description
28Python tool that checks if a module satisfy a coding standard.
29
65b81fbb
JR
30%description -l pl.UTF-8
31Narzędzie sprawdzające zgodność modułów napisanych w języku Python
32z regułami tworzenia kodu źródłowego.
c85c0a5a 33
7c199dbc
KK
34%package gui
35Summary: GUI for pylint
24b2f055 36Summary(pl.UTF-8): Graficzny interfejs użytkownika dla pylinta
7c199dbc
KK
37Group: Development/Languages/Python
38Requires: %{name} = %{version}-%{release}
39Requires: python-tkinter
40
41%description gui
42Tk based GUI for pylint.
43
65b81fbb
JR
44%description gui -l pl.UTF-8
45Oparty na bibliotece Tk graficzny interfejs użytkownika dla pylinta.
7c199dbc 46
baeb5efa 47%prep
ad173d2e
AM
48%setup -q -c
49cd logilab-pylint-*
8b70ac82
JK
50%patch0 -p1
51
baeb5efa 52%build
ad173d2e 53cd logilab-pylint-*
baeb5efa 54python setup.py build
55
ad173d2e
AM
56%{__make} -C doc text
57
baeb5efa 58%install
ad173d2e 59cd logilab-pylint-*
baeb5efa 60rm -rf $RPM_BUILD_ROOT
4ec6f79e 61install -d $RPM_BUILD_ROOT{%{_sysconfdir},%{_mandir}/man1}
baeb5efa 62
2ae24f33
KK
63python setup.py install \
64 --optimize=2 \
65 --root=$RPM_BUILD_ROOT
4efaa76d 66
4ec6f79e 67install man/*.1 $RPM_BUILD_ROOT%{_mandir}/man1
0f9e6dd1 68install examples/pylintrc $RPM_BUILD_ROOT%{_sysconfdir}/pylintrc
4efaa76d 69
7c199dbc 70%py_postclean
baeb5efa 71
72%clean
73rm -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*
This page took 0.089094 seconds and 4 git commands to generate.