update to 3.7.12 [release 3.7.12-1mamba;Sun Dec 26 2021]

This commit is contained in:
Silvan Calarco 2024-01-05 16:58:30 +01:00
parent 9fa6099090
commit 4788524181

View File

@ -1,17 +1,15 @@
# majversion define needed when upgrading from 2.x to 2.(x+1) releases
%define majversion %(echo %version | cut -d. -f 1-2) %define majversion %(echo %version | cut -d. -f 1-2)
%define libname libpython3 %define libname libpython3
%define __libdir %{_libdir}
Name: python3 Name: python3
Version: 3.7.10 Version: 3.7.12
Release: 1mamba Release: 1mamba
Summary: An interpreted, interactive, object-oriented programming language Summary: An interpreted, interactive, object-oriented programming language
Group: Applications/Development Group: Applications/Development
Vendor: openmamba Vendor: openmamba
Distribution: openmamba Distribution: openmamba
Packager: Silvan Calarco <silvan.calarco@mambasoft.it> Packager: Silvan Calarco <silvan.calarco@mambasoft.it>
URL: http://www.python.org URL: https://www.python.org/
Source: http://www.python.org/ftp/python/%{version}/Python-%{version}.tar.xz Source: https://www.python.org/ftp/python/%{version}/Python-%{version}.tar.xz
Source1: python-3.2-macros.python Source1: python-3.2-macros.python
Source2: pythondeps3.sh Source2: pythondeps3.sh
Source3: python-rpm-macros.pyver Source3: python-rpm-macros.pyver
@ -22,10 +20,8 @@ Patch3: python3-3.7.4-lib64.patch
License: GPL License: GPL
## AUTOBUILDREQ-BEGIN ## AUTOBUILDREQ-BEGIN
BuildRequires: glibc-devel BuildRequires: glibc-devel
BuildRequires: ldconfig
BuildRequires: libX11-devel BuildRequires: libX11-devel
BuildRequires: libbzip2-devel BuildRequires: libbzip2-devel
BuildRequires: libdb53-devel
BuildRequires: libexpat-devel BuildRequires: libexpat-devel
BuildRequires: libffi-devel BuildRequires: libffi-devel
BuildRequires: libgdbm-devel BuildRequires: libgdbm-devel
@ -137,7 +133,6 @@ This package contains the tk library for Python.
%build %build
#:<< _EOF #:<< _EOF
%configure \ %configure \
--libdir=%{__libdir} \
--enable-ipv6 \ --enable-ipv6 \
--enable-shared \ --enable-shared \
--with-system-ffi \ --with-system-ffi \
@ -152,13 +147,13 @@ This package contains the tk library for Python.
[ "%{buildroot}" != / ] && rm -rf "%{buildroot}" [ "%{buildroot}" != / ] && rm -rf "%{buildroot}"
%makeinstall %makeinstall
#install -d %{buildroot}%{__libdir}/python/site-packages #install -d %{buildroot}%{_libdir}/python/site-packages
#ln -s python%{majversion} %{buildroot}%{__libdir}/python #ln -s python%{majversion} %{buildroot}%{_libdir}/python
ln -s python%{majversion}m %{buildroot}%{_includedir}/python ln -s python%{majversion}m %{buildroot}%{_includedir}/python
ln -s libpython%{majversion}m.so %{buildroot}%{__libdir}/libpython%{majversion}.so ln -s libpython%{majversion}m.so %{buildroot}%{_libdir}/libpython%{majversion}.so
# fix library permission # fix library permission
chmod 755 %{buildroot}%{__libdir}/libpython%{majversion}m.so.* chmod 755 %{buildroot}%{_libdir}/libpython%{majversion}m.so.*
%if "%{?bootstrap}" != "1" %if "%{?bootstrap}" != "1"
# build the HTML documentation # build the HTML documentation
@ -214,13 +209,13 @@ fi
%post -n %{libname} -p /sbin/ldconfig %post -n %{libname} -p /sbin/ldconfig
%postun -n %{libname} -p /sbin/ldconfig %postun -n %{libname} -p /sbin/ldconfig
%transfiletriggerpostun -P 2000000 -- %{__libdir}/python%{majversion}/site-packages %transfiletriggerpostun -P 2000000 -- %{_libdir}/python%{majversion}/site-packages
find %{__libdir}/python%{majversion}/site-packages/*.egg-info -type d -empty -exec rmdir {} \; find %{_libdir}/python%{majversion}/site-packages/*.egg-info -type d -empty -exec rmdir {} \;
: :
%ifarch x86_64 aarch64 %ifarch x86_64 aarch64
%transfiletriggerpostun -P 2000000 -- %{_prefix}/lib/python%{majversion}/site-packages %transfiletriggerpostun -P 2000000 -- %{_prefix}/lib/python%{majversion}/site-packages
find %{__libdir}/python%{majversion}/site-packages/*.egg-info -type d -empty -exec rmdir {} \; find %{_prefix}/lib/python%{majversion}/site-packages/*.egg-info -type d -empty -exec rmdir {} \;
: :
%endif %endif
@ -239,8 +234,8 @@ find %{__libdir}/python%{majversion}/site-packages/*.egg-info -type d -empty -ex
%files -n %{libname} %files -n %{libname}
%defattr(-,root,root) %defattr(-,root,root)
%dir %{__libdir}/python%{majversion} %dir %{_libdir}/python%{majversion}
%{__libdir}/python%{majversion}/* %{_libdir}/python%{majversion}/*
%ifarch x86_64 aarch64 %ifarch x86_64 aarch64
%dir %{_prefix}/lib/python%{majversion} %dir %{_prefix}/lib/python%{majversion}
%{_prefix}/lib/python%{majversion}/* %{_prefix}/lib/python%{majversion}/*
@ -250,7 +245,7 @@ find %{__libdir}/python%{majversion}/site-packages/*.egg-info -type d -empty -ex
%{_libdir}/libpython%{majversion}m.so %{_libdir}/libpython%{majversion}m.so
%{_libdir}/libpython%{majversion}m.so.* %{_libdir}/libpython%{majversion}m.so.*
%if "%{?bootstrap}" != "1" %if "%{?bootstrap}" != "1"
%exclude %{__libdir}/python%{majversion}/lib-dynload/_tkinter*.so %exclude %{_libdir}/python%{majversion}/lib-dynload/_tkinter*.so
%endif %endif
%files -n %{libname}-devel %files -n %{libname}-devel
@ -271,7 +266,7 @@ find %{__libdir}/python%{majversion}/site-packages/*.egg-info -type d -empty -ex
%if "%{?bootstrap}" != "1" %if "%{?bootstrap}" != "1"
%files tk %files tk
%defattr(-,root,root) %defattr(-,root,root)
%{__libdir}/python%{majversion}/lib-dynload/_tkinter*.so %{_libdir}/python%{majversion}/lib-dynload/_tkinter*.so
#%files doc #%files doc
#%defattr(-,root,root) #%defattr(-,root,root)
@ -282,6 +277,9 @@ find %{__libdir}/python%{majversion}/site-packages/*.egg-info -type d -empty -ex
%endif %endif
%changelog %changelog
* Sun Dec 26 2021 Silvan Calarco <silvan.calarco@mambasoft.it> 3.7.12-1mamba
- update to 3.7.12
* Tue Mar 09 2021 Silvan Calarco <silvan.calarco@mambasoft.it> 3.7.10-1mamba * Tue Mar 09 2021 Silvan Calarco <silvan.calarco@mambasoft.it> 3.7.10-1mamba
- update to 3.7.10 - update to 3.7.10
- added posttransfiletrigger's to cleanup empty *.egg-info directories - added posttransfiletrigger's to cleanup empty *.egg-info directories