Clean up the SPEC file
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-extras?expand=0&rev=21
This commit is contained in:
parent
47e27fe8ef
commit
c0e347eb42
@ -16,31 +16,29 @@
|
||||
#
|
||||
|
||||
|
||||
%{?!python_module:%define python_module() python-%{**} python3-%{**}}
|
||||
# A build cycle exists between python-extras and python-testtools. Thus, only
|
||||
# enable testing with a build conditional (off by default):
|
||||
%bcond_with tests
|
||||
|
||||
%{?!python_module:%define python_module() python-%{**} python3-%{**}}
|
||||
Name: python-extras
|
||||
Version: 1.0.0
|
||||
Release: 0
|
||||
Summary: Useful extra bits for Python
|
||||
License: MIT
|
||||
Group: Development/Languages/Python
|
||||
Url: https://github.com/testing-cabal/extras
|
||||
Source: https://pypi.io/packages/source/e/extras/extras-%{version}.tar.gz
|
||||
URL: https://github.com/testing-cabal/extras
|
||||
Source: https://files.pythonhosted.org/packages/source/e/extras/extras-%{version}.tar.gz
|
||||
BuildRequires: %{python_module setuptools}
|
||||
BuildRequires: fdupes
|
||||
BuildRequires: python-rpm-macros
|
||||
# Break cycle
|
||||
#!BuildIgnore: python-extras
|
||||
BuildArch: noarch
|
||||
# Test requirements:
|
||||
%if %{with tests}
|
||||
BuildRequires: %{python_module nose}
|
||||
BuildRequires: %{python_module testtools}
|
||||
%endif
|
||||
BuildRequires: fdupes
|
||||
BuildRequires: python-rpm-macros
|
||||
# Break cycle
|
||||
#!BuildIgnore: python-extras
|
||||
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
||||
BuildArch: noarch
|
||||
%python_subpackages
|
||||
|
||||
%description
|
||||
@ -64,8 +62,8 @@ general use outside of a testing context.
|
||||
%endif
|
||||
|
||||
%files %{python_files}
|
||||
%defattr(-,root,root,-)
|
||||
%doc LICENSE NEWS README.rst
|
||||
%license LICENSE
|
||||
%doc NEWS README.rst
|
||||
%{python_sitelib}/extras
|
||||
%{python_sitelib}/extras-%{version}-py%{python_version}.egg-info/
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user