rebuilt with python 3.10 subpackage [release 4.18.1-2mamba;Thu Mar 23 2023]

This commit is contained in:
Silvan Calarco 2024-01-05 17:29:08 +01:00
parent 03d2791850
commit c794a3d04b

View File

@ -17,7 +17,7 @@
Name: rpm Name: rpm
Epoch: 1 Epoch: 1
Version: 4.18.1 Version: 4.18.1
Release: 1mamba Release: 2mamba
Summary: The RPM Package Manager (RPM) is a powerful package management system Summary: The RPM Package Manager (RPM) is a powerful package management system
Group: System/Management Group: System/Management
Vendor: openmamba Vendor: openmamba
@ -62,6 +62,7 @@ BuildRequires: liblzma-devel
BuildRequires: libmagic-devel BuildRequires: libmagic-devel
BuildRequires: libpopt-devel BuildRequires: libpopt-devel
BuildRequires: libpython3-devel BuildRequires: libpython3-devel
BuildRequires: libpython310-devel
BuildRequires: libreadline-devel BuildRequires: libreadline-devel
BuildRequires: libsqlite-devel BuildRequires: libsqlite-devel
BuildRequires: libz-devel BuildRequires: libz-devel
@ -116,6 +117,15 @@ Obsoletes: python-rpm4 < 1:4.16.1.2
The rpm-python package contains a module which permits applications written in the Python programming language to use the interface supplied by RPM (RPM Package Manager) libraries. The rpm-python package contains a module which permits applications written in the Python programming language to use the interface supplied by RPM (RPM Package Manager) libraries.
This package should be installed if you want to develop Python programs that will manipulate RPM packages and databases. This package should be installed if you want to develop Python programs that will manipulate RPM packages and databases.
%package -n python-rpm-py310
Summary: Python bindings for apps which will manipulate RPM packages
Group: Development/Libraries/Python
Requires: lib%{name} = %{?epoch:%epoch:}%{version}-%{release}
%description -n python-rpm-py310
The rpm-python package contains a module which permits applications written in the Python programming language to use the interface supplied by RPM (RPM Package Manager) libraries.
This package should be installed if you want to develop Python programs that will manipulate RPM packages and databases.
%debug_package %debug_package
%prep %prep
@ -157,7 +167,7 @@ This package should be installed if you want to develop Python programs that wil
--enable-python \ --enable-python \
--with-vendor=openmamba \ --with-vendor=openmamba \
--enable-bdb-ro \ --enable-bdb-ro \
PYTHON=%{__python3} PYTHON=%{__python310}
# --with-path-sources=%{__prefix}/src/RPM \ # --with-path-sources=%{__prefix}/src/RPM \
# --with-path-lib=%{_prefix}/lib/rpm%{?program_suffix} \ # --with-path-lib=%{_prefix}/lib/rpm%{?program_suffix} \
@ -166,10 +176,18 @@ This package should be installed if you want to develop Python programs that wil
%make %make
# Build for python3 legacy
cp -a python python3
sed -i "s|3.10|3.7|" python/Makefile python/_rpm.la
%make -C python3 clean
%make -C python3
%install %install
[ "%{buildroot}" != / ] && rm -rf "%{buildroot}" [ "%{buildroot}" != / ] && rm -rf "%{buildroot}"
%makeinstall %makeinstall
%makeinstall -C python3
%ifarch arm aarch64 %ifarch arm aarch64
# FIXME: man pages not installed maybe due to pandoc missing on arm and aarch64 # FIXME: man pages not installed maybe due to pandoc missing on arm and aarch64
%makeinstall -C docs/man %makeinstall -C docs/man
@ -302,7 +320,16 @@ rm -f %{buildroot}%{_libdir}/librpm*.la
%dir %{python3_sitearch}/rpm %dir %{python3_sitearch}/rpm
%{python3_sitearch}/rpm/* %{python3_sitearch}/rpm/*
%files -n python-rpm-py310
%defattr(-,root,root)
%{python310_sitearch}/rpm-%{version}-py*.egg-info
%dir %{python310_sitearch}/rpm
%{python310_sitearch}/rpm/*
%changelog %changelog
* Thu Mar 23 2023 Silvan Calarco <silvan.calarco@mambasoft.it> 4.18.1-2mamba
- rebuilt with python 3.10 subpackage
* Thu Mar 16 2023 Automatic Build System <autodist@mambasoft.it> 4.18.1-1mamba * Thu Mar 16 2023 Automatic Build System <autodist@mambasoft.it> 4.18.1-1mamba
- automatic version update by autodist - automatic version update by autodist