2012-02-13 02:27:39 +00:00
|
|
|
#
|
|
|
|
# spec file for package python-pyflakes
|
|
|
|
#
|
2021-05-09 14:46:00 +00:00
|
|
|
# Copyright (c) 2021 SUSE LLC
|
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
|
|
|
|
2019-01-26 21:40:28 +00:00
|
|
|
# Please submit bugfixes or comments via https://bugs.opensuse.org/
|
2012-02-13 02:27:39 +00:00
|
|
|
#
|
2013-04-22 09:27:24 +00:00
|
|
|
|
|
|
|
|
2017-03-23 13:16:41 +00:00
|
|
|
%{?!python_module:%define python_module() python-%{**} python3-%{**}}
|
2018-01-17 15:34:35 +00:00
|
|
|
%bcond_without test
|
2009-12-28 20:09:39 +00:00
|
|
|
Name: python-pyflakes
|
2021-05-09 14:46:00 +00:00
|
|
|
Version: 2.3.1
|
2012-02-13 02:27:39 +00:00
|
|
|
Release: 0
|
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
|
2019-01-26 21:40:28 +00:00
|
|
|
URL: https://github.com/PyCQA/pyflakes
|
2018-01-17 15:34:35 +00:00
|
|
|
Source: https://files.pythonhosted.org/packages/source/p/pyflakes/pyflakes-%{version}.tar.gz
|
2017-03-23 13:16:41 +00:00
|
|
|
BuildRequires: %{python_module setuptools}
|
2018-01-17 15:34:35 +00:00
|
|
|
BuildRequires: fdupes
|
2017-03-23 13:16:41 +00:00
|
|
|
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
|
2021-05-09 14:46:00 +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
|
2018-01-17 15:34:35 +00:00
|
|
|
%python_expand %fdupes %{buildroot}%{$python_sitelib}/pyflakes/
|
2017-03-23 13:16:41 +00:00
|
|
|
%python_clone -a %{buildroot}%{_bindir}/pyflakes
|
2016-01-13 10:07:11 +00:00
|
|
|
|
2018-01-17 15:34:35 +00:00
|
|
|
%if %{with test}
|
|
|
|
%check
|
|
|
|
%python_exec setup.py test
|
|
|
|
%endif
|
|
|
|
|
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}
|
2019-01-26 21:40:28 +00:00
|
|
|
%license LICENSE
|
|
|
|
%doc NEWS.rst 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
|