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
|
# A build cycle exists between python-extras and python-testtools. Thus, only
|
||||||
# enable testing with a build conditional (off by default):
|
# enable testing with a build conditional (off by default):
|
||||||
%bcond_with tests
|
%bcond_with tests
|
||||||
|
|
||||||
%{?!python_module:%define python_module() python-%{**} python3-%{**}}
|
|
||||||
Name: python-extras
|
Name: python-extras
|
||||||
Version: 1.0.0
|
Version: 1.0.0
|
||||||
Release: 0
|
Release: 0
|
||||||
Summary: Useful extra bits for Python
|
Summary: Useful extra bits for Python
|
||||||
License: MIT
|
License: MIT
|
||||||
Group: Development/Languages/Python
|
Group: Development/Languages/Python
|
||||||
Url: https://github.com/testing-cabal/extras
|
URL: https://github.com/testing-cabal/extras
|
||||||
Source: https://pypi.io/packages/source/e/extras/extras-%{version}.tar.gz
|
Source: https://files.pythonhosted.org/packages/source/e/extras/extras-%{version}.tar.gz
|
||||||
BuildRequires: %{python_module setuptools}
|
BuildRequires: %{python_module setuptools}
|
||||||
|
BuildRequires: fdupes
|
||||||
|
BuildRequires: python-rpm-macros
|
||||||
|
# Break cycle
|
||||||
|
#!BuildIgnore: python-extras
|
||||||
|
BuildArch: noarch
|
||||||
# Test requirements:
|
# Test requirements:
|
||||||
%if %{with tests}
|
%if %{with tests}
|
||||||
BuildRequires: %{python_module nose}
|
BuildRequires: %{python_module nose}
|
||||||
BuildRequires: %{python_module testtools}
|
BuildRequires: %{python_module testtools}
|
||||||
%endif
|
%endif
|
||||||
BuildRequires: fdupes
|
|
||||||
BuildRequires: python-rpm-macros
|
|
||||||
# Break cycle
|
|
||||||
#!BuildIgnore: python-extras
|
|
||||||
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
|
||||||
BuildArch: noarch
|
|
||||||
%python_subpackages
|
%python_subpackages
|
||||||
|
|
||||||
%description
|
%description
|
||||||
@ -64,8 +62,8 @@ general use outside of a testing context.
|
|||||||
%endif
|
%endif
|
||||||
|
|
||||||
%files %{python_files}
|
%files %{python_files}
|
||||||
%defattr(-,root,root,-)
|
%license LICENSE
|
||||||
%doc LICENSE NEWS README.rst
|
%doc NEWS README.rst
|
||||||
%{python_sitelib}/extras
|
%{python_sitelib}/extras
|
||||||
%{python_sitelib}/extras-%{version}-py%{python_version}.egg-info/
|
%{python_sitelib}/extras-%{version}-py%{python_version}.egg-info/
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user