14
0

Accepting request 519805 from devel:languages:python:singlespec-staging

- singlespec auto-conversion
- Add provides/obsoletes for python-ScriptTest, this one is newer
- Initial version

OBS-URL: https://build.opensuse.org/request/show/519805
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-scripttest?expand=0&rev=5
This commit is contained in:
Todd R
2017-08-30 23:22:48 +00:00
committed by Git OBS Bridge
parent 71145f3913
commit de6fba7873
2 changed files with 20 additions and 13 deletions

View File

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

View File

@@ -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}/*