Have /usr/libexec symlink point from generic to specific version binaries

This commit is contained in:
Petr Viktorin 2017-08-14 15:37:28 +02:00
parent fcf2f93a53
commit 58a433d6ef

View File

@ -771,17 +771,12 @@ sed -i -e "s/'pyconfig.h'/'%{_pyconfig_h}'/" \
# Platform Python: Copy the executable to libexec
mkdir -p %{buildroot}%{_libexecdir}
cp %{buildroot}%{_bindir}/python%{pybasever} %{buildroot}%{_libexecdir}/platform-python
cp %{buildroot}%{_bindir}/python%{pybasever} %{buildroot}%{_libexecdir}/platform-python%{pybasever}
# Create symlinks of the platform-python binary
ln -s \
%{_libexecdir}/platform-python \
%{buildroot}%{_libexecdir}/platform-python3
ln -s \
%{_libexecdir}/platform-python3 \
%{buildroot}%{_libexecdir}/platform-python%{pybasever}
ln -s platform-python%{pybasever} %{buildroot}%{_libexecdir}/platform-python3
ln -s platform-python3 %{buildroot}%{_libexecdir}/platform-python
# Switch all shebangs to refer to the specific Python version.
LD_LIBRARY_PATH=./build/optimized ./build/optimized/python \