Provide platform-python macros and binary which replace the
system-python ones
This commit is contained in:
parent
94f7e5a2fa
commit
71c29e993a
4
macros.platformpython
Normal file
4
macros.platformpython
Normal file
@ -0,0 +1,4 @@
|
||||
%platform_python_abi %{expand: \
|
||||
%global __requires_exclude ^python\\\\(abi\\\\) = 3\\\\..$
|
||||
Requires: platform-python(abi) = %{python3_version}
|
||||
}
|
@ -1,4 +0,0 @@
|
||||
%system_python_abi %{expand: \
|
||||
%global __requires_exclude ^python\\\\(abi\\\\) = 3\\\\..$
|
||||
Requires: system-python(abi) = %{python3_version}
|
||||
}
|
@ -226,8 +226,8 @@ Source7: pyfuntop.stp
|
||||
# Written by bkabrda
|
||||
Source8: check-pyc-and-pyo-timestamps.py
|
||||
|
||||
# A simple macro that enables packages to require system-python(abi) instead of python(abi)
|
||||
Source9: macros.systempython
|
||||
# A simple macro that enables packages to require platform-python(abi) instead of python(abi)
|
||||
Source9: macros.platformpython
|
||||
|
||||
# Desktop menu entry for idle3
|
||||
Source10: idle3.desktop
|
||||
@ -1143,9 +1143,9 @@ echo '[ $? -eq 127 ] && echo "Could not find python%{LDVERSION_debug}-`uname -m`
|
||||
chmod +x %{buildroot}%{_bindir}/python%{LDVERSION_debug}-config
|
||||
%endif # with_debug_build
|
||||
|
||||
# System Python: Copy the executable to libexec
|
||||
# Platform Python: Copy the executable to libexec
|
||||
mkdir -p %{buildroot}%{_libexecdir}
|
||||
cp %{buildroot}%{_bindir}/python%{pybasever} %{buildroot}%{_libexecdir}/system-python
|
||||
cp %{buildroot}%{_bindir}/python%{pybasever} %{buildroot}%{_libexecdir}/platform-python
|
||||
|
||||
|
||||
# ======================================================
|
||||
@ -1509,7 +1509,7 @@ fi
|
||||
%{_libdir}/pkgconfig/python-%{pybasever}.pc
|
||||
%{_libdir}/pkgconfig/python3.pc
|
||||
%{_rpmconfigdir}/macros.d/macros.pybytecompile%{pybasever}
|
||||
%{_rpmconfigdir}/macros.d/macros.systempython
|
||||
%{_rpmconfigdir}/macros.d/macros.platformpython
|
||||
|
||||
%files tools
|
||||
%defattr(-,root,root,755)
|
||||
|
Loading…
Reference in New Issue
Block a user