From 64e2dbd6d6718a3176e9ba0625f9511a03f1a927 Mon Sep 17 00:00:00 2001 From: Silvan Calarco Date: Sat, 6 Jan 2024 10:56:48 +0100 Subject: [PATCH] py3* packages: require python-pycparser-py3* [release 1.14.0-2mamba;Sat Apr 11 2020] --- python-cffi.spec | 27 ++++++++++++++++++++++++--- 1 file changed, 24 insertions(+), 3 deletions(-) diff --git a/python-cffi.spec b/python-cffi.spec index 678bb92..21981b8 100644 --- a/python-cffi.spec +++ b/python-cffi.spec @@ -1,6 +1,6 @@ Name: python-cffi Version: 1.14.0 -Release: 1mamba +Release: 2mamba Summary: Foreign Function Interface for Python calling C code Group: System/Libraries Vendor: openmamba @@ -20,8 +20,26 @@ BuildRoot: %{_tmppath}/%{name}-%{version}-root %description %{summary}. -%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-pycparser-%{?pyappend} +%py_requires + +%description py%{pyver} +%{summary}. %endif %prep @@ -47,6 +65,9 @@ sed -i "\,\.egg-info/,d;s,.*/man/.*,&.gz," %{name}.filelist %{python_sitearch}/cffi-%{version}-py*.egg-info/* %changelog +* Sat Apr 11 2020 Silvan Calarco 1.14.0-2mamba +- py3* packages: require python-pycparser-py3* + * Fri Feb 14 2020 Automatic Build System 1.14.0-1mamba - automatic version update by autodist