2012-02-13 02:27:39 +00:00
|
|
|
#
|
|
|
|
# spec file for package python-pyflakes
|
|
|
|
#
|
2017-02-16 14:12:11 +00:00
|
|
|
# Copyright (c) 2017 SUSE LINUX GmbH, Nuernberg, Germany.
|
2012-02-13 02:27:39 +00:00
|
|
|
#
|
|
|
|
# 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.
|
2013-04-22 09:27:24 +00:00
|
|
|
|
2012-02-13 02:27:39 +00:00
|
|
|
# Please submit bugfixes or comments via http://bugs.opensuse.org/
|
|
|
|
#
|
2013-04-22 09:27:24 +00:00
|
|
|
|
|
|
|
|
2017-03-23 13:16:41 +00:00
|
|
|
%{?!python_module:%define python_module() python-%{**} python3-%{**}}
|
2009-12-28 20:09:39 +00:00
|
|
|
Name: python-pyflakes
|
2017-02-16 14:12:11 +00:00
|
|
|
Version: 1.5.0
|
2012-02-13 02:27:39 +00:00
|
|
|
Release: 0
|
|
|
|
Url: https://launchpad.net/pyflakes
|
2009-12-28 20:09:39 +00:00
|
|
|
Summary: Passive checker of Python programs
|
|
|
|
License: MIT
|
2012-02-13 02:27:39 +00:00
|
|
|
Group: Development/Languages/Python
|
2013-04-22 09:27:24 +00:00
|
|
|
Source: pyflakes-%{version}.tar.gz
|
2009-12-28 20:09:39 +00:00
|
|
|
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
2017-03-23 13:16:41 +00:00
|
|
|
BuildRequires: %{python_module setuptools}
|
|
|
|
BuildRequires: python-rpm-macros
|
2015-11-11 09:30:52 +00:00
|
|
|
# the pkg_resources module is required at runtime
|
|
|
|
Requires: python-setuptools
|
2016-01-13 10:07:11 +00:00
|
|
|
Requires(post): update-alternatives
|
2017-03-29 14:19:23 +00:00
|
|
|
Requires(postun): update-alternatives
|
2009-12-28 20:09:39 +00:00
|
|
|
BuildArch: noarch
|
2017-03-23 13:16:41 +00:00
|
|
|
|
|
|
|
%python_subpackages
|
2009-12-28 20:09:39 +00:00
|
|
|
|
|
|
|
%description
|
2012-02-13 02:27:39 +00:00
|
|
|
Pyflakes is program to analyze Python programs and detect various errors. It
|
|
|
|
works by parsing the source file, not importing it, so it is safe to use on
|
|
|
|
modules with side effects. It's also much faster.
|
2009-12-28 20:09:39 +00:00
|
|
|
|
|
|
|
%prep
|
|
|
|
%setup -q -n pyflakes-%{version}
|
|
|
|
|
|
|
|
%build
|
2017-03-23 13:16:41 +00:00
|
|
|
%python_build
|
2009-12-28 20:09:39 +00:00
|
|
|
|
|
|
|
%install
|
2017-03-23 13:16:41 +00:00
|
|
|
%python_install
|
|
|
|
%python_clone -a %{buildroot}%{_bindir}/pyflakes
|
2016-01-13 10:07:11 +00:00
|
|
|
|
|
|
|
%post
|
2017-03-23 13:16:41 +00:00
|
|
|
%python_install_alternative pyflakes
|
2016-01-13 10:07:11 +00:00
|
|
|
|
2017-03-29 14:19:23 +00:00
|
|
|
%postun
|
2017-03-23 13:16:41 +00:00
|
|
|
%python_uninstall_alternative pyflakes
|
2016-01-13 10:07:11 +00:00
|
|
|
|
2017-03-23 13:16:41 +00:00
|
|
|
%files %{python_files}
|
2012-02-13 02:27:39 +00:00
|
|
|
%defattr(-,root,root,-)
|
2013-11-19 15:48:55 +00:00
|
|
|
%doc LICENSE NEWS.txt README.rst AUTHORS
|
2017-03-23 13:16:41 +00:00
|
|
|
%python_alternative %{_bindir}/pyflakes
|
2014-04-11 19:50:21 +00:00
|
|
|
%{python_sitelib}/pyflakes/
|
|
|
|
%{python_sitelib}/pyflakes-%{version}-py*.egg-info
|
2009-12-28 20:09:39 +00:00
|
|
|
|
2012-02-13 02:27:39 +00:00
|
|
|
%changelog
|