14
0

- Cleanup with spec-cleaner

- Simplify the tests execution
- Install license files

OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-testresources?expand=0&rev=14
This commit is contained in:
Tomáš Chvátal
2018-08-07 10:26:44 +00:00
committed by Git OBS Bridge
parent cc286eb37d
commit 1ff03c955e
2 changed files with 12 additions and 7 deletions

View File

@@ -1,3 +1,10 @@
-------------------------------------------------------------------
Tue Aug 7 10:17:11 UTC 2018 - tchvatal@suse.com
- Cleanup with spec-cleaner
- Simplify the tests execution
- Install license files
-------------------------------------------------------------------
Thu Sep 21 09:04:38 UTC 2017 - tbechtold@suse.com

View File

@@ -1,7 +1,7 @@
#
# spec file for package python-testresources
#
# Copyright (c) 2017 SUSE LINUX GmbH, Nuernberg, Germany.
# Copyright (c) 2018 SUSE LINUX GmbH, Nuernberg, Germany.
#
# All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed
@@ -21,13 +21,12 @@ Name: python-testresources
Version: 2.0.1
Release: 0
Summary: Testresources, a pyunit extension for managing expensive test resources
License: (Apache-2.0 or BSD-3-Clause) and GPL-2.0+
License: (Apache-2.0 OR BSD-3-Clause) AND GPL-2.0-or-later
Group: Development/Languages/Python
Url: https://launchpad.net/testresources
URL: https://github.com/testing-cabal/testresources
Source: https://files.pythonhosted.org/packages/source/t/testresources/testresources-%{version}.tar.gz
# PATCH-FEATURE-UPSTREAM PR-8.patch -- https://github.com/testing-cabal/testresources/pull/8.patch
Patch1: PR-8.patch
BuildRequires: %{python_module devel}
BuildRequires: %{python_module fixtures}
BuildRequires: %{python_module pbr}
BuildRequires: %{python_module setuptools}
@@ -36,7 +35,6 @@ BuildRequires: %{python_module testtools}
BuildRequires: fdupes
BuildRequires: python-rpm-macros
Requires: python-pbr
BuildRoot: %{_tmppath}/%{name}-%{version}-build
BuildArch: noarch
%python_subpackages
@@ -56,10 +54,10 @@ of resources by test cases.
%python_expand %fdupes -s %{buildroot}%{$python_sitelib}
%check
%python_expand LANG=en_US.UTF-8 PYTHONPATH=%{buildroot}%{$python_sitelib} $python -m testtools.run discover
%python_exec setup.py test
%files %{python_files}
%defattr(-,root,root,-)
%license BSD Apache-2.0 COPYING
%doc README.rst
%{python_sitelib}/testresources
%{python_sitelib}/testresources-%{version}-py%{python_version}.egg-info