forked from pool/python-pylint
Drop _link after Factory removal
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-pylint?expand=0&rev=52
This commit is contained in:
committed by
Git OBS Bridge
parent
d33a936048
commit
fd5a8b452d
@@ -1,3 +0,0 @@
|
|||||||
version https://git-lfs.github.com/spec/v1
|
|
||||||
oid sha256:a854ada546ab769a1395f0fbde763ebd09990b3f064758bf8f25f62d28d075e0
|
|
||||||
size 145428
|
|
3
pylint-1.0.0.tar.gz
Normal file
3
pylint-1.0.0.tar.gz
Normal file
@@ -0,0 +1,3 @@
|
|||||||
|
version https://git-lfs.github.com/spec/v1
|
||||||
|
oid sha256:5ccd5b2783f05c7747d3a36b1d5540b95f17547d5cfa43c5136661cafbd32113
|
||||||
|
size 261670
|
@@ -1,3 +1,271 @@
|
|||||||
|
-------------------------------------------------------------------
|
||||||
|
Fri Nov 29 09:36:36 UTC 2013 - toddrme2178@gmail.com
|
||||||
|
|
||||||
|
- Implement update-alternatives
|
||||||
|
|
||||||
|
-------------------------------------------------------------------
|
||||||
|
Thu Nov 28 14:33:18 UTC 2013 - toddrme2178@gmail.com
|
||||||
|
|
||||||
|
- Update requires and buildrequires
|
||||||
|
|
||||||
|
-------------------------------------------------------------------
|
||||||
|
Wed Nov 27 14:57:03 UTC 2013 - p.drouand@gmail.com
|
||||||
|
|
||||||
|
- Update to version 1.0.0
|
||||||
|
* Add check for the use of 'exec' function
|
||||||
|
* New --msg-template option to control output, deprecating "msvc" and
|
||||||
|
"parseable" output formats as well as killing `--include-ids` and `--symbols`
|
||||||
|
options
|
||||||
|
* Do not emit [fixme] for every line if the config value 'notes'
|
||||||
|
is empty, but [fixme] is enabled.
|
||||||
|
* Emit warnings about lines exceeding the column limit when
|
||||||
|
those lines are inside multiline docstrings.
|
||||||
|
* Do not double-check parameter names with the regex for parameters and
|
||||||
|
inline variables.
|
||||||
|
* Added a new warning missing-final-newline (C0304) for files missing
|
||||||
|
the final newline.
|
||||||
|
* Methods that are decorated as properties are now treated as attributes
|
||||||
|
for the purposes of name checking.
|
||||||
|
* Names of derived instance class member are not checked any more.
|
||||||
|
* Names in global statements are now checked against the regular
|
||||||
|
expression for constants.
|
||||||
|
* For toplevel name assignment, the class name regex will be used if
|
||||||
|
pylint can detect that value on the right-hand side is a class
|
||||||
|
(like collections.namedtuple()).
|
||||||
|
* Simplified invalid-name message
|
||||||
|
* Added a new warning invalid-encoded-data (W0512) for files that
|
||||||
|
contain data that cannot be decoded with the specified or
|
||||||
|
default encoding.
|
||||||
|
* New warning bad-open-mode (W1501) for calls to open (or file) that
|
||||||
|
specify invalid open modes (Original implementation by Sasha Issayev).
|
||||||
|
* New warning old-style-class (C1001) for classes that do not have any
|
||||||
|
base class.
|
||||||
|
* Add new name type 'class_attribute' for attributes defined
|
||||||
|
in class scope. By default, allow both const and variable names.
|
||||||
|
* New warning trailing-whitespace (C0303) that warns about
|
||||||
|
trailing whitespace.
|
||||||
|
* Added a new warning unpacking-in-except (W0712) about unpacking
|
||||||
|
exceptions in handlers, which is unsupported in Python 3.
|
||||||
|
* Add a configuration option for missing-docstring to
|
||||||
|
optionally exempt short functions/methods/classes from
|
||||||
|
the check.
|
||||||
|
* Add the type of the offending node to missing-docstring
|
||||||
|
and empty-docstring.
|
||||||
|
* New utility classes for per-checker unittests in testutils.py
|
||||||
|
* Do not warn about redefinitions of variables that match the
|
||||||
|
dummy regex.
|
||||||
|
* Do not treat all variables starting with _ as dummy variables,
|
||||||
|
only _ itself.
|
||||||
|
* Make the line-too-long warning configurable by adding a regex for lines
|
||||||
|
for with the length limit should not be enforced
|
||||||
|
* Do not warn about a long line if a pylint disable
|
||||||
|
option brings it above the length limit
|
||||||
|
* Do not flag names in nested with statements as undefined.
|
||||||
|
* Added a new warning 'old-raise-syntax' for the deprecated syntax
|
||||||
|
raise Exception, args
|
||||||
|
* Support for PEP 3102 and new missing-kwoa (E1125) message for missing
|
||||||
|
mandatory keyword argument (logilab.org's #107788)
|
||||||
|
* Fix spelling of max-branchs option, now max-branches
|
||||||
|
* Added a new base class and interface for checkers that work on the
|
||||||
|
tokens rather than the syntax, and only tokenize the input file
|
||||||
|
once.
|
||||||
|
* Follow astng renaming to astroid
|
||||||
|
* bitbucket #37: check for unbalanced unpacking in assignments
|
||||||
|
* bitbucket #25: fix incomplete-protocol false positive for read-only
|
||||||
|
containers like tuple
|
||||||
|
* bitbucket #16: fix False positive E1003 on Python 3 for argument-less super()
|
||||||
|
* bitbucket #6: put back documentation in source distribution
|
||||||
|
* bitbucket #15: epylint shouldn't hang anymore when there is a large
|
||||||
|
output on pylint'stderr
|
||||||
|
* bitbucket #7: fix epylint w/ python3
|
||||||
|
* bitbucket #3: remove string module from the default list of deprecated
|
||||||
|
modules
|
||||||
|
- Remove unwanted %{py_requires} macro
|
||||||
|
- Remove redundant %clean section
|
||||||
|
|
||||||
|
-------------------------------------------------------------------
|
||||||
|
Thu May 30 20:24:56 UTC 2013 - dmueller@suse.com
|
||||||
|
|
||||||
|
- update to 0.28.0:
|
||||||
|
* bitbucket #1: fix "dictionary changed size during iteration" crash
|
||||||
|
* #74013: new E1310[bad-str-strip-call] message warning when a call to a
|
||||||
|
{l,r,}strip method contains duplicate characters (patch by Torsten Marek)
|
||||||
|
* #123233: new E0108[duplicate-argument-name] message reporting duplicate
|
||||||
|
argument names
|
||||||
|
* #81378: emit W0120[useless-else-on-loop] for loops without break
|
||||||
|
* #124660: internal dependencies should not appear in external dependencies
|
||||||
|
report
|
||||||
|
* #124662: fix name error causing crash when symbols are included in output
|
||||||
|
messages
|
||||||
|
* #123285: apply pragmas for warnings attached to lines to physical source
|
||||||
|
code lines
|
||||||
|
* #123259: do not emit E0105 for yield expressions inside lambdas
|
||||||
|
* #123892: don't crash when attempting to show source code line that can't
|
||||||
|
be encoded with the current locale settings
|
||||||
|
* Simplify checks for dangerous default values by unifying tests for all
|
||||||
|
different mutable compound literals.
|
||||||
|
* Improve the description for E1124[redundant-keyword-arg]
|
||||||
|
* #20693: replace pylint.el by Ian Eure version (patch by J.Kotta)
|
||||||
|
* #105327: add support for --disable=all option and deprecate the
|
||||||
|
'disable-all' inline directive in favour of 'skip-file' (patch by
|
||||||
|
A.Fayolle)
|
||||||
|
* #110840: add messages I0020 and I0021 for reporting of suppressed
|
||||||
|
messages and useless suppression pragmas. (patch by Torsten Marek)
|
||||||
|
|
||||||
|
-------------------------------------------------------------------
|
||||||
|
Fri May 4 09:30:09 UTC 2012 - toddrme2178@gmail.com
|
||||||
|
|
||||||
|
- Fix rpmlint warnings
|
||||||
|
- Added full url to source file
|
||||||
|
|
||||||
|
-------------------------------------------------------------------
|
||||||
|
Mon Apr 30 14:54:40 UTC 2012 - toddrme2178@gmail.com
|
||||||
|
|
||||||
|
- Cleaned up spec file formatting
|
||||||
|
- Added python 3 package
|
||||||
|
|
||||||
|
-------------------------------------------------------------------
|
||||||
|
Thu Feb 23 14:26:22 UTC 2012 - saschpe@suse.de
|
||||||
|
|
||||||
|
- Provide detail about each version update to please darix ;-)
|
||||||
|
|
||||||
|
-------------------------------------------------------------------
|
||||||
|
Sat Feb 18 16:06:21 UTC 2012 - toganm@opensuse.org
|
||||||
|
|
||||||
|
- Update to version 0.25.1:
|
||||||
|
* #81078: Warn if names in exception handlers clobber
|
||||||
|
overwrite existing names (patch by tmarek@google.com)
|
||||||
|
* #81113: Fix W0702 messages appearing with the wrong line
|
||||||
|
number. (patch by tmarek@google.com)
|
||||||
|
* #50461, #52020, #51222: Do not issue warnings when using
|
||||||
|
2.6's property.setter/deleter functionality
|
||||||
|
(patch by dneil@google.com)
|
||||||
|
* #9188, #4024: Do not trigger W0631 if a loop variable is
|
||||||
|
assigned in the else branch of a for loop.
|
||||||
|
- Changes from version 0.25.0:
|
||||||
|
* #74742: make allowed name for first argument of class method configurable
|
||||||
|
(patch by Google)
|
||||||
|
* #74087: handle case where inference of a module return YES; this avoid
|
||||||
|
some cases of "TypeError: '_Yes' object does not support indexing" (patch
|
||||||
|
by Google)
|
||||||
|
* #74745: make "too general" exception names configurable (patch by Google)
|
||||||
|
* #74747: crash occurs when lookup up a special attribute in class scope
|
||||||
|
(patch by google)
|
||||||
|
* #76920: crash if on eg "pylint --rcfile"(patch by Torsten Marek)
|
||||||
|
* #77237: warning for E0202 may be very misleading
|
||||||
|
* #73941: HTML report messages table is badly rendered
|
||||||
|
|
||||||
|
-------------------------------------------------------------------
|
||||||
|
Wed Sep 21 14:16:13 CEST 2011 - dmueller@suse.de
|
||||||
|
|
||||||
|
- Update to version 0.24.0:
|
||||||
|
* #69738: add regular expressions support for "generated-members"
|
||||||
|
* #69993: Additional string format checks for logging module:
|
||||||
|
check for missing arguments, too many arguments, or invalid string
|
||||||
|
formats in the logging checker module. Contributed by Daniel Arena
|
||||||
|
* #69220: add column offset to the reports. If you've a custom reporter,
|
||||||
|
this change may break it has now location gain a new item giving the
|
||||||
|
column offset.
|
||||||
|
* #60828: Fix false positive in reimport check
|
||||||
|
* #70495: absolute imports fail depending on module path (patch by Jacek Konieczny)
|
||||||
|
* #22273: Fix --ignore option documentation to match reality
|
||||||
|
|
||||||
|
-------------------------------------------------------------------
|
||||||
|
Tue Aug 30 18:57:41 UTC 2011 - andrea.turrini@gmail.com
|
||||||
|
|
||||||
|
- fixed typo and standardized "Authors:" format in description of
|
||||||
|
python-pylint.spec
|
||||||
|
|
||||||
|
-------------------------------------------------------------------
|
||||||
|
Mon Apr 11 21:45:30 CEST 2011 - hpj@urpla.net
|
||||||
|
|
||||||
|
- fix build
|
||||||
|
- Update to version 0.23.0:
|
||||||
|
* documentation update, add manpages
|
||||||
|
* several performance improvements
|
||||||
|
* finalize python3 support
|
||||||
|
* new W0106 warning 'Expression "%s" is assigned to nothing'
|
||||||
|
* drop E0501 and E0502 messages about wrong source encoding: not anymore
|
||||||
|
interesting since it's a syntax error for python >= 2.5 and we now only
|
||||||
|
support this python version and above.
|
||||||
|
* don't emit W0221 or W0222 when methods as variable arguments (eg *arg
|
||||||
|
and/or **args). Patch submitted by Charles Duffy.
|
||||||
|
|
||||||
|
-------------------------------------------------------------------
|
||||||
|
Fri Jan 7 12:47:47 CET 2011 - hpj@urpla.net
|
||||||
|
|
||||||
|
- Update to version 0.22.0:
|
||||||
|
* python versions: minimal python3.x support; drop python < 2.5 support
|
||||||
|
|
||||||
|
- 2010-10-27 -- 0.21.4
|
||||||
|
* fix #48066: pylint crashes when redirecting output containing non-ascii characters
|
||||||
|
* fix #19799: "pylint -blah" exit with status 2
|
||||||
|
* update documentation
|
||||||
|
|
||||||
|
- 2010-09-28 -- 0.21.3
|
||||||
|
* restored python 2.3 compatibility. Along with logilab-astng
|
||||||
|
0.21.3 and logilab-common 0.52, this will much probably be the
|
||||||
|
latest release supporting python < 2.5.
|
||||||
|
|
||||||
|
-------------------------------------------------------------------
|
||||||
|
Wed Dec 1 22:30:15 CET 2010 - dmueller@suse.de
|
||||||
|
|
||||||
|
- fix dependencies (bnc#656797)
|
||||||
|
|
||||||
|
-------------------------------------------------------------------
|
||||||
|
Thu Aug 26 17:45:55 UTC 2010 - alexandre@exatati.com.br
|
||||||
|
|
||||||
|
- Update to 0.21.2:
|
||||||
|
* fix #36193: import checker raise exception on cyclic import
|
||||||
|
* fix #28796: regression in --generated-members introduced pylint 0.20
|
||||||
|
* some documentation cleanups
|
||||||
|
|
||||||
|
-------------------------------------------------------------------
|
||||||
|
Mon Jun 7 17:10:08 UTC 2010 - alexandre@exatati.com.br
|
||||||
|
|
||||||
|
- Update to 0.21.1:
|
||||||
|
* fix #28962: pylint crash with new options, due to missing stats data
|
||||||
|
while writing the Statistics by types report
|
||||||
|
* updated man page to 0.21 or greater command line usage (fix debian #582494)
|
||||||
|
- Aditional changes from 0.21.0:
|
||||||
|
* command line updated (closes #9774, #9787, #9992, #22962):
|
||||||
|
* all enable-* / disable-* options have been merged into --enable / --disable
|
||||||
|
* BACKWARD INCOMPATIBLE CHANGE: short name of --errors-only becomes -E, -e being
|
||||||
|
affected to --enable
|
||||||
|
* pylint --help output much simplified, with --long-help available to get the
|
||||||
|
complete one
|
||||||
|
* revisited gui, thanks to students from Toronto university (they are great
|
||||||
|
contributors to this release!)
|
||||||
|
* fix #21591: html reporter produces no output if reports is set to 'no'
|
||||||
|
* fix #4581: not Missing docstring (C0111) warning if a method is overridden
|
||||||
|
* fix #4683: Non-ASCII characters count double if utf8 encode
|
||||||
|
* fix #9018: when using defining-attr-method, method order matters
|
||||||
|
* fix #4595: Comma not followed by a space should not occurs on trailing comma
|
||||||
|
in list/tuple/dict definition
|
||||||
|
* fix #22585: [Patch] fix man warnings for pyreverse.1 manpage
|
||||||
|
* fix #20067: AttributeError: 'NoneType' object has no attribute 'name' with with
|
||||||
|
- Spec file cleaned with spec-cleaner;
|
||||||
|
- Minor changes to use macros on commands on spec file.
|
||||||
|
|
||||||
|
-------------------------------------------------------------------
|
||||||
|
Sun Apr 18 17:03:24 CEST 2010 - dmueller@suse.de
|
||||||
|
|
||||||
|
- update to 0.20.0:
|
||||||
|
* fix #19339: pylint.el : non existing py-mod-map
|
||||||
|
(closes Debian Bug report logs - #475939)
|
||||||
|
* implement #18860, new W0199 message on assert (a, b)
|
||||||
|
* implement #9776, 'W0150' break or return statement in finally block may
|
||||||
|
swallow exception.
|
||||||
|
* fix #9263, __init__ and __new__ are checked for unused arguments
|
||||||
|
* fix #20991, class scope definitions ignored in a genexpr
|
||||||
|
* fix #5975, Abstract intermediate class not recognized as such
|
||||||
|
* fix #5977, yield and return statement have their own counters, no more R0911
|
||||||
|
(Too many return statements) when a function have many yield stamtements
|
||||||
|
* implement #5564, function / method arguments with leading "_" are ignored in
|
||||||
|
arguments / local variables count.
|
||||||
|
* implement #9982, E0711 specific error message when raising NotImplemented
|
||||||
|
* remove --cache-size option
|
||||||
|
|
||||||
-------------------------------------------------------------------
|
-------------------------------------------------------------------
|
||||||
Fri Dec 18 21:18:33 CET 2009 - dmueller@suse.de
|
Fri Dec 18 21:18:33 CET 2009 - dmueller@suse.de
|
||||||
|
|
||||||
|
@@ -1,7 +1,7 @@
|
|||||||
#
|
#
|
||||||
# spec file for package python-pylint (Version 0.18.1)
|
# spec file for package python-pylint
|
||||||
#
|
#
|
||||||
# Copyright (c) 2009 SUSE LINUX Products GmbH, Nuernberg, Germany.
|
# Copyright (c) 2014 SUSE LINUX Products GmbH, Nuernberg, Germany.
|
||||||
#
|
#
|
||||||
# All modifications and additions to the file contributed by third parties
|
# All modifications and additions to the file contributed by third parties
|
||||||
# remain the property of their copyright owners, unless otherwise agreed
|
# remain the property of their copyright owners, unless otherwise agreed
|
||||||
@@ -15,34 +15,39 @@
|
|||||||
# Please submit bugfixes or comments via http://bugs.opensuse.org/
|
# Please submit bugfixes or comments via http://bugs.opensuse.org/
|
||||||
#
|
#
|
||||||
|
|
||||||
# norootforbuild
|
|
||||||
|
|
||||||
|
%define modname pylint
|
||||||
Name: python-pylint
|
Name: python-%{modname}
|
||||||
BuildRequires: python-devel
|
Version: 1.0.0
|
||||||
|
Release: 0
|
||||||
Summary: Syntax and style checker for Python code
|
Summary: Syntax and style checker for Python code
|
||||||
Version: 0.19.0
|
License: GPL-2.0+
|
||||||
Release: 1
|
|
||||||
Source: pylint-%{version}.tar.bz2
|
|
||||||
License: GPL v2 or later
|
|
||||||
Group: Development/Languages/Python
|
Group: Development/Languages/Python
|
||||||
Url: http://www.logilab.org/projects/pylint/
|
Url: http://www.logilab.org/projects/pylint/
|
||||||
|
Source: http://download.logilab.org/pub/%{modname}/%{modname}-%{version}.tar.gz
|
||||||
|
BuildRequires: python-astroid
|
||||||
|
BuildRequires: python-devel
|
||||||
|
BuildRequires: python-logilab-common >= 0.55
|
||||||
|
BuildRequires: python-tk
|
||||||
|
Requires: python-astroid
|
||||||
|
Requires: python-logilab-common >= 0.55
|
||||||
|
Requires: python-tk
|
||||||
|
Provides: pylint = %{version}
|
||||||
|
Obsoletes: pylint < %{version}
|
||||||
|
Requires(post): update-alternatives
|
||||||
|
Requires(postun): update-alternatives
|
||||||
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
||||||
Requires: python-logilab-common >= 0.19.0
|
%if 0%{?suse_version} <= 1110
|
||||||
Requires: python-logilab-astng >= 0.16.1
|
%{!?python_sitelib: %global python_sitelib %(python -c "from distutils.sysconfig import get_python_lib; print get_python_lib()")}
|
||||||
Provides: pylint = 0.16.0
|
%else
|
||||||
Obsoletes: pylint <= 0.16.0
|
|
||||||
%{py_requires}
|
|
||||||
%if 0%suse_version > 1110
|
|
||||||
BuildArch: noarch
|
BuildArch: noarch
|
||||||
%define py_sitedir %python_sitelib
|
|
||||||
%endif
|
%endif
|
||||||
|
|
||||||
%description
|
%description
|
||||||
Pylint analyzes Python source code looking for bugs and signs of poor
|
Pylint analyzes Python source code looking for bugs and signs of poor
|
||||||
quality.
|
quality.
|
||||||
|
|
||||||
Pylint is a python tool that checks if a module satisfy a coding
|
Pylint is a python tool that checks if a module satisfies a coding
|
||||||
standard. Pylint can be seen as another PyChecker since nearly all
|
standard. Pylint can be seen as another PyChecker since nearly all
|
||||||
tests you can do with PyChecker can also be done with Pylint. But
|
tests you can do with PyChecker can also be done with Pylint. But
|
||||||
Pylint offers some more features, like checking line-code's length,
|
Pylint offers some more features, like checking line-code's length,
|
||||||
@@ -54,40 +59,66 @@ The big advantage with Pylint is that it is highly configurable,
|
|||||||
customizable, and you can easily write a small plugin to add a personal
|
customizable, and you can easily write a small plugin to add a personal
|
||||||
feature.
|
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
|
%prep
|
||||||
%setup -q -n pylint-%{version}
|
%setup -q -n %{modname}-%{version}
|
||||||
#%patch
|
|
||||||
|
|
||||||
%build
|
%build
|
||||||
python setup.py build
|
python setup.py build
|
||||||
|
|
||||||
%install
|
%install
|
||||||
#export PYTHONOPTIMIZE=1 #--optimize=1
|
#export PYTHONOPTIMIZE=1 #--optimize=1
|
||||||
python setup.py install --prefix=%{_prefix} --root="$RPM_BUILD_ROOT"
|
python setup.py install --prefix=%{_prefix} --root=%{buildroot}
|
||||||
rm -rf $RPM_BUILD_ROOT/%{py_sitedir}/pylint/test/
|
# fix non-executable rpmlint warning
|
||||||
|
chmod +x %{buildroot}%{python_sitelib}/%{modname}/epylint.py
|
||||||
|
# update-alternatives
|
||||||
|
mv %{buildroot}%{_bindir}/pylint %{buildroot}%{_bindir}/pylint-%{py_ver}
|
||||||
|
mv %{buildroot}%{_bindir}/epylint %{buildroot}%{_bindir}/epylint-%{py_ver}
|
||||||
|
mv %{buildroot}%{_bindir}/pylint-gui %{buildroot}%{_bindir}/pylint-gui-%{py_ver}
|
||||||
|
mv %{buildroot}%{_bindir}/pyreverse %{buildroot}%{_bindir}/pyreverse-%{py_ver}
|
||||||
|
mv %{buildroot}%{_bindir}/symilar %{buildroot}%{_bindir}/symilar-%{py_ver}
|
||||||
|
ln -s %{_bindir}/pylint-%{py_ver} %{buildroot}%{_bindir}/pylint
|
||||||
|
ln -s %{_bindir}/epylint-%{py_ver} %{buildroot}%{_bindir}/epylint
|
||||||
|
ln -s %{_bindir}/pylint-gui-%{py_ver} %{buildroot}%{_bindir}/pylint-gui
|
||||||
|
ln -s %{_bindir}/pyreverse-%{py_ver} %{buildroot}%{_bindir}/pyreverse
|
||||||
|
ln -s %{_bindir}/symilar-%{py_ver} %{buildroot}%{_bindir}/symilar
|
||||||
|
|
||||||
%clean
|
%pre
|
||||||
rm -rf $RPM_BUILD_ROOT
|
# Since /usr/bin/pylint, etc. became ghosted to be used with update-alternatives, we have to get rid
|
||||||
|
# of the old binary resulting from the non-update-alternativies-ified package:
|
||||||
|
[[ ! -L %{_bindir}/pylint ]] && rm -f %{_bindir}/pylint
|
||||||
|
[[ ! -L %{_bindir}/epylint ]] && rm -f %{_bindir}/epylint
|
||||||
|
[[ ! -L %{_bindir}/pylint-gui ]] && rm -f %{_bindir}/pylint-gui
|
||||||
|
[[ ! -L %{_bindir}/pyreverse ]] && rm -f %{_bindir}/pyreverse
|
||||||
|
[[ ! -L %{_bindir}/symilar ]] && rm -f %{_bindir}/symilar
|
||||||
|
exit 0
|
||||||
|
|
||||||
|
%post
|
||||||
|
update-alternatives \
|
||||||
|
--install %{_bindir}/pylint pylint %{_bindir}/pylint-%{py_ver} 30 \
|
||||||
|
--slave %{_bindir}/epylint epylint %{_bindir}/epylint-%{py_ver} \
|
||||||
|
--slave %{_bindir}/pylint-gui pylint-gui %{_bindir}/pylint-gui-%{py_ver} \
|
||||||
|
--slave %{_bindir}/pyreverse pyreverse %{_bindir}/pyreverse-%{py_ver} \
|
||||||
|
--slave %{_bindir}/symilar symilar %{_bindir}/symilar-%{py_ver}
|
||||||
|
|
||||||
|
%preun
|
||||||
|
if [ $1 -eq 0 ] ; then
|
||||||
|
update-alternatives --remove pylint %{_bindir}/pylint-%{py_ver}
|
||||||
|
fi
|
||||||
|
|
||||||
%files
|
%files
|
||||||
%defattr(-,root,root)
|
%defattr(-,root,root)
|
||||||
%doc README ChangeLog examples/ doc/
|
%doc ChangeLog COPYING README examples/
|
||||||
%{_bindir}/*
|
%{_bindir}/pylint-%{py_ver}
|
||||||
%{py_sitedir}/pylint
|
%{_bindir}/epylint-%{py_ver}
|
||||||
%if 0%suse_version > 1010
|
%{_bindir}/pylint-gui-%{py_ver}
|
||||||
%{py_sitedir}/*egg-info
|
%{_bindir}/pyreverse-%{py_ver}
|
||||||
%endif
|
%{_bindir}/symilar-%{py_ver}
|
||||||
|
%ghost %{_bindir}/pylint
|
||||||
|
%ghost %{_bindir}/epylint
|
||||||
|
%ghost %{_bindir}/pylint-gui
|
||||||
|
%ghost %{_bindir}/pyreverse
|
||||||
|
%ghost %{_bindir}/symilar
|
||||||
|
%{python_sitelib}/%{modname}/
|
||||||
|
%{python_sitelib}/%{modname}-%{version}-py%{py_ver}.egg-info
|
||||||
|
|
||||||
%changelog
|
%changelog
|
||||||
|
Reference in New Issue
Block a user