- Stop building Python 2 packages (we avoid also weird constructs

with alternative noarch package).

OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-billiard?expand=0&rev=42
This commit is contained in:
Matej Cepl 2020-04-06 12:25:11 +00:00 committed by Git OBS Bridge
parent c7bd88ffa6
commit 57cec071e4
2 changed files with 8 additions and 5 deletions

View File

@ -1,3 +1,9 @@
-------------------------------------------------------------------
Mon Apr 6 12:24:22 UTC 2020 - Matej Cepl <mcepl@suse.com>
- Stop building Python 2 packages (we avoid also weird constructs
with alternative noarch package).
------------------------------------------------------------------- -------------------------------------------------------------------
Mon Mar 30 14:04:42 UTC 2020 - Marketa Calabkova <mcalabkova@suse.com> Mon Mar 30 14:04:42 UTC 2020 - Marketa Calabkova <mcalabkova@suse.com>

View File

@ -17,6 +17,7 @@
%{?!python_module:%define python_module() python-%{**} python3-%{**}} %{?!python_module:%define python_module() python-%{**} python3-%{**}}
%define skip_python2 1
Name: python-billiard Name: python-billiard
Version: 3.6.3.0 Version: 3.6.3.0
Release: 0 Release: 0
@ -31,13 +32,10 @@ BuildRequires: %{python_module pytest}
BuildRequires: %{python_module setuptools} BuildRequires: %{python_module setuptools}
BuildRequires: fdupes BuildRequires: fdupes
BuildRequires: python-rpm-macros BuildRequires: python-rpm-macros
BuildRequires: python2-devel
# Documentation requirements # Documentation requirements
BuildRequires: python3-Sphinx >= 0.5 BuildRequires: python3-Sphinx >= 0.5
Suggests: %{name}-doc = %{version} Suggests: %{name}-doc = %{version}
%ifpython3
BuildArch: noarch BuildArch: noarch
%endif
%package -n %{name}-doc %package -n %{name}-doc
Summary: Documentation for %{name} Summary: Documentation for %{name}
@ -77,8 +75,7 @@ popd
%files %{python_files} %files %{python_files}
%doc CHANGES.txt README.rst %doc CHANGES.txt README.rst
%license LICENSE.txt %license LICENSE.txt
%python3_only %{python_sitelib}/* %{python_sitelib}/*
%python2_only %{python_sitearch}/*
%files -n %{name}-doc %files -n %{name}-doc
%doc Doc/html %doc Doc/html