Hello community, here is the log from the commit of package python-traceback2 for openSUSE:Factory checked in at 2017-03-09 01:41:59 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Comparing /work/SRC/openSUSE:Factory/python-traceback2 (Old) and /work/SRC/openSUSE:Factory/.python-traceback2.new (New) ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Package is "python-traceback2" Thu Mar 9 01:41:59 2017 rev:2 rq:477104 version:1.4.0 Changes: -------- --- /work/SRC/openSUSE:Factory/python-traceback2/python-traceback2.changes 2015-10-24 10:23:13.000000000 +0200 +++ /work/SRC/openSUSE:Factory/.python-traceback2.new/python-traceback2.changes 2017-03-09 01:41:59.929028174 +0100 @@ -1,0 +2,6 @@ +Wed Mar 1 20:44:21 UTC 2017 - [email protected] + +- Converted to single-spec +- Replaced the source URL with pypi.io link + +------------------------------------------------------------------- ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Other differences: ------------------ ++++++ python-traceback2.spec ++++++ --- /var/tmp/diff_new_pack.ZMEnTS/_old 2017-03-09 01:42:00.736913775 +0100 +++ /var/tmp/diff_new_pack.ZMEnTS/_new 2017-03-09 01:42:00.740913209 +0100 @@ -1,7 +1,7 @@ # # spec file for package python-traceback2 # -# 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-traceback2 Version: 1.4.0 Release: 0 Summary: Backports of the traceback 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/bitprophet/traceback2 -Source: https://pypi.python.org/packages/source/t/traceback2/traceback2-%{version}.tar.gz -BuildRequires: python-devel -BuildRequires: python-setuptools -BuildRequires: python-pbr +Source: https://pypi.io/packages/source/t/traceback2/traceback2-%{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 traceback to older supported Pythons. @@ -42,16 +44,18 @@ %setup -q -n traceback2-%{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}/traceback2 +%{python_sitelib}/traceback2-%{version}-py*.egg-info %changelog
