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
Epoch: 1
Version: 4.18.1
Release: 1mamba
Release: 2mamba
Summary: The RPM Package Manager (RPM) is a powerful package management system
Group: System/Management
Vendor: openmamba
@ -62,6 +62,7 @@ BuildRequires: liblzma-devel
BuildRequires: libmagic-devel
BuildRequires: libpopt-devel
BuildRequires: libpython3-devel
BuildRequires: libpython310-devel
BuildRequires: libreadline-devel
BuildRequires: libsqlite-devel
BuildRequires: libz-devel
@ -116,27 +117,36 @@ 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.
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
%prep
%setup -q -n rpm-%{version}
#-D -T
#:<< _EOF
%patch1 -p1
%patch2 -p1
%patch3 -p1
%patch4 -p1
%patch5 -p1
%patch6 -p1
%patch7 -p1
#%patch8 -p1
%patch9 -p1
%patch10 -p1
%patch11 -p1
%patch12 -p1
#%patch13 -p1
%patch14 -p1
%patch15 -p1
%patch 1 -p1
%patch 2 -p1
%patch 3 -p1
%patch 4 -p1
%patch 5 -p1
%patch 6 -p1
%patch 7 -p1
#%patch 8 -p1
%patch 9 -p1
%patch 10 -p1
%patch 11 -p1
%patch 12 -p1
#%patch 13 -p1
%patch 14 -p1
%patch 15 -p1
#sed -i "s|/usr/bin/python$|%{__python3}|" scripts/pythondistdeps.py
@ -157,7 +167,7 @@ This package should be installed if you want to develop Python programs that wil
--enable-python \
--with-vendor=openmamba \
--enable-bdb-ro \
PYTHON=%{__python3}
PYTHON=%{__python310}
# --with-path-sources=%{__prefix}/src/RPM \
# --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
# 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
[ "%{buildroot}" != / ] && rm -rf "%{buildroot}"
%makeinstall
%makeinstall -C python3
%ifarch arm aarch64
# FIXME: man pages not installed maybe due to pandoc missing on arm and aarch64
%makeinstall -C docs/man
@ -302,7 +320,16 @@ rm -f %{buildroot}%{_libdir}/librpm*.la
%dir %{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
* 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
- automatic version update by autodist