2009-09-09 16:57:28 +00:00
|
|
|
|
#
|
2009-09-09 19:18:16 +00:00
|
|
|
|
# spec file for package python-pylint (Version 0.18.1)
|
2009-09-09 16:57:28 +00:00
|
|
|
|
#
|
|
|
|
|
# Copyright (c) 2009 SUSE LINUX Products GmbH, Nuernberg, Germany.
|
|
|
|
|
#
|
|
|
|
|
# All modifications and additions to the file contributed by third parties
|
|
|
|
|
# remain the property of their copyright owners, unless otherwise agreed
|
|
|
|
|
# upon. The license for this file, and modifications and additions to the
|
|
|
|
|
# file, is the same license as for the pristine package itself (unless the
|
|
|
|
|
# license for the pristine package is not an Open Source License, in which
|
|
|
|
|
# case the license is the MIT License). An "Open Source License" is a
|
|
|
|
|
# license that conforms to the Open Source Definition (Version 1.9)
|
|
|
|
|
# published by the Open Source Initiative.
|
|
|
|
|
|
|
|
|
|
# Please submit bugfixes or comments via http://bugs.opensuse.org/
|
|
|
|
|
#
|
|
|
|
|
|
|
|
|
|
# norootforbuild
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Name: python-pylint
|
|
|
|
|
BuildRequires: python-devel
|
|
|
|
|
Summary: Syntax and style checker for Python code
|
2009-09-09 19:16:54 +00:00
|
|
|
|
Version: 0.18.1
|
2009-09-09 16:57:28 +00:00
|
|
|
|
Release: 1
|
|
|
|
|
Source: pylint-%{version}.tar.bz2
|
|
|
|
|
License: GPL v2 or later
|
|
|
|
|
Group: Development/Languages/Python
|
|
|
|
|
Url: http://www.logilab.org/projects/pylint/
|
|
|
|
|
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
|
|
|
|
Requires: python-logilab-common python-logilab-astng
|
2009-09-09 19:18:16 +00:00
|
|
|
|
Provides: pylint = 0.16.0
|
|
|
|
|
Obsoletes: pylint <= 0.16.0
|
2009-09-09 16:57:28 +00:00
|
|
|
|
%{py_requires}
|
|
|
|
|
%if 0%suse_version > 1110
|
2009-09-09 19:18:16 +00:00
|
|
|
|
BuildArch: noarch
|
2009-09-09 16:57:28 +00:00
|
|
|
|
%define py_sitedir %python_sitelib
|
|
|
|
|
%endif
|
|
|
|
|
|
|
|
|
|
%description
|
|
|
|
|
Pylint analyzes Python source code looking for bugs and signs of poor
|
|
|
|
|
quality.
|
|
|
|
|
|
|
|
|
|
Pylint is a python tool that checks if a module satisfy a coding
|
|
|
|
|
standard. Pylint can be seen as another PyChecker since nearly all
|
|
|
|
|
tests you can do with PyChecker can also be done with Pylint. But
|
|
|
|
|
Pylint offers some more features, like checking line-code's length,
|
|
|
|
|
checking if variable names are well-formed according to your coding
|
|
|
|
|
standard, or checking if declared interfaces are truly implemented, and
|
|
|
|
|
much more (see the complete check list).
|
|
|
|
|
|
|
|
|
|
The big advantage with Pylint is that it is highly configurable,
|
|
|
|
|
customizable, and you can easily write a small plugin to add a personal
|
|
|
|
|
feature.
|
|
|
|
|
|
|
|
|
|
Please send any comment, patch or question to the python-projects
|
|
|
|
|
mailing-list. Before asking a question, please first search the
|
|
|
|
|
archives in case it would have already been answered. You may want to
|
|
|
|
|
use google and add "site:lists.logilab.org" to your keywords to narrow
|
|
|
|
|
your search. We will soon provide our own search engine.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Authors:
|
|
|
|
|
--------
|
|
|
|
|
Sylvain Th<EFBFBD>nault
|
|
|
|
|
|
|
|
|
|
%prep
|
|
|
|
|
%setup -q -n pylint-%{version}
|
|
|
|
|
#%patch
|
|
|
|
|
|
|
|
|
|
%build
|
|
|
|
|
python setup.py build
|
|
|
|
|
|
|
|
|
|
%install
|
|
|
|
|
#export PYTHONOPTIMIZE=1 #--optimize=1
|
|
|
|
|
python setup.py install --prefix=%{_prefix} --root="$RPM_BUILD_ROOT"
|
|
|
|
|
rm -rf $RPM_BUILD_ROOT/%{py_sitedir}/pylint/test/
|
|
|
|
|
|
|
|
|
|
%clean
|
|
|
|
|
rm -rf $RPM_BUILD_ROOT
|
|
|
|
|
|
|
|
|
|
%files
|
|
|
|
|
%defattr(-,root,root)
|
|
|
|
|
%doc TODO README ChangeLog examples/ doc/
|
|
|
|
|
%{_bindir}/*
|
|
|
|
|
%{py_sitedir}/pylint
|
|
|
|
|
%{py_sitedir}/*egg-info
|
|
|
|
|
|
|
|
|
|
%changelog
|