update to 3.7.9
install macros.pyver with custom pyver macros updated and to be moved from macros.python [release 3.7.9-1mamba;Fri Jan 01 2021]
This commit is contained in:
parent
14d612d123
commit
71acada59f
@ -23,5 +23,4 @@ find %1 -name '*.pyc' -name '*.pyo' -exec rm -f {} \\; \
|
|||||||
%py3_requires(d) \
|
%py3_requires(d) \
|
||||||
%define maxver %(%{__python3} -c "import sys; a,b=sys.version_info[:2]; print('%%d.%%d'%%(a,b+1))" 2>/dev/null || echo PYTHON-NOT-FOUND) \
|
%define maxver %(%{__python3} -c "import sys; a,b=sys.version_info[:2]; print('%%d.%%d'%%(a,b+1))" 2>/dev/null || echo PYTHON-NOT-FOUND) \
|
||||||
BuildRequires: python3, libpython3-devel \
|
BuildRequires: python3, libpython3-devel \
|
||||||
PreReq: python3 >= %{python3_version}, python3 < %{maxver}
|
Requires(pre): python3 >= %{python3_version}, python3 < %{maxver}
|
||||||
|
|
||||||
|
21
python-rpm-macros.pyver
Normal file
21
python-rpm-macros.pyver
Normal file
@ -0,0 +1,21 @@
|
|||||||
|
# macros to ease building of python versioned targets in openmamba
|
||||||
|
%pyver_package \
|
||||||
|
%define pyver %{with_pyver} \
|
||||||
|
%define pyappend py%{with_pyver} \
|
||||||
|
%define __python %(rpm --eval %{__python%{pyver}}) \
|
||||||
|
%define python_sitearch %(rpm --eval %{python%{with_pyver}_sitearch}) \
|
||||||
|
%define python_sitelib %(rpm --eval %{python%{with_pyver}_sitelib}) \
|
||||||
|
%define python_inc %(rpm --eval %{python%{with_pyver}_inc}) \
|
||||||
|
%define python_version %(rpm --eval %{python%{with_pyver}_version}) \
|
||||||
|
%define python_provides %(rpm --eval %{python%{with_pyver}_provides}) \
|
||||||
|
%define python_requires %(rpm --eval %{python%{with_pyver}_requires}) \
|
||||||
|
%define py_requires %(rpm --eval %{py%{with_pyver}_requires}) \
|
||||||
|
\
|
||||||
|
%package %{pyappend} \
|
||||||
|
Group: System/Libraries/Python \
|
||||||
|
Summary: %{summary} \
|
||||||
|
%py_requires \
|
||||||
|
%{?py_requires_append} \
|
||||||
|
\
|
||||||
|
%description %{pyappend} \
|
||||||
|
%{summary} \
|
13
python3.spec
13
python3.spec
@ -3,7 +3,7 @@
|
|||||||
%define libname libpython3
|
%define libname libpython3
|
||||||
%define __libdir %{_libdir}
|
%define __libdir %{_libdir}
|
||||||
Name: python3
|
Name: python3
|
||||||
Version: 3.7.8
|
Version: 3.7.9
|
||||||
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
|
||||||
@ -14,6 +14,7 @@ URL: http://www.python.org
|
|||||||
Source: http://www.python.org/ftp/python/%{version}/Python-%{version}.tar.xz
|
Source: http://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
|
||||||
Patch0: python-2.4.2-tex3-fix.patch
|
Patch0: python-2.4.2-tex3-fix.patch
|
||||||
Patch1: python-2.4.2-cgi.patch
|
Patch1: python-2.4.2-cgi.patch
|
||||||
Patch2: python-2.7.3-use_system_Sphinx.patch
|
Patch2: python-2.7.3-use_system_Sphinx.patch
|
||||||
@ -129,7 +130,7 @@ This package contains the tk library for Python.
|
|||||||
#%patch0 -p1
|
#%patch0 -p1
|
||||||
%patch1 -p1
|
%patch1 -p1
|
||||||
#%patch2 -p1
|
#%patch2 -p1
|
||||||
%ifarch x86_64
|
%ifarch x86_64 aarch64
|
||||||
%patch3 -p1
|
%patch3 -p1
|
||||||
%endif
|
%endif
|
||||||
|
|
||||||
@ -176,6 +177,7 @@ rm -f `find %{buildroot}%{_defaultdocdir}/%{name}-%{version}/html/.cvsignore`
|
|||||||
rm -f `find %{buildroot}%{_docdir}/%{name}-%{version}/html/.buildinfo`
|
rm -f `find %{buildroot}%{_docdir}/%{name}-%{version}/html/.buildinfo`
|
||||||
install -D -m0644 %{SOURCE1} %{buildroot}%{_sysconfdir}/rpm/macros.python3
|
install -D -m0644 %{SOURCE1} %{buildroot}%{_sysconfdir}/rpm/macros.python3
|
||||||
install -D -m0644 %{SOURCE2} %{buildroot}%{_prefix}/lib/rpm/pythondeps3.sh
|
install -D -m0644 %{SOURCE2} %{buildroot}%{_prefix}/lib/rpm/pythondeps3.sh
|
||||||
|
install -D -m0644 %{SOURCE3} %{buildroot}%{_sysconfdir}/rpm/macros.pyver
|
||||||
|
|
||||||
rm %{buildroot}%{_includedir}/python
|
rm %{buildroot}%{_includedir}/python
|
||||||
rm %{buildroot}%{_bindir}/2to3
|
rm %{buildroot}%{_bindir}/2to3
|
||||||
@ -228,7 +230,7 @@ fi
|
|||||||
%defattr(-,root,root)
|
%defattr(-,root,root)
|
||||||
%dir %{__libdir}/python%{majversion}
|
%dir %{__libdir}/python%{majversion}
|
||||||
%{__libdir}/python%{majversion}/*
|
%{__libdir}/python%{majversion}/*
|
||||||
%ifarch x86_64
|
%ifarch x86_64 aarch64
|
||||||
%dir %{_prefix}/lib/python%{majversion}
|
%dir %{_prefix}/lib/python%{majversion}
|
||||||
%{_prefix}/lib/python%{majversion}/*
|
%{_prefix}/lib/python%{majversion}/*
|
||||||
%endif
|
%endif
|
||||||
@ -242,6 +244,7 @@ fi
|
|||||||
|
|
||||||
%files -n %{libname}-devel
|
%files -n %{libname}-devel
|
||||||
%defattr(-,root,root)
|
%defattr(-,root,root)
|
||||||
|
%{_sysconfdir}/rpm/macros.pyver
|
||||||
%{_sysconfdir}/rpm/macros.python3
|
%{_sysconfdir}/rpm/macros.python3
|
||||||
%{_bindir}/python3-config
|
%{_bindir}/python3-config
|
||||||
%{_bindir}/python%{majversion}-config
|
%{_bindir}/python%{majversion}-config
|
||||||
@ -268,6 +271,10 @@ fi
|
|||||||
%endif
|
%endif
|
||||||
|
|
||||||
%changelog
|
%changelog
|
||||||
|
* Fri Jan 01 2021 Silvan Calarco <silvan.calarco@mambasoft.it> 3.7.9-1mamba
|
||||||
|
- update to 3.7.9
|
||||||
|
- install macros.pyver with custom pyver macros updated and to be moved from macros.python
|
||||||
|
|
||||||
* Sun Jul 05 2020 Silvan Calarco <silvan.calarco@mambasoft.it> 3.7.8-1mamba
|
* Sun Jul 05 2020 Silvan Calarco <silvan.calarco@mambasoft.it> 3.7.8-1mamba
|
||||||
- update to 3.7.8
|
- update to 3.7.8
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user