forked from pool/python-testresources
Accepting request 488079 from home:alois:branches:devel:languages:python
Converted to single-spec. OBS-URL: https://build.opensuse.org/request/show/488079 OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-testresources?expand=0&rev=10
This commit is contained in:
committed by
Git OBS Bridge
parent
d05377b501
commit
3d22f33a65
@@ -1,3 +1,9 @@
|
|||||||
|
-------------------------------------------------------------------
|
||||||
|
Sun Apr 9 13:28:52 UTC 2017 - aloisio@gmx.com
|
||||||
|
|
||||||
|
- Converted to single-spec
|
||||||
|
- Fixed source URL
|
||||||
|
|
||||||
-------------------------------------------------------------------
|
-------------------------------------------------------------------
|
||||||
Mon Nov 14 14:13:03 UTC 2016 - dmueller@suse.com
|
Mon Nov 14 14:13:03 UTC 2016 - dmueller@suse.com
|
||||||
|
|
||||||
|
@@ -1,7 +1,7 @@
|
|||||||
#
|
#
|
||||||
# spec file for package python-testresources
|
# spec file for package python-testresources
|
||||||
#
|
#
|
||||||
# Copyright (c) 2016 SUSE LINUX 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,7 @@
|
|||||||
#
|
#
|
||||||
|
|
||||||
|
|
||||||
|
%{?!python_module:%define python_module() python-%{**} python3-%{**}}
|
||||||
Name: python-testresources
|
Name: python-testresources
|
||||||
Version: 2.0.1
|
Version: 2.0.1
|
||||||
Release: 0
|
Release: 0
|
||||||
@@ -23,17 +24,18 @@ Summary: Testresources, a pyunit extension for managing expensive test re
|
|||||||
License: (Apache-2.0 or BSD-3-Clause) and GPL-2.0+
|
License: (Apache-2.0 or BSD-3-Clause) and GPL-2.0+
|
||||||
Group: Development/Languages/Python
|
Group: Development/Languages/Python
|
||||||
Url: https://launchpad.net/testresources
|
Url: https://launchpad.net/testresources
|
||||||
Source: http://pypi.python.org/packages/source/t/testresources/testresources-%{version}.tar.gz
|
Source: https://files.pythonhosted.org/packages/source/t/testresources/testresources-%{version}.tar.gz
|
||||||
BuildRequires: python-devel
|
BuildRequires: %{python_module devel}
|
||||||
BuildRequires: python-pbr
|
BuildRequires: %{python_module fixtures}
|
||||||
BuildRequires: python-setuptools
|
BuildRequires: %{python_module pbr}
|
||||||
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
BuildRequires: %{python_module setuptools}
|
||||||
%if 0%{?suse_version} && 0%{?suse_version} <= 1110
|
BuildRequires: %{python_module testtools}
|
||||||
%{!?python_sitelib: %global python_sitelib %(python -c "from distutils.sysconfig import get_python_lib; print get_python_lib()")}
|
BuildRequires: fdupes
|
||||||
%else
|
BuildRequires: python-rpm-macros
|
||||||
BuildArch: noarch
|
|
||||||
%endif
|
|
||||||
Requires: python-pbr
|
Requires: python-pbr
|
||||||
|
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
||||||
|
BuildArch: noarch
|
||||||
|
%python_subpackages
|
||||||
|
|
||||||
%description
|
%description
|
||||||
testresources: extensions to python unittest to allow declarative use
|
testresources: extensions to python unittest to allow declarative use
|
||||||
@@ -43,17 +45,19 @@ of resources by test cases.
|
|||||||
%setup -q -n testresources-%{version}
|
%setup -q -n testresources-%{version}
|
||||||
|
|
||||||
%build
|
%build
|
||||||
python setup.py build
|
%python_build
|
||||||
|
|
||||||
%install
|
%install
|
||||||
python setup.py install --prefix=%{_prefix} --root=%{buildroot}
|
%python_install
|
||||||
|
%python_expand %fdupes -s %{buildroot}%{$python_sitelib}
|
||||||
|
|
||||||
%check
|
%check
|
||||||
python setup.py test
|
%python_expand LANG=en_US.UTF-8 PYTHONPATH=%{buildroot}%{$python_sitelib} $python -m testtools.run discover
|
||||||
|
|
||||||
%files
|
%files %{python_files}
|
||||||
%defattr(-,root,root,-)
|
%defattr(-,root,root,-)
|
||||||
%doc README.rst
|
%doc README.rst
|
||||||
%{python_sitelib}/*
|
%{python_sitelib}/testresources
|
||||||
|
%{python_sitelib}/testresources-%{version}-py%{python_version}.egg-info
|
||||||
|
|
||||||
%changelog
|
%changelog
|
||||||
|
Reference in New Issue
Block a user