|
|
de86cff |
%{!?_python_sitelib: %define _python_sitelib %(%{__python} -c "from distutils.sysconfig import get_python_lib; print get_python_lib()")}
|
|
|
de86cff |
|
|
|
de86cff |
Name: pylint
|
|
|
a3d2799 |
Version: 0.12.2
|
|
|
3ee3cef |
Release: 1%{?dist}
|
|
|
de86cff |
Summary: Analyzes Python code looking for bugs and signs of poor quality
|
|
|
de86cff |
|
|
|
de86cff |
Group: Development/Debuggers
|
|
|
de86cff |
License: GPL
|
|
|
de86cff |
URL: http://www.logilab.org/projects/pylint
|
|
|
de86cff |
Source0: ftp://ftp.logilab.org/pub/pylint/pylint-%{version}.tar.gz
|
|
|
de86cff |
BuildArch: noarch
|
|
|
de86cff |
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
|
|
|
de86cff |
|
|
|
de86cff |
BuildRequires: python-devel
|
|
|
cd97744 |
Requires: python-logilab-astng
|
|
|
de86cff |
|
|
|
de86cff |
%description
|
|
|
de86cff |
Pylint is a python tool that checks if a module satisfy a coding standard.
|
|
|
de86cff |
Pylint can be seen as another PyChecker since nearly all tests you can do
|
|
|
de86cff |
with PyChecker can also be done with Pylint. But Pylint offers some more
|
|
|
de86cff |
features, like checking line-code's length, checking if variable names are
|
|
|
de86cff |
well-formed according to your coding standard, or checking if declared
|
|
|
de86cff |
interfaces are truly implemented, and much more. The big advantage with
|
|
|
de86cff |
Pylint is that it is highly configurable, customizable, and you can easily
|
|
|
de86cff |
write a small plugin to add a personal feature.
|
|
|
de86cff |
|
|
|
de86cff |
|
|
|
de86cff |
%package gui
|
|
|
de86cff |
Summary: Graphical Interface tool for Pylint
|
|
|
de86cff |
Group: Development/Debuggers
|
|
|
de86cff |
Requires: %{name} = %{version}-%{release}
|
|
|
de86cff |
Requires: tkinter
|
|
|
de86cff |
|
|
|
de86cff |
%description gui
|
|
|
de86cff |
This package provides a gui tool for pylint written in tkinter.
|
|
|
de86cff |
|
|
|
de86cff |
|
|
|
de86cff |
%prep
|
|
|
de86cff |
%setup -q
|
|
|
de86cff |
|
|
|
de86cff |
|
|
|
de86cff |
%build
|
|
|
de86cff |
%{__python} setup.py build
|
|
|
de86cff |
|
|
|
de86cff |
|
|
|
de86cff |
%install
|
|
|
de86cff |
rm -rf $RPM_BUILD_ROOT
|
|
|
de86cff |
%{__python} setup.py install -O1 --skip-build --root $RPM_BUILD_ROOT
|
|
|
3ee3cef |
rm -rf $RPM_BUILD_ROOT%{_python_sitelib}/pylint/test
|
|
|
097752d |
mkdir -pm 755 $RPM_BUILD_ROOT%{_mandir}/man1
|
|
|
097752d |
install -pm 644 man/*.1 $RPM_BUILD_ROOT%{_mandir}/man1/
|
|
|
de86cff |
|
|
|
3ee3cef |
|
|
|
de86cff |
%clean
|
|
|
de86cff |
rm -rf $RPM_BUILD_ROOT
|
|
|
de86cff |
|
|
|
de86cff |
|
|
|
de86cff |
%files
|
|
|
de86cff |
%defattr(-,root,root,-)
|
|
|
8180db7 |
%doc doc/*.txt README ChangeLog TODO examples elisp COPYING
|
|
|
cd97744 |
%{_python_sitelib}/pylint
|
|
|
cd97744 |
%{_bindir}/*
|
|
|
097752d |
%{_mandir}/man?/*
|
|
|
3ee3cef |
%exclude %{_python_sitelib}/pylint/gui.py*
|
|
|
cd97744 |
%exclude %{_bindir}/pylint-gui
|
|
|
de86cff |
|
|
|
de86cff |
%files gui
|
|
|
de86cff |
%defattr(-,root,root,-)
|
|
|
a3d2799 |
%doc COPYING
|
|
|
cd97744 |
%{_python_sitelib}/pylint/gui.py*
|
|
|
de86cff |
%{_bindir}/pylint-gui
|
|
|
de86cff |
|
|
|
de86cff |
|
|
|
de86cff |
%changelog
|
|
|
a3d2799 |
* Sun Dec 17 2006 Konstantin Ryabitsev <icon@fedoraproject.org> - 0.12.2-1
|
|
|
a3d2799 |
- Upstream 0.12.2
|
|
|
a3d2799 |
- Add COPYING to -gui
|
|
|
a3d2799 |
|
|
|
cd97744 |
* Tue Sep 26 2006 Konstantin Ryabitsev <icon@fedoraproject.org> - 0.12.1-1
|
|
|
a3d2799 |
- Upstream 0.12.1
|
|
|
cd97744 |
- Require the renamed python-logilab-astng
|
|
|
cd97744 |
|
|
|
ee0662a |
* Mon May 01 2006 Konstantin Ryabitsev <icon@fedoraproject.org> - 0.11.0-0
|
|
|
ee0662a |
- Version 0.11.0
|
|
|
ee0662a |
|
|
|
fb33f0c |
* Sun Mar 12 2006 Konstantin Ryabitsev <icon@fedoraproject.org> - 0.10.0-1
|
|
|
fb33f0c |
- Version 0.10.0
|
|
|
fb33f0c |
|
|
|
8180db7 |
* Thu Jan 12 2006 Konstantin Ryabitsev <icon@fedoraproject.org> - 0.9.0-1
|
|
|
8180db7 |
- Version 0.9.0
|
|
|
8180db7 |
- Add COPYING to docs
|
|
|
8180db7 |
|
|
|
29ae062 |
* Sun Nov 13 2005 Konstantin Ryabitsev <icon@fedoraproject.org> - 0.8.1-1
|
|
|
29ae062 |
- Version 0.8.1
|
|
|
29ae062 |
- Add dependency on python-astng
|
|
|
29ae062 |
- Drop artificial version requirement on python-logilab-common
|
|
|
29ae062 |
|
|
|
3ee3cef |
* Mon Jun 13 2005 Konstantin Ryabitsev <icon@linux.duke.edu> - 0.7.0-1
|
|
|
3ee3cef |
- Version 0.7.0
|
|
|
3ee3cef |
- No longer in the logilab subdir
|
|
|
3ee3cef |
- Disttagging
|
|
|
3ee3cef |
|
|
|
097752d |
* Mon May 09 2005 Konstantin Ryabitsev <icon@linux.duke.edu> - 0.6.4-4
|
|
|
097752d |
- Install the pylint.1 manfile.
|
|
|
097752d |
- Add examples and elisp dirs to docs.
|
|
|
097752d |
|
|
|
de86cff |
* Thu May 05 2005 Konstantin Ryabitsev <icon@linux.duke.edu> - 0.6.4-3
|
|
|
de86cff |
- Only doc the .txt files.
|
|
|
de86cff |
- Don't buildrequire python-logilab-common
|
|
|
de86cff |
- Fix paths.
|
|
|
de86cff |
|
|
|
de86cff |
* Tue Apr 26 2005 Konstantin Ryabitsev <icon@linux.duke.edu> - 0.6.4-2
|
|
|
de86cff |
- Ghost .pyo files.
|
|
|
de86cff |
- Remove the test dir, as it doesn't do anything.
|
|
|
de86cff |
- Separate the gui package, which depends on tkinter.
|
|
|
de86cff |
- Don't own site-packages/logilab, which is owned by
|
|
|
de86cff |
python-logilab-common.
|
|
|
de86cff |
|
|
|
de86cff |
* Fri Apr 22 2005 Konstantin Ryabitsev <icon@linux.duke.edu> - 0.6.4-1
|
|
|
de86cff |
- Initial packaging.
|