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