diff --git a/python-scripttest.changes b/python-scripttest.changes index d360af8..6218dfb 100644 --- a/python-scripttest.changes +++ b/python-scripttest.changes @@ -1,3 +1,8 @@ +------------------------------------------------------------------- +Thu Aug 24 13:54:21 UTC 2017 - jmatejek@suse.com + +- singlespec auto-conversion + ------------------------------------------------------------------- Thu Mar 6 14:42:11 UTC 2014 - speilicke@suse.com @@ -8,3 +13,4 @@ Tue Jan 7 14:10:36 UTC 2014 - speilicke@suse.com - Initial version + diff --git a/python-scripttest.spec b/python-scripttest.spec index 0132fdb..73c34ba 100644 --- a/python-scripttest.spec +++ b/python-scripttest.spec @@ -1,7 +1,7 @@ # # spec file for package python-scripttest # -# Copyright (c) 2014 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,6 +16,8 @@ # +%{?!python_module:%define python_module() python-%{**} python3-%{**}} +%define oldpython python Name: python-scripttest Version: 1.3 Release: 0 @@ -23,17 +25,16 @@ Summary: Helper to test command-line scripts License: MIT Group: Development/Languages/Python Url: http://pythonpaste.org/scripttest/ -Source: https://pypi.python.org/packages/source/s/scripttest/scripttest-%{version}.tar.gz -BuildRequires: python-devel -BuildRequires: python-setuptools -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 +Source: https://files.pythonhosted.org/packages/source/s/scripttest/scripttest-%{version}.tar.gz +BuildRequires: %{python_module devel} +BuildRequires: %{python_module setuptools} +BuildRequires: python-rpm-macros BuildArch: noarch +%ifpython2 +Provides: %{oldpython}-ScriptTest = %{version} +Obsoletes: %{oldpython}-ScriptTest < %{version} %endif -Provides: python-ScriptTest = %{version} -Obsoletes: python-ScriptTest < %{version} +%python_subpackages %description scripttest is a library to help you test your interactive command-line @@ -46,12 +47,12 @@ output (stdout, stderr) and any file modifications. %setup -q -n scripttest-%{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 README.rst %{python_sitelib}/*