update to 2.7.16

add missing python_inc in macros.python [release 2.7.16-1mamba;Tue Jul 16 2019]
This commit is contained in:
Silvan Calarco 2024-01-05 16:58:20 +01:00
parent 189355e646
commit ff3bccc0b4
2 changed files with 29 additions and 23 deletions

View File

@ -13,6 +13,7 @@
# #
%python_sitearch %(%{__python} -c "from distutils.sysconfig import get_python_lib; print get_python_lib(1)") %python_sitearch %(%{__python} -c "from distutils.sysconfig import get_python_lib; print get_python_lib(1)")
%python_sitelib %(%{__python} -c "from distutils.sysconfig import get_python_lib; print get_python_lib()") %python_sitelib %(%{__python} -c "from distutils.sysconfig import get_python_lib; print get_python_lib()")
%python_inc %(%{__python} -c "from distutils.sysconfig import get_python_inc; print(get_python_inc())")
%python_version %(%{__python} -c "import sys; print(sys.version[0:3])") %python_version %(%{__python} -c "import sys; print(sys.version[0:3])")
%py_compile(O) \ %py_compile(O) \

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.15 Version: 2.7.16
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
@ -226,21 +226,22 @@ 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
@ -349,16 +350,20 @@ exit 0
#%{__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
* Tue Jul 16 2019 Silvan Calarco <silvan.calarco@mambasoft.it> 2.7.16-1mamba
- update to 2.7.16
- add missing python_inc in macros.python
* Thu Sep 06 2018 Silvan Calarco <silvan.calarco@mambasoft.it> 2.7.15-1mamba * Thu Sep 06 2018 Silvan Calarco <silvan.calarco@mambasoft.it> 2.7.15-1mamba
- update to 2.7.15 - update to 2.7.15