2015-10-12 11:30:17 +00:00
|
|
|
#
|
|
|
|
# spec file for package python-linecache2
|
|
|
|
#
|
2019-01-17 19:12:49 +00:00
|
|
|
# Copyright (c) 2019 SUSE LINUX GmbH, Nuernberg, Germany.
|
2015-10-12 11:30:17 +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.
|
|
|
|
|
2018-12-04 13:38:29 +00:00
|
|
|
# Please submit bugfixes or comments via https://bugs.opensuse.org/
|
2015-10-12 11:30:17 +00:00
|
|
|
#
|
|
|
|
|
|
|
|
|
2017-03-06 08:33:21 +00:00
|
|
|
%{?!python_module:%define python_module() python-%{**} python3-%{**}}
|
2015-10-12 11:30:17 +00:00
|
|
|
Name: python-linecache2
|
|
|
|
Version: 1.0.0
|
|
|
|
Release: 0
|
|
|
|
Summary: Backports of the linecache module
|
2017-03-06 08:33:21 +00:00
|
|
|
# This is a backport of code taken from the Python codebase,
|
|
|
|
# and such is under the same license as Python as a whole.
|
2018-12-04 13:38:29 +00:00
|
|
|
License: Python-2.0
|
|
|
|
Group: Development/Languages/Python
|
2019-01-17 19:12:49 +00:00
|
|
|
URL: https://github.com/testing-cabal/linecache2
|
2017-03-06 08:33:21 +00:00
|
|
|
Source: https://pypi.io/packages/source/l/linecache2/linecache2-%{version}.tar.gz
|
|
|
|
BuildRequires: %{python_module pbr}
|
|
|
|
BuildRequires: %{python_module setuptools}
|
|
|
|
BuildRequires: fdupes
|
|
|
|
BuildRequires: python-rpm-macros
|
2019-01-17 19:12:49 +00:00
|
|
|
#!BuildIgnore: python2-pyparsing
|
|
|
|
#!BuildIgnore: python3-pyparsing
|
2015-10-12 11:30:17 +00:00
|
|
|
Requires: python-pbr
|
|
|
|
BuildArch: noarch
|
2017-03-06 08:33:21 +00:00
|
|
|
%python_subpackages
|
2015-10-12 11:30:17 +00:00
|
|
|
|
|
|
|
%description
|
2015-10-14 19:29:28 +00:00
|
|
|
A backport of linecache to older supported Pythons.
|
2015-10-12 11:30:17 +00:00
|
|
|
|
|
|
|
%prep
|
|
|
|
%setup -q -n linecache2-%{version}
|
|
|
|
|
|
|
|
%build
|
2017-03-06 08:33:21 +00:00
|
|
|
%python_build
|
2015-10-12 11:30:17 +00:00
|
|
|
|
|
|
|
%install
|
2017-03-06 08:33:21 +00:00
|
|
|
%python_install
|
|
|
|
%python_expand %fdupes -s %{buildroot}%{$python_sitelib}
|
2015-10-12 11:30:17 +00:00
|
|
|
|
2017-03-06 08:33:21 +00:00
|
|
|
%files %{python_files}
|
2015-10-12 11:30:17 +00:00
|
|
|
%defattr(-,root,root,-)
|
|
|
|
%doc README.rst AUTHORS ChangeLog
|
2015-10-14 19:29:28 +00:00
|
|
|
# Contains the license
|
|
|
|
%doc setup.cfg
|
2017-03-06 08:33:21 +00:00
|
|
|
%{python_sitelib}/linecache2
|
|
|
|
%{python_sitelib}/linecache2-%{version}-py*.egg-info
|
2015-10-12 11:30:17 +00:00
|
|
|
|
|
|
|
%changelog
|