From 1ff03c955e95f10303d0a2dac7a843a68eb285d1b37c4ee60c09462a284d8d18 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Tom=C3=A1=C5=A1=20Chv=C3=A1tal?= Date: Tue, 7 Aug 2018 10:26:44 +0000 Subject: [PATCH] - 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 --- python-testresources.changes | 7 +++++++ python-testresources.spec | 12 +++++------- 2 files changed, 12 insertions(+), 7 deletions(-) diff --git a/python-testresources.changes b/python-testresources.changes index 108c1ff..402fa2c 100644 --- a/python-testresources.changes +++ b/python-testresources.changes @@ -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 diff --git a/python-testresources.spec b/python-testresources.spec index cee2921..83417c8 100644 --- a/python-testresources.spec +++ b/python-testresources.spec @@ -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