2011-04-16 19:02:21 +00:00
|
|
|
#
|
|
|
|
# spec file for package python-testscenarios
|
|
|
|
#
|
2015-05-15 13:30:46 +00:00
|
|
|
# Copyright (c) 2015 SUSE LINUX GmbH, Nuernberg, Germany.
|
2011-04-16 19:02:21 +00:00
|
|
|
#
|
|
|
|
# All modifications and additions to the file contributed by third parties
|
|
|
|
# remain the property of their copyright owners, unless otherwise agreed
|
|
|
|
# upon. The license for this file, and modifications and additions to the
|
|
|
|
# file, is the same license as for the pristine package itself (unless the
|
|
|
|
# license for the pristine package is not an Open Source License, in which
|
|
|
|
# case the license is the MIT License). An "Open Source License" is a
|
|
|
|
# license that conforms to the Open Source Definition (Version 1.9)
|
|
|
|
# published by the Open Source Initiative.
|
2013-06-17 12:54:23 +00:00
|
|
|
|
2011-04-16 19:02:21 +00:00
|
|
|
# Please submit bugfixes or comments via http://bugs.opensuse.org/
|
|
|
|
#
|
|
|
|
|
2013-06-17 12:54:23 +00:00
|
|
|
|
2012-04-06 21:23:03 +00:00
|
|
|
Name: python-testscenarios
|
2015-05-15 13:30:46 +00:00
|
|
|
Version: 0.5.0
|
2011-04-16 19:02:21 +00:00
|
|
|
Release: 0
|
|
|
|
Url: https://launchpad.net/testscenarios
|
2012-04-06 21:23:03 +00:00
|
|
|
Summary: Testscenarios, a pyunit extension for dependency injection
|
|
|
|
License: Apache-2.0 or BSD-3-Clause
|
2011-04-16 19:02:21 +00:00
|
|
|
Group: Development/Languages/Python
|
2012-04-06 21:23:03 +00:00
|
|
|
Source: http://pypi.python.org/packages/source/t/testscenarios/testscenarios-%{version}.tar.gz
|
2011-04-16 19:02:21 +00:00
|
|
|
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
|
|
|
BuildRequires: python-devel
|
2015-05-15 13:30:46 +00:00
|
|
|
BuildRequires: python-pbr >= 0.11
|
|
|
|
BuildRequires: python-testtools
|
2013-05-02 13:45:58 +00:00
|
|
|
# Test requirements:
|
|
|
|
BuildRequires: python-extras
|
2013-06-17 12:54:23 +00:00
|
|
|
BuildRequires: python-nose
|
2015-05-15 13:30:46 +00:00
|
|
|
Requires: python-pbr >= 0.11
|
|
|
|
Requires: python-testtools
|
2013-05-02 13:45:58 +00:00
|
|
|
%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
|
2011-04-16 19:02:21 +00:00
|
|
|
BuildArch: noarch
|
|
|
|
%endif
|
|
|
|
|
|
|
|
%description
|
|
|
|
testscenarios provides clean dependency injection for python unittest style
|
|
|
|
tests. This can be used for interface testing (testing many implementations via
|
|
|
|
a single test suite) or for classic dependency injection (provide tests with
|
|
|
|
dependencies externally to the test code itself, allowing easy testing in
|
|
|
|
different situations).
|
|
|
|
|
|
|
|
%prep
|
2012-04-06 21:23:03 +00:00
|
|
|
%setup -q -n testscenarios-%{version}
|
2011-04-16 19:02:21 +00:00
|
|
|
|
|
|
|
%build
|
2013-05-02 13:45:58 +00:00
|
|
|
python setup.py build
|
2011-04-16 19:02:21 +00:00
|
|
|
|
|
|
|
%install
|
|
|
|
python setup.py install --prefix=%{_prefix} --root=%{buildroot}
|
|
|
|
|
2013-05-06 07:39:31 +00:00
|
|
|
#NOTE(saschpe): /usr/bin/make missing on SP2?
|
|
|
|
%if 0%{?suse_version} >= 1120
|
2013-05-02 13:45:58 +00:00
|
|
|
%check
|
2013-05-06 07:39:31 +00:00
|
|
|
make check
|
|
|
|
%endif
|
2013-05-02 13:45:58 +00:00
|
|
|
|
2011-04-16 19:02:21 +00:00
|
|
|
%files
|
|
|
|
%defattr(-,root,root,-)
|
2013-05-02 13:45:58 +00:00
|
|
|
%doc Apache-2.0 BSD COPYING GOALS HACKING NEWS README
|
2012-04-06 21:23:03 +00:00
|
|
|
%{python_sitelib}/*
|
2011-04-16 19:02:21 +00:00
|
|
|
|
2012-04-06 21:23:03 +00:00
|
|
|
%changelog
|