forked from pool/audacity
Accepting request 828432 from home: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 OBS-URL: https://build.opensuse.org/request/show/828432 OBS-URL: https://build.opensuse.org/package/show/multimedia:apps/audacity?expand=0&rev=152
This commit is contained in:
parent
b059f141d1
commit
66189dbbfc
@ -1,3 +1,10 @@
|
||||
-------------------------------------------------------------------
|
||||
Thu Aug 20 13:28:49 UTC 2020 - Dave Plater <davejplater@gmail.com>
|
||||
|
||||
- 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 <marec@detebe.org>
|
||||
|
||||
|
@ -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)
|
||||
|
Loading…
Reference in New Issue
Block a user