commit 5dfe2985d9ee144515cbf9f73c63baf5774f42b5
Author: Leigh Scott <leigh123linux(a)gmail.com>
Date: Fri May 12 11:18:30 2023 +0100
Enable openh264 for fedora
ffmpeg.spec | 8 +++++++-
1 file changed, 7 insertions(+), 1 deletion(-)
---
diff --git a/ffmpeg.spec b/ffmpeg.spec
index f644f9c..e7a0216 100644
--- a/ffmpeg.spec
+++ b/ffmpeg.spec
@@ -24,6 +24,7 @@
# Disable because of gcc issue
%global _without_lensfun 1
%if 0%{?fedora}
+%global _with_openh264 1
%global _with_placebo 1
%endif
%ifnarch i686
@@ -111,7 +112,7 @@ ExclusiveArch: armv7hnl
Summary: Digital VCR and streaming server
Name: ffmpeg%{?flavor}
Version: 6.0
-Release: 9%{?date:.%{?date}%{?date:git}%{?rel}}%{?dist}
+Release: 10%{?date:.%{?date}%{?date:git}%{?rel}}%{?dist}
License: %{ffmpeg_license}
URL:
https://ffmpeg.org/
%if 0%{?date}
@@ -168,6 +169,7 @@ BuildRequires: libgcrypt-devel
BuildRequires: libGL-devel
BuildRequires: libmodplug-devel
BuildRequires: libmysofa-devel
+%{?_with_openh264:BuildRequires: openh264-devel}
BuildRequires: libopenmpt-devel
%{?_with_placebo:BuildRequires: libplacebo-devel >= 4.192.0}
BuildRequires: librsvg2-devel
@@ -350,6 +352,7 @@ Freeworld libavcodec to complement the distro counterparts
%{!?_without_opencl:--enable-opencl} \\\
%{?_with_opencv:--enable-libopencv} \\\
%{!?_without_opengl:--enable-opengl} \\\
+ %{?_with_openh264:--enable-libopenh264} \\\
--enable-libopenjpeg \\\
--enable-libopenmpt \\\
%{!?_without_opus:--enable-libopus} \\\
@@ -529,6 +532,9 @@ strip %{buildroot}%{_libdir}/%{name}/libavcodec.so.*
%changelog
+* Fri May 12 2023 Leigh Scott <leigh123linux(a)gmail.com> - 6.0-10
+- Enable openh264 for fedora
+
* Mon Apr 24 2023 Nicolas Chauvet <kwizart(a)gmail.com> - 6.0-9
- Add ffmpeg-bin for deps