From f37992289b36f9a40b0183372cde1b73c5749df07e810ca20e39c1059465b434 Mon Sep 17 00:00:00 2001 From: Jan Engelhardt Date: Mon, 13 Mar 2023 11:54:46 +0000 Subject: [PATCH] - Add soname.diff to get libswresample4 nonconflicting with ffmpeg-6. OBS-URL: https://build.opensuse.org/package/show/multimedia:libs/ffmpeg-5?expand=0&rev=60 --- baselibs.conf | 2 +- ffmpeg-5.changes | 5 +++++ ffmpeg-5.spec | 22 ++++++++++++---------- soname.diff | 23 +++++++++++++++++++++++ 4 files changed, 41 insertions(+), 11 deletions(-) create mode 100644 soname.diff diff --git a/baselibs.conf b/baselibs.conf index a152bda..eedf933 100644 --- a/baselibs.conf +++ b/baselibs.conf @@ -4,5 +4,5 @@ libavfilter8 libavformat59 libavutil57 libpostproc56 -libswresample4 +libswresample4_ff5 libswscale6 diff --git a/ffmpeg-5.changes b/ffmpeg-5.changes index 2a2d594..aceca96 100644 --- a/ffmpeg-5.changes +++ b/ffmpeg-5.changes @@ -1,3 +1,8 @@ +------------------------------------------------------------------- +Mon Mar 13 11:54:15 UTC 2023 - Jan Engelhardt + +- Add soname.diff to get libswresample4 nonconflicting with ffmpeg-6. + ------------------------------------------------------------------- Thu Mar 9 09:48:42 UTC 2023 - Jan Engelhardt diff --git a/ffmpeg-5.spec b/ffmpeg-5.spec index 9c21402..09634a7 100644 --- a/ffmpeg-5.spec +++ b/ffmpeg-5.spec @@ -109,6 +109,7 @@ Patch10: ffmpeg-chromium.patch Patch11: ffmpeg-CVE-2022-3964.patch Patch91: ffmpeg-dlopen-openh264.patch Patch92: no-vk-video-decoding.patch +Patch93: soname.diff %if %{with amf_sdk} BuildRequires: AMF-devel @@ -238,7 +239,7 @@ Requires: libavfilter8 = %version-%release Requires: libavformat59 = %version-%release Requires: libavutil57 = %version-%release Requires: libpostproc56 = %version-%release -Requires: libswresample4 = %version-%release +Requires: libswresample4_ff5 = %version-%release Requires: libswscale6 = %version-%release %description @@ -254,7 +255,7 @@ This build of ffmpeg is limited in the number of codecs supported. Summary: FFmpeg codec library Group: System/Libraries Requires: libavutil57 = %version-%release -Requires: libswresample4 = %version-%release +Requires: libswresample4_ff5 = %version-%release %if 0%{?BUILD_ORIG} Provides: libavcodec-full = %version-%release # This can be (and is) required by packages like vlc-codecs - @@ -337,7 +338,7 @@ Requires: libavcodec59 = %version-%release Requires: libavformat59 = %version-%release Requires: libavutil57 = %version-%release Requires: libpostproc56 = %version-%release -Requires: libswresample4 = %version-%release +Requires: libswresample4_ff5 = %version-%release Requires: libswscale6 = %version-%release %description -n libavfilter8 @@ -457,12 +458,12 @@ correction, linear/cubic interpolating deinterlacing. This subpackage contains the headers for FFmpeg libpostproc. -%package -n libswresample4 +%package -n libswresample4_ff5 Summary: FFmpeg software resampling library Group: System/Libraries Requires: libavutil57 = %version-%release -%description -n libswresample4 +%description -n libswresample4_ff5 The libswresample library performs audio conversion between different sample rates, channel layout and channel formats. @@ -472,7 +473,7 @@ Group: Development/Libraries/C and C++ Provides: libswresample-devel = %version-%release Obsoletes: libswresample-devel < %version-%release Requires: %name-libavutil-devel = %version-%release -Requires: libswresample4 = %version-%release +Requires: libswresample4_ff5 = %version-%release %devel_conflicts -c < -v %_major_version %devel_conflicts -c >= -v %_major_expected @@ -721,8 +722,8 @@ done %postun -n libavutil57 -p /sbin/ldconfig %post -n libpostproc56 -p /sbin/ldconfig %postun -n libpostproc56 -p /sbin/ldconfig -%post -n libswresample4 -p /sbin/ldconfig -%postun -n libswresample4 -p /sbin/ldconfig +%post -n libswresample4_ff5 -p /sbin/ldconfig +%postun -n libswresample4_ff5 -p /sbin/ldconfig %post -n libswscale6 -p /sbin/ldconfig %postun -n libswscale6 -p /sbin/ldconfig @@ -756,7 +757,7 @@ done %license COPYING.GPLv2 LICENSE.md %_libdir/libpostproc.so.* -%files -n libswresample4 +%files -n libswresample4_ff5 %license COPYING.GPLv2 LICENSE.md %_libdir/libswresample.so.* @@ -847,6 +848,7 @@ Patch10: ffmpeg-chromium.patch Patch11: ffmpeg-CVE-2022-3964.patch Patch91: ffmpeg-dlopen-openh264.patch Patch92: no-vk-video-decoding.patch +Patch93: soname.diff BuildRequires: c_compiler Requires: this-is-only-for-build-envs @@ -864,7 +866,7 @@ Conflicts: libavfilter8 Conflicts: libavformat59 Conflicts: libavutil57 Conflicts: libpostproc56 -Conflicts: libswresample4 +Conflicts: libswresample4_ff5 Conflicts: libswscale6 Requires: this-is-only-for-build-envs diff --git a/soname.diff b/soname.diff new file mode 100644 index 0000000..e384935 --- /dev/null +++ b/soname.diff @@ -0,0 +1,23 @@ +From: Jan Engelhardt +Date: 2023-03-13 12:53:21.732953738 +0100 + +Move libswresample.so.4 out the way for the benefit of ffmpeg-6 +which provides the same library. +--- + ffbuild/library.mak | 3 +++ + 1 file changed, 3 insertions(+) + +Index: ffmpeg-5.1.2/ffbuild/library.mak +=================================================================== +--- ffmpeg-5.1.2.orig/ffbuild/library.mak ++++ ffmpeg-5.1.2/ffbuild/library.mak +@@ -6,6 +6,9 @@ endif + + LIBVERSION := $(lib$(NAME)_VERSION) + LIBMAJOR := $(lib$(NAME)_VERSION_MAJOR) ++ifeq ($(NAME),swresample) ++LIBMAJOR := $(LIBMAJOR).ff5 ++endif + LIBMINOR := $(lib$(NAME)_VERSION_MINOR) + INCINSTDIR := $(INCDIR)/lib$(NAME) +