15
0
forked from pool/python-extras

Accepting request 225930 from devel:languages:python

Automatic submission by obs-autosubmit

OBS-URL: https://build.opensuse.org/request/show/225930
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-extras?expand=0&rev=8
This commit is contained in:
Stephan Kulow
2014-03-14 14:17:50 +00:00
committed by Git OBS Bridge
2 changed files with 14 additions and 1 deletions

View File

@@ -1,3 +1,8 @@
-------------------------------------------------------------------
Fri Mar 7 11:01:35 UTC 2014 - speilicke@suse.com
- Add 'tests' build conditional
-------------------------------------------------------------------
Mon Nov 25 13:49:08 UTC 2013 - speilicke@suse.com

View File

@@ -1,7 +1,7 @@
#
# spec file for package python-extras
#
# Copyright (c) 2013 SUSE LINUX Products GmbH, Nuernberg, Germany.
# Copyright (c) 2014 SUSE LINUX Products 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,10 @@
#
# A build cycle exists between python-extras and python-testtools. Thus, only
# enable testing with a build conditional (off by default):
%bcond_with tests
Name: python-extras
Version: 0.0.3
Release: 0
@@ -27,7 +31,9 @@ Source: http://pypi.python.org/packages/source/e/extras/extras-%{version
BuildRequires: python-devel
BuildRequires: python-setuptools
# Test requirements:
%if %{with tests}
BuildRequires: python-testtools
%endif
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()")}
@@ -49,8 +55,10 @@ python setup.py build
%install
python setup.py install --prefix=%{_prefix} --root=%{buildroot}
%if %{with tests}
%check
python setup.py test
%endif
%files
%defattr(-,root,root,-)