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