- Add 'tests' build conditional
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-extras?expand=0&rev=12
This commit is contained in:
parent
debacbb214
commit
af8f90c612
@ -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
|
||||
|
||||
|
@ -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,-)
|
||||
|
Loading…
x
Reference in New Issue
Block a user