14
0

Accepting request 519806 from devel:languages:python

1

OBS-URL: https://build.opensuse.org/request/show/519806
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-scripttest?expand=0&rev=4
This commit is contained in:
2017-09-04 10:17:47 +00:00
committed by Git OBS Bridge
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 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 - Initial version

View File

@@ -1,7 +1,7 @@
# #
# spec file for package python-scripttest # 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 # All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed # 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 Name: python-scripttest
Version: 1.3 Version: 1.3
Release: 0 Release: 0
@@ -23,17 +25,16 @@ Summary: Helper to test command-line scripts
License: MIT License: MIT
Group: Development/Languages/Python Group: Development/Languages/Python
Url: http://pythonpaste.org/scripttest/ Url: http://pythonpaste.org/scripttest/
Source: https://pypi.python.org/packages/source/s/scripttest/scripttest-%{version}.tar.gz Source: https://files.pythonhosted.org/packages/source/s/scripttest/scripttest-%{version}.tar.gz
BuildRequires: python-devel BuildRequires: %{python_module devel}
BuildRequires: python-setuptools BuildRequires: %{python_module setuptools}
BuildRoot: %{_tmppath}/%{name}-%{version}-build BuildRequires: python-rpm-macros
%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 BuildArch: noarch
%ifpython2
Provides: %{oldpython}-ScriptTest = %{version}
Obsoletes: %{oldpython}-ScriptTest < %{version}
%endif %endif
Provides: python-ScriptTest = %{version} %python_subpackages
Obsoletes: python-ScriptTest < %{version}
%description %description
scripttest is a library to help you test your interactive command-line 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} %setup -q -n scripttest-%{version}
%build %build
python setup.py build %python_build
%install %install
python setup.py install --prefix=%{_prefix} --root=%{buildroot} %python_install
%files %files %{python_files}
%defattr(-,root,root,-) %defattr(-,root,root,-)
%doc README.rst %doc README.rst
%{python_sitelib}/* %{python_sitelib}/*