forked from pool/python-testresources
- 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:
committed by
Git OBS Bridge
parent
cc286eb37d
commit
1ff03c955e
@@ -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
|
Thu Sep 21 09:04:38 UTC 2017 - tbechtold@suse.com
|
||||||
|
|
||||||
|
@@ -1,7 +1,7 @@
|
|||||||
#
|
#
|
||||||
# spec file for package python-testresources
|
# 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
|
# 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
|
||||||
@@ -21,13 +21,12 @@ Name: python-testresources
|
|||||||
Version: 2.0.1
|
Version: 2.0.1
|
||||||
Release: 0
|
Release: 0
|
||||||
Summary: Testresources, a pyunit extension for managing expensive test resources
|
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
|
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
|
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
|
# PATCH-FEATURE-UPSTREAM PR-8.patch -- https://github.com/testing-cabal/testresources/pull/8.patch
|
||||||
Patch1: PR-8.patch
|
Patch1: PR-8.patch
|
||||||
BuildRequires: %{python_module devel}
|
|
||||||
BuildRequires: %{python_module fixtures}
|
BuildRequires: %{python_module fixtures}
|
||||||
BuildRequires: %{python_module pbr}
|
BuildRequires: %{python_module pbr}
|
||||||
BuildRequires: %{python_module setuptools}
|
BuildRequires: %{python_module setuptools}
|
||||||
@@ -36,7 +35,6 @@ BuildRequires: %{python_module testtools}
|
|||||||
BuildRequires: fdupes
|
BuildRequires: fdupes
|
||||||
BuildRequires: python-rpm-macros
|
BuildRequires: python-rpm-macros
|
||||||
Requires: python-pbr
|
Requires: python-pbr
|
||||||
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
|
||||||
BuildArch: noarch
|
BuildArch: noarch
|
||||||
%python_subpackages
|
%python_subpackages
|
||||||
|
|
||||||
@@ -56,10 +54,10 @@ of resources by test cases.
|
|||||||
%python_expand %fdupes -s %{buildroot}%{$python_sitelib}
|
%python_expand %fdupes -s %{buildroot}%{$python_sitelib}
|
||||||
|
|
||||||
%check
|
%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}
|
%files %{python_files}
|
||||||
%defattr(-,root,root,-)
|
%license BSD Apache-2.0 COPYING
|
||||||
%doc README.rst
|
%doc README.rst
|
||||||
%{python_sitelib}/testresources
|
%{python_sitelib}/testresources
|
||||||
%{python_sitelib}/testresources-%{version}-py%{python_version}.egg-info
|
%{python_sitelib}/testresources-%{version}-py%{python_version}.egg-info
|
||||||
|
Reference in New Issue
Block a user