Hello community, here is the log from the commit of package python-linecache2 for openSUSE:Factory checked in at 2017-03-09 01:40:46 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Comparing /work/SRC/openSUSE:Factory/python-linecache2 (Old) and /work/SRC/openSUSE:Factory/.python-linecache2.new (New) ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Package is "python-linecache2" Thu Mar 9 01:40:46 2017 rev:2 rq:477102 version:1.0.0 Changes: -------- --- /work/SRC/openSUSE:Factory/python-linecache2/python-linecache2.changes 2015-10-24 10:23:20.000000000 +0200 +++ /work/SRC/openSUSE:Factory/.python-linecache2.new/python-linecache2.changes 2017-03-09 01:40:47.463289666 +0100 @@ -1,0 +2,7 @@ +Wed Mar 1 20:53:15 UTC 2017 - [email protected] + +- Converted to single-spec +- Replaced the source URL with pypi.io link +- Added fdupes + +------------------------------------------------------------------- ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Other differences: ------------------ ++++++ python-linecache2.spec ++++++ --- /var/tmp/diff_new_pack.j6WrSJ/_old 2017-03-09 01:40:48.355163372 +0100 +++ /var/tmp/diff_new_pack.j6WrSJ/_new 2017-03-09 01:40:48.359162806 +0100 @@ -1,7 +1,7 @@ # # spec file for package python-linecache2 # -# Copyright (c) 2015 SUSE LINUX Products GmbH, Nuernberg, Germany. +# Copyright (c) 2017 SUSE LINUX GmbH, Nuernberg, Germany. # # All modifications and additions to the file contributed by third parties # remain the property of their copyright owners, unless otherwise agreed @@ -16,24 +16,26 @@ # +%{?!python_module:%define python_module() python-%{**} python3-%{**}} Name: python-linecache2 Version: 1.0.0 Release: 0 Summary: Backports of the linecache module -# This is a backport of code taken from the Python codebase, -# and such is under the same license as Python as a whole. License: Python-2.0 Group: Development/Languages/Python +# This is a backport of code taken from the Python codebase, +# and such is under the same license as Python as a whole. Url: https://github.com/testing-cabal/linecache2 -Source: https://pypi.python.org/packages/source/l/linecache2/linecache2-%{version}.tar.gz -BuildRequires: python-devel -BuildRequires: python-setuptools -BuildRequires: python-pbr +Source: https://pypi.io/packages/source/l/linecache2/linecache2-%{version}.tar.gz +BuildRequires: %{python_module devel} +BuildRequires: %{python_module pbr} +BuildRequires: %{python_module setuptools} +BuildRequires: fdupes +BuildRequires: python-rpm-macros Requires: python-pbr BuildRoot: %{_tmppath}/%{name}-%{version}-build -%if 0%{?suse_version} && 0%{?suse_version} > 1110 BuildArch: noarch -%endif +%python_subpackages %description A backport of linecache to older supported Pythons. @@ -42,16 +44,18 @@ %setup -q -n linecache2-%{version} %build -python setup.py build +%python_build %install -python setup.py install --prefix=%{_prefix} --optimize=2 --root=%{buildroot} +%python_install +%python_expand %fdupes -s %{buildroot}%{$python_sitelib} -%files +%files %{python_files} %defattr(-,root,root,-) %doc README.rst AUTHORS ChangeLog # Contains the license %doc setup.cfg -%{python_sitelib}/* +%{python_sitelib}/linecache2 +%{python_sitelib}/linecache2-%{version}-py*.egg-info %changelog
