Accepting request 477104 from devel:languages:python

1

OBS-URL: https://build.opensuse.org/request/show/477104
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-traceback2?expand=0&rev=2
This commit is contained in:
Dominique Leuenberger 2017-03-09 00:41:59 +00:00 committed by Git OBS Bridge
commit 006c61691a
2 changed files with 23 additions and 13 deletions

View File

@ -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

View File

@ -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