diff --git a/python-itsdangerous.changes b/python-itsdangerous.changes index 0e5e484..6d18f4c 100644 --- a/python-itsdangerous.changes +++ b/python-itsdangerous.changes @@ -1,3 +1,8 @@ +------------------------------------------------------------------- +Tue Apr 4 15:53:02 UTC 2017 - jmatejek@suse.com + +- update for singlespec + ------------------------------------------------------------------- Thu Nov 17 13:03:00 UTC 2016 - rjschwei@suse.com diff --git a/python-itsdangerous.spec b/python-itsdangerous.spec index b5a3f6d..1c2f59d 100644 --- a/python-itsdangerous.spec +++ b/python-itsdangerous.spec @@ -1,7 +1,7 @@ # # spec file for package python-itsdangerous # -# Copyright (c) 2016 SUSE LINUX 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,6 +16,7 @@ # +%{?!python_module:%define python_module() python-%{**} python3-%{**}} Name: python-itsdangerous Version: 0.24 Release: 0 @@ -23,14 +24,12 @@ Summary: Various helpers to pass trusted data to untrusted environments a License: BSD-3-Clause Group: Development/Languages/Python Url: http://github.com/mitsuhiko/itsdangerous -Source: https://pypi.python.org/packages/source/i/itsdangerous/itsdangerous-%{version}.tar.gz -BuildRequires: python-devel +Source: https://files.pythonhosted.org/packages/source/i/itsdangerous/itsdangerous-%{version}.tar.gz +BuildRequires: %{python_module devel} +BuildRequires: python-rpm-macros BuildRoot: %{_tmppath}/%{name}-%{version}-build -%if 0%{?suse_version} && 0%{?suse_version} <= 1110 -%{!?python_sitelib: %global python_sitelib %(python -c "from distutils.sysconfig import get_python_lib; print get_python_lib()")} -%else BuildArch: noarch -%endif +%python_subpackages %description It's Dangerous @@ -45,17 +44,16 @@ make it work better on its own. Also I plan to add some extra things. Work in progress. - %prep %setup -q -n itsdangerous-%{version} %build -python setup.py build +%python_build %install -python setup.py install --prefix=%{_prefix} --root=%{buildroot} +%python_install -%files +%files %{python_files} %defattr(-,root,root,-) %doc CHANGES LICENSE README %{python_sitelib}/*