From 9e5a2a290c65666958651af024fe30ac3c8db020 Mon Sep 17 00:00:00 2001 From: Silvan Calarco Date: Fri, 5 Jan 2024 16:40:38 +0100 Subject: [PATCH] provide python3*dist(six) [release 1.15.0-2mamba;Mon Dec 21 2020] --- python-six.spec | 31 ++++++++++++++++++++++++++++--- 1 file changed, 28 insertions(+), 3 deletions(-) diff --git a/python-six.spec b/python-six.spec index d3c95cf..7fe7d5a 100644 --- a/python-six.spec +++ b/python-six.spec @@ -1,6 +1,6 @@ Name: python-six Version: 1.15.0 -Release: 1mamba +Release: 2mamba Summary: Python 2 and 3 compatibility utilities Group: System/Libraries Vendor: openmamba @@ -21,8 +21,29 @@ BuildRoot: %{_tmppath}/%{name}-%{version}-root Six is a Python 2 and 3 compatibility library. It provides utility functions for smoothing over the differences between the Python versions with the goal of writing Python code that is compatible on both Python versions. -%if "%{?with_pyver}" -%pyver_package +%if "%?with_pyver" +%define pyver %{with_pyver} +%define pyappend py%{with_pyver} +%define __python %(rpm --eval %{__python%{with_pyver}}) +%define python_sitearch %(rpm --eval %{python%{with_pyver}_sitearch}) +%define python_sitelib %(rpm --eval %{python%{with_pyver}_sitelib}) +%define python_inc %(rpm --eval %{python%{with_pyver}_inc}) +%define python_version %(rpm --eval %{python%{with_pyver}_version}) +%define python_provides %(rpm --eval %{python%{with_pyver}_provides}) +%define python_requires %(rpm --eval %{python%{with_pyver}_requires}) +%define py_requires %(rpm --eval %{py%{with_pyver}_requires}) + +%package py%{pyver} +Group: System/Libraries/Python +Summary: %{summary}. +Requires: python-apipkg-%{?pyappend} +Provides: python%{python_version}dist(six) +Provides: python3dist(six) +Requires: udev +%py_requires + +%description py%{pyver} +%{summary}. %endif %prep @@ -44,9 +65,13 @@ CFLAGS="%{optflags}" %{__python} setup.py build %files %{?pyappend} -f %{name}.filelist %defattr(-,root,root) + %doc LICENSE documentation/index.rst %changelog +* Mon Dec 21 2020 Silvan Calarco 1.15.0-2mamba +- provide python3*dist(six) + * Mon May 25 2020 Automatic Build System 1.15.0-1mamba - automatic version update by autodist