update to 2.7.18 [release 2.7.18-1mamba;Fri Nov 27 2020]

This commit is contained in:
Silvan Calarco 2024-01-05 16:58:20 +01:00
parent ff3bccc0b4
commit d21f4d3f1b

View File

@ -6,7 +6,7 @@
#% define __libdir %{_prefix}/lib #% define __libdir %{_prefix}/lib
%define __libdir %{_libdir} %define __libdir %{_libdir}
Name: python27 Name: python27
Version: 2.7.16 Version: 2.7.18
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
@ -30,9 +30,9 @@ License: GPL
## AUTOBUILDREQ-BEGIN ## AUTOBUILDREQ-BEGIN
BuildRequires: glibc-devel BuildRequires: glibc-devel
BuildRequires: libbzip2-devel BuildRequires: libbzip2-devel
BuildRequires: libdb47-devel BuildRequires: libdb53-devel
BuildRequires: libgdbm-devel BuildRequires: libgdbm-devel
BuildRequires: libncurses-devel >= 5.4 BuildRequires: libncurses-devel
BuildRequires: libopenssl-devel BuildRequires: libopenssl-devel
BuildRequires: libreadline-devel BuildRequires: libreadline-devel
BuildRequires: libsqlite-devel BuildRequires: libsqlite-devel
@ -43,14 +43,14 @@ BuildRequires: libX11-devel
%endif %endif
BuildRequires: libz-devel BuildRequires: libz-devel
## AUTOBUILDREQ-END ## AUTOBUILDREQ-END
%if "%{stage1}" != "1" #%if "%{stage1}" != "1"
BuildRequires: latex2html >= 2002 BuildRequires: latex2html >= 2002
BuildRequires: tetex >= 3.0 BuildRequires: tetex >= 3.0
BuildRequires: libtk >= 8.4.11 BuildRequires: libtk >= 8.4.11
BuildRequires: libbluez-devel >= 2.21 BuildRequires: libbluez-devel >= 2.21
BuildRequires: python-Sphinx BuildRequires: python-Sphinx
BuildRequires: python-Jinja2 BuildRequires: python-Jinja2
%endif #%endif
Requires: %{libname} = %{?epoch:epoch:}%{version}-%{release} Requires: %{libname} = %{?epoch:epoch:}%{version}-%{release}
Provides: python-abi = %{majversion} Provides: python-abi = %{majversion}
Provides: python(abi) = %{majversion} Provides: python(abi) = %{majversion}
@ -148,8 +148,12 @@ The Python implementation is portable: it runs on many brands of UNIX, on Window
This package contains the tk library for Python. This package contains the tk library for Python.
%debug_package
%prep %prep
%setup -q -n Python-%{version} %setup -q -n Python-%{version}
#-D -T
#:<< _EOF
%patch1 -p1 %patch1 -p1
%patch2 -p1 %patch2 -p1
@ -158,7 +162,7 @@ This package contains the tk library for Python.
%endif %endif
#%patch7 -p1 #%patch7 -p1
#%patch8 -p1 #%patch8 -p1
%ifarch x86_64 %ifarch x86_64 aarch64
%patch9 -p1 %patch9 -p1
%endif %endif
@ -169,8 +173,10 @@ TMPFILE=`mktemp --tmpdir=/dev/shm`
} }
rm -f $TMPFILE rm -f $TMPFILE
%build
autoreconf autoreconf
%build
#:<< _EOF
#%if "%{_host}" != "%{_build}" #%if "%{_host}" != "%{_build}"
# #
#%configure --disable-shared #%configure --disable-shared
@ -204,7 +210,7 @@ autoreconf
# create DLFCN.py # create DLFCN.py
cd Tools/scripts cd Tools/scripts
./h2py.py %{_includedir}/dlfcn.h python2 ./h2py.py %{_includedir}/dlfcn.h
cd ../.. cd ../..
%install %install
@ -226,21 +232,21 @@ ln -s python%{majversion} %{buildroot}%{_includedir}/python
# fix library permission # fix library permission
chmod 755 %{buildroot}%{__libdir}/libpython%{majversion}.so.* chmod 755 %{buildroot}%{__libdir}/libpython%{majversion}.so.*
#% if "%{stage1}" != "1" %if "%{stage1}" != "1"
## build the HTML documentation # build the HTML documentation
#cd Doc cd Doc
#
####sed -i s@/usr/bin/env@/bin/env@ tools/mkhowto ###sed -i s@/usr/bin/env@/bin/env@ tools/mkhowto
#PATH=$PATH:%{_builddir}/Python-%{version}/Doc/tools PATH=$PATH:%{_builddir}/Python-%{version}/Doc/tools
#make html make html
#
#install -d %{buildroot}%{_defaultdocdir}/%{name}-%{version} install -d %{buildroot}%{_defaultdocdir}/%{name}-%{version}
#cp -R build/html build/doctrees %{buildroot}%{_defaultdocdir}/%{name}-%{version} cp -R build/html build/doctrees %{buildroot}%{_defaultdocdir}/%{name}-%{version}
#rm -f 'find %{buildroot}%{_defaultdocdir}/%{name}-%{version}/html/.cvsignore' rm -f 'find %{buildroot}%{_defaultdocdir}/%{name}-%{version}/html/.cvsignore'
#
#cd .. cd ..
#make PAPER=a4 pdf #make PAPER=a4 pdf
#% endif %endif
install -D -m0644 %{SOURCE1} %{buildroot}%{_sysconfdir}/rpm/macros.python%{majversion} install -D -m0644 %{SOURCE1} %{buildroot}%{_sysconfdir}/rpm/macros.python%{majversion}
install -D -m0644 %{SOURCE2} %{buildroot}%{_sysconfdir}/rpm/macros.python install -D -m0644 %{SOURCE2} %{buildroot}%{_sysconfdir}/rpm/macros.python
@ -262,7 +268,7 @@ ln -s idle %{buildroot}%{_bindir}/idle%{majversion}
ln -s pydoc %{buildroot}%{_bindir}/pydoc%{majversion} ln -s pydoc %{buildroot}%{_bindir}/pydoc%{majversion}
ln -s smtpd.py %{buildroot}%{_bindir}/smtpd%{majversion}.py ln -s smtpd.py %{buildroot}%{_bindir}/smtpd%{majversion}.py
%ifarch x86_64 %ifarch x86_64 aarch64
# FIXME: workaround # FIXME: workaround
install -d -m0755 %{buildroot}%{_prefix}/lib/python%{majversion} install -d -m0755 %{buildroot}%{_prefix}/lib/python%{majversion}
ln -sf ../../lib64/python%{majversion}/config %{buildroot}%{_prefix}/lib/python%{majversion}/config ln -sf ../../lib64/python%{majversion}/config %{buildroot}%{_prefix}/lib/python%{majversion}/config
@ -287,7 +293,7 @@ exit 0
/usr/sbin/update-alternatives --install %{_bindir}/python python %{_bindir}/python%{majversion} 75 /usr/sbin/update-alternatives --install %{_bindir}/python python %{_bindir}/python%{majversion} 75
exit 0 exit 0
%ifarch x86_64 %ifarch x86_64 aarch64
%pre -n %{libname} %pre -n %{libname}
[ -d %{_prefix}/lib/python%{majversion}/config ] && [ -d %{_prefix}/lib/python%{majversion}/config ] &&
mv %{_prefix}/lib/python%{majversion}/config %{_prefix}/lib/python%{majversion}/config.old.`date +%s` mv %{_prefix}/lib/python%{majversion}/config %{_prefix}/lib/python%{majversion}/config.old.`date +%s`
@ -310,7 +316,7 @@ exit 0
%{_bindir}/smtpd%{majversion}.py %{_bindir}/smtpd%{majversion}.py
%dir %{_includedir}/python%{majversion} %dir %{_includedir}/python%{majversion}
%{_includedir}/python%{majversion}/pyconfig.h %{_includedir}/python%{majversion}/pyconfig.h
%ifarch x86_64 %ifarch x86_64 aarch64
%{_prefix}/lib/python%{majversion}/config %{_prefix}/lib/python%{majversion}/config
%endif %endif
%dir %{__libdir}/python%{majversion}/config %dir %{__libdir}/python%{majversion}/config
@ -325,7 +331,7 @@ exit 0
%{_libdir}/libpython%{majversion}.so.* %{_libdir}/libpython%{majversion}.so.*
%{_libdir}/libpython%{majversion}.so %{_libdir}/libpython%{majversion}.so
%if "%{stage1}" != "1" %if "%{stage1}" != "1"
#%exclude %{__libdir}/python%{majversion}/lib-tk %exclude %{__libdir}/python%{majversion}/lib-tk
%exclude %{__libdir}/python%{majversion}/lib-dynload/_tkinter.so %exclude %{__libdir}/python%{majversion}/lib-dynload/_tkinter.so
%endif %endif
@ -347,19 +353,22 @@ exit 0
%if "%{stage1}" != "1" %if "%{stage1}" != "1"
%files tk %files tk
%defattr(-,root,root) %defattr(-,root,root)
#%{__libdir}/python%{majversion}/lib-tk %{__libdir}/python%{majversion}/lib-tk
%{__libdir}/python%{majversion}/lib-dynload/_tkinter.so %{__libdir}/python%{majversion}/lib-dynload/_tkinter.so
#%files doc %files doc
#%defattr(-,root,root) %defattr(-,root,root)
#%dir %{_defaultdocdir}/%{name}-%{version}/html/ %dir %{_defaultdocdir}/%{name}-%{version}/html/
#%{_defaultdocdir}/%{name}-%{version}/html/* %{_defaultdocdir}/%{name}-%{version}/html/*
#%{_defaultdocdir}/%{name}-%{version}/html/.buildinfo %{_defaultdocdir}/%{name}-%{version}/html/.buildinfo
#%dir %{_defaultdocdir}/%{name}-%{version}/doctrees %dir %{_defaultdocdir}/%{name}-%{version}/doctrees
#%{_defaultdocdir}/%{name}-%{version}/doctrees/* %{_defaultdocdir}/%{name}-%{version}/doctrees/*
#%endif %endif
%changelog %changelog
* Fri Nov 27 2020 Silvan Calarco <silvan.calarco@mambasoft.it> 2.7.18-1mamba
- update to 2.7.18
* Tue Jul 16 2019 Silvan Calarco <silvan.calarco@mambasoft.it> 2.7.16-1mamba * Tue Jul 16 2019 Silvan Calarco <silvan.calarco@mambasoft.it> 2.7.16-1mamba
- update to 2.7.16 - update to 2.7.16
- add missing python_inc in macros.python - add missing python_inc in macros.python
@ -369,7 +378,7 @@ exit 0
* Sat May 16 2015 Silvan Calarco <silvan.calarco@mambasoft.it> 2.7.9-1mamba * Sat May 16 2015 Silvan Calarco <silvan.calarco@mambasoft.it> 2.7.9-1mamba
- update to 2.7.9 - update to 2.7.9
- macros.python: added %pyver_package macro - macros.python: added pyver_package macro
* Sun Nov 23 2014 Silvan Calarco <silvan.calarco@mambasoft.it> 2.7.8-1mamba * Sun Nov 23 2014 Silvan Calarco <silvan.calarco@mambasoft.it> 2.7.8-1mamba
- update to 2.7.8 - update to 2.7.8
@ -444,10 +453,10 @@ exit 0
* Thu Oct 02 2008 gil <puntogil@libero.it> 2.6-1mamba * Thu Oct 02 2008 gil <puntogil@libero.it> 2.6-1mamba
- update to 2.6 - update to 2.6
* Wed Jun 28 2008 Ercole 'ercolinux' Carpanetto <ercole69@gmail.com> 2.5.2-1mamba * Sat Jun 28 2008 Ercole 'ercolinux' Carpanetto <ercole69@gmail.com> 2.5.2-1mamba
- update to 2.5.2. - update to 2.5.2.
* Sat Jun 25 2008 Ercole 'ercolinux' Carpanetto <ercole69@gmail.com> 2.4.4-1mamba * Wed Jun 25 2008 Ercole 'ercolinux' Carpanetto <ercole69@gmail.com> 2.4.4-1mamba
- renamed to legacy python24 - changed doc to pdf due to a problem with latex2html - renamed to legacy python24 - changed doc to pdf due to a problem with latex2html
* Fri Mar 30 2007 Silvan Calarco <silvan.calarco@mambasoft.it> 2.4.4-1mamba * Fri Mar 30 2007 Silvan Calarco <silvan.calarco@mambasoft.it> 2.4.4-1mamba
@ -487,7 +496,7 @@ exit 0
- new version rebuild (bugfix release) - new version rebuild (bugfix release)
- added the doc package with the Python documentation in HTML format - added the doc package with the Python documentation in HTML format
* Tue Dec 24 2003 Silvan Calarco <silvan.calarco@mambasoft.it> 2.3.3-2qilnx * Wed Dec 24 2003 Silvan Calarco <silvan.calarco@mambasoft.it> 2.3.3-2qilnx
- renamed lib and includes destdir to /usr/include/python - renamed lib and includes destdir to /usr/include/python
* Tue Dec 23 2003 Davide Madrisan <davide.madrisan@qilinux.it> 2.3.3-1qilnx * Tue Dec 23 2003 Davide Madrisan <davide.madrisan@qilinux.it> 2.3.3-1qilnx