use posttrans to ensure that old shared libs are gone before trying to make symlinks

epel8
Tom Callaway 7 years ago
parent b7162c3694
commit d2fc3a146d

@ -115,7 +115,7 @@ BuildRequires: libicu-devel >= 5.4
Name: chromium%{chromium_channel} Name: chromium%{chromium_channel}
Version: %{majorversion}.0.3071.115 Version: %{majorversion}.0.3071.115
Release: 2%{?dist} Release: 3%{?dist}
Summary: A WebKit (Blink) powered web browser Summary: A WebKit (Blink) powered web browser
Url: http://www.chromium.org/Home Url: http://www.chromium.org/Home
License: BSD and LGPLv2+ and ASL 2.0 and IJG and MIT and GPLv2+ and ISC and OpenSSL and (MPLv1.1 or GPLv2 or LGPLv2) License: BSD and LGPLv2+ and ASL 2.0 and IJG and MIT and GPLv2+ and ISC and OpenSSL and (MPLv1.1 or GPLv2 or LGPLv2)
@ -1534,7 +1534,7 @@ if st and st.type == "link" then
os.remove(path) os.remove(path)
end end
%post libs %posttrans libs
%{_sbindir}/update-alternatives --install \ %{_sbindir}/update-alternatives --install \
%{_libdir}/chromium-browser/libwidevinecdm.so libwidevinecdm.so \ %{_libdir}/chromium-browser/libwidevinecdm.so libwidevinecdm.so \
%{_libdir}/chromium-browser/libwidevinecdm.so.fedora 10 %{_libdir}/chromium-browser/libwidevinecdm.so.fedora 10
@ -1546,7 +1546,7 @@ if [ $1 = 0 ]; then
fi fi
%if %{freeworld} %if %{freeworld}
%post libs-media-freeworld %posttrans libs-media-freeworld
%{_sbindir}/update-alternatives --install \ %{_sbindir}/update-alternatives --install \
%{_libdir}/chromium-browser/libffmpeg.so libffmpeg.so \ %{_libdir}/chromium-browser/libffmpeg.so libffmpeg.so \
%{_libdir}/chromium-browser/libffmpeg.so.freeworld 5 \ %{_libdir}/chromium-browser/libffmpeg.so.freeworld 5 \
@ -1563,7 +1563,7 @@ if [ $1 = 0 ]; then
%{_libdir}/chromium-browser/libffmpeg.so.freeworld %{_libdir}/chromium-browser/libffmpeg.so.freeworld
fi fi
%else %else
%post libs-media %posttrans libs-media
%{_sbindir}/update-alternatives --install \ %{_sbindir}/update-alternatives --install \
%{_libdir}/chromium-browser/libffmpeg.so libffmpeg.so \ %{_libdir}/chromium-browser/libffmpeg.so libffmpeg.so \
%{_libdir}/chromium-browser/libffmpeg.so.fedora 10 \ %{_libdir}/chromium-browser/libffmpeg.so.fedora 10 \
@ -1740,6 +1740,9 @@ getent group chrome-remote-desktop >/dev/null || groupadd -r chrome-remote-deskt
%changelog %changelog
* Fri Jul 21 2017 Tom Callaway <spot@fedoraproject.org> 59.0.3071.115-3
- use posttrans to ensure that old libs are gone before trying to make alternative symlinks
* Thu Jul 13 2017 Tom Callaway <spot@fedoraproject.org> 59.0.3071.115-2 * Thu Jul 13 2017 Tom Callaway <spot@fedoraproject.org> 59.0.3071.115-2
- fix scriptlets - fix scriptlets

Loading…
Cancel
Save