File project.diff of Package ffmpeg-5
--- baselibs.conf.orig
+++ baselibs.conf
@@ -5,5 +5,5 @@ libavformat59
libavutil57
libpostproc56
libswresample4_ff5
- obsoletes "libswresample4-<targettype> < <version>-<release>"
+ obsoletes "libswresample4-<targettype> < <version>"
libswscale6
--- ffmpeg-5.spec.orig
+++ ffmpeg-5.spec
@@ -40,6 +40,9 @@
%preamble_string ffmpeg-private-devel %comparator %conflicts_version \
%nil
+# enable all ffmpeg codecs
+%define BUILD_ORIG 1
+
%if 0%{?BUILD_ORIG}
%bcond_without amf_sdk
%bcond_without cuda_sdk
@@ -83,7 +86,7 @@
%define _major_expected 6
Name: ffmpeg-5
-Version: 5.1.4
+Version: 5.1.5
Release: 0
Summary: Set of libraries for working with various multimedia formats
License: GPL-3.0-or-later
@@ -109,10 +112,10 @@ Patch10: 0001-avfilter-af_dialogu
Patch11: 0001-avfilter-af_dialoguenhance-simplify-channels-copy.patch
Patch12: 0001-avfilter-af_dialoguenhance-do-output-scaling-once.patch
Patch13: 0001-avutil-hwcontext-Don-t-assume-frames_uninit-is-reent.patch
-Patch14: 0001-avfilter-avf_showspectrum-fix-off-by-1-error.patch
+# Patch14: 0001-avfilter-avf_showspectrum-fix-off-by-1-error.patch
Patch15: 0001-avfilter-vf_codecview-fix-heap-buffer-overflow.patch
-Patch16: 0001-avfilter-f_reverse-Apply-PTS-compensation-only-when-.patch
-Patch17: 0001-avfilter-af_stereowiden-Check-length.patch
+# Patch16: 0001-avfilter-f_reverse-Apply-PTS-compensation-only-when-.patch
+# Patch17: 0001-avfilter-af_stereowiden-Check-length.patch
Patch18: 0001-libavcodec-arm-mlpdsp_armv5te-fix-label-format-to-wo.patch
Patch19: 0001-avutil-hwcontext_vaapi-use-the-correct-type-for-VASu.patch
Patch90: ffmpeg-chromium.patch
@@ -121,22 +124,31 @@ Patch93: soname.diff
Patch94: ffmpeg-CVE-2023-50007.patch
Patch95: ffmpeg-CVE-2023-50008.patch
Patch96: ffmpeg-CVE-2023-49502.patch
-Patch97: ffmpeg-CVE-2023-51793.patch
+# Patch97: ffmpeg-CVE-2023-51793.patch
Patch98: ffmpeg-Templatify-ff_gaussian_blur-and-ff-function.patch
Patch99: ffmpeg-CVE-2023-50009.patch
-Patch100: ffmpeg-CVE-2023-50010.patch
-Patch102: ffmpeg-5-CVE-2024-32230.patch
+# Patch100: ffmpeg-CVE-2023-50010.patch
+# Patch102: ffmpeg-5-CVE-2024-32230.patch
Patch103: ffmpeg-5-CVE-2024-7272.patch
Patch104: ffmpeg-5-CVE-2024-7055.patch
#
# preamble is present twice, watch out
#
%if %{with amf_sdk}
+%if ( ! 0%{?is_opensuse} ) || 0%{?sle_version} >= 150300
+%ifnarch %ix86
BuildRequires: AMF-devel
%endif
+%endif
+%endif
BuildRequires: ladspa-devel
+%if 0%{?is_opensuse}
BuildRequires: libgsm-devel
BuildRequires: libmp3lame-devel
+%else
+BuildRequires: gsm-devel
+BuildRequires: lame-devel
+%endif
%if %{with mysofa}
BuildRequires: libmysofa-devel
%endif
@@ -153,9 +165,11 @@ BuildRequires: pkgconfig(bzip2)
%if %{with codec2}
BuildRequires: pkgconfig(codec2)
%endif
-%if 0%{?suse_version} > 1500 || 0%{?sle_version} >= 150200
+%if ( ! 0%{?is_opensuse} ) || 0%{?suse_version} > 1500 || 0%{?sle_version} >= 150200
+%ifnarch %ix86
BuildRequires: pkgconfig(dav1d)
%endif
+%endif
BuildRequires: pkgconfig(ffnvcodec)
BuildRequires: pkgconfig(fontconfig) >= 2.4.2
BuildRequires: pkgconfig(freetype2)
@@ -179,10 +193,14 @@ BuildRequires: pkgconfig(libssh)
BuildRequires: pkgconfig(libva) >= 0.35.0
BuildRequires: pkgconfig(libva-drm)
BuildRequires: pkgconfig(libva-x11)
+%if %{with vmaf}
BuildRequires: pkgconfig(libvmaf) >= 1.3.9
+%endif
BuildRequires: pkgconfig(libwebp) >= 0.4
BuildRequires: pkgconfig(libxml-2.0)
+%ifnarch %ix86
BuildRequires: pkgconfig(libzmq)
+%endif
BuildRequires: pkgconfig(lilv-0)
BuildRequires: pkgconfig(ogg)
BuildRequires: pkgconfig(opus)
@@ -551,13 +569,15 @@ break compatibility without any notice.
%ifarch %ix86 %arm
%define _lto_cflags %nil
%endif
+%if 0%{?fedora}
+%define _lto_cflags %nil
+%endif
%if "%_lto_cflags" != ""
%global _lto_cflags %_lto_cflags -ffat-lto-objects
%endif
CFLAGS="%optflags" \
-%if %suse_version > 1500
-%ifarch %ix86
-%else
+%if 0%{?is_opensuse} && 0%{?suse_version} > 1500
+%ifnarch %ix86
LDFLAGS="%_lto_cflags" \
%endif
%endif
@@ -573,6 +593,10 @@ LDFLAGS="%_lto_cflags" \
--disable-stripping \
--enable-shared \
--disable-static \
+%if 0%{?fedora}
+ --extra-ldflags="%{?__global_ldflags}" \
+ --disable-debug \
+%endif
--enable-gpl \
--enable-version3 \
%if %{with smbclient}
@@ -598,9 +622,11 @@ LDFLAGS="%_lto_cflags" \
%if %{with codec2}
--enable-libcodec2 \
%endif
-%if 0%{?suse_version} > 1500 || 0%{?sle_version} >= 150200
+%if ( ! 0%{?is_opensuse} ) || 0%{?suse_version} > 1500 || 0%{?sle_version} >= 150200
+%ifnarch %ix86
--enable-libdav1d \
%endif
+%endif
--enable-libdc1394 \
--enable-libdrm \
--enable-libfontconfig \
@@ -640,17 +666,20 @@ LDFLAGS="%_lto_cflags" \
%if %{with vidstab}
--enable-libvidstab \
%endif
+%if %{with vmaf}
--enable-libvmaf \
+%endif
--enable-libvorbis \
--enable-libvpx \
--enable-libwebp \
--enable-libxml2 \
--enable-libzimg \
+%ifnarch %ix86
--enable-libzmq \
+%endif
--enable-libzvbi \
%if 0%{?suse_version} > 1500
-%ifarch %ix86
-%else
+%ifnarch %ix86
--enable-lto \
%endif
%endif
@@ -721,14 +750,22 @@ for i in libavformat/options_table.h lib
cp -a $i "$b/%_includedir/ffmpeg/private/$i"
done
-%ldconfig_scriptlets -n libavcodec59
-%ldconfig_scriptlets -n libavdevice59
-%ldconfig_scriptlets -n libavfilter8
-%ldconfig_scriptlets -n libavformat59
-%ldconfig_scriptlets -n libavutil57
-%ldconfig_scriptlets -n libpostproc56
-%ldconfig_scriptlets -n libswresample4_ff5
-%ldconfig_scriptlets -n libswscale6
+%post -n libavcodec59 -p /sbin/ldconfig
+%postun -n libavcodec59 -p /sbin/ldconfig
+%post -n libavdevice59 -p /sbin/ldconfig
+%postun -n libavdevice59 -p /sbin/ldconfig
+%post -n libavfilter8 -p /sbin/ldconfig
+%postun -n libavfilter8 -p /sbin/ldconfig
+%post -n libavformat59 -p /sbin/ldconfig
+%postun -n libavformat59 -p /sbin/ldconfig
+%post -n libavutil57 -p /sbin/ldconfig
+%postun -n libavutil57 -p /sbin/ldconfig
+%post -n libpostproc56 -p /sbin/ldconfig
+%postun -n libpostproc56 -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
%files
%doc Changelog CREDITS README.md
@@ -831,7 +868,7 @@ done
%define _name ffmpeg
Name: ffmpeg-5-mini
-Version: 5.1.4
+Version: 5.1.5
Release: 0
Summary: Set of libraries for working with various multimedia formats
License: GPL-3.0-or-later