diff --git a/audacity.changes b/audacity.changes index f60bac8..b4fdedd 100644 --- a/audacity.changes +++ b/audacity.changes @@ -1,3 +1,10 @@ +------------------------------------------------------------------- +Thu Aug 20 13:28:49 UTC 2020 - Dave Plater + +- Create symlink for libavformat, audacity looks for the major + version only and this no longer exists in openSUSE after + ffmpeg-4.3.1. See boo#1175205 + ------------------------------------------------------------------- Sun Jul 5 13:07:34 UTC 2020 - Markus Reckwerth diff --git a/audacity.spec b/audacity.spec index 4e43119..61fe748 100644 --- a/audacity.spec +++ b/audacity.spec @@ -16,6 +16,10 @@ # +%define avfmtmaj %(pkg-config --modversion libavformat|cut -d . -f 1) +%define avfmtvers %(pkg-config --modversion libavformat) +%define avfmtversion %(pkg-config --modversion libavformat|tr -d .) + Name: audacity Version: 2.4.2 Release: 0 @@ -146,12 +150,24 @@ mv -f %{buildroot}%{_datadir}/pixmaps/gnome-mime-application-x-audacity-project. rm -rf %{buildroot}%{_datadir}/pixmaps/ rm -rf %{buildroot}%{_datadir}/doc cp -v lib-src/portmixer/LICENSE.txt portmixer.LICENSE.txt + +# Audacity looks for the major version of libavformat but the symlink no longer exists +# in openSUSE after version 58.45.100 +%if %{avfmtversion} >= 5845100 +pushd %{buildroot}%{_libdir} +ln -s %{_libdir}/libavformat.so.%{avfmtvers} libavformat.so.%{avfmtmaj} +popd +%endif + %find_lang %{name} %files plugins %license LICENSE.txt %dir %{_libdir}/%{name} %{_libdir}/%{name}/suil*.so +%if %{avfmtversion} >= 5845100 +%{_libdir}/libavformat.so.%{avfmtmaj} +%endif %files %defattr(-,root,root)