Provide platform-python macros and binary which replace the

system-python ones
This commit is contained in:
Charalampos Stratakis 2017-07-31 15:14:15 +02:00 committed by Petr Viktorin
parent 94f7e5a2fa
commit 71c29e993a
3 changed files with 9 additions and 9 deletions

4
macros.platformpython Normal file
View File

@ -0,0 +1,4 @@
%platform_python_abi %{expand: \
%global __requires_exclude ^python\\\\(abi\\\\) = 3\\\\..$
Requires: platform-python(abi) = %{python3_version}
}

View File

@ -1,4 +0,0 @@
%system_python_abi %{expand: \
%global __requires_exclude ^python\\\\(abi\\\\) = 3\\\\..$
Requires: system-python(abi) = %{python3_version}
}

View File

@ -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)