diff --git a/python-traceback2.changes b/python-traceback2.changes index 65c7eec..f88e0b6 100644 --- a/python-traceback2.changes +++ b/python-traceback2.changes @@ -1,3 +1,9 @@ +------------------------------------------------------------------- +Wed Mar 1 20:44:21 UTC 2017 - aloisio@gmx.com + +- Converted to single-spec +- Replaced the source URL with pypi.io link + ------------------------------------------------------------------- Wed Oct 14 19:16:33 UTC 2015 - toddrme2178@gmail.com diff --git a/python-traceback2.spec b/python-traceback2.spec index 87c2973..32be2a7 100644 --- a/python-traceback2.spec +++ b/python-traceback2.spec @@ -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 @@ A backport of traceback to older supported Pythons. %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