commit fb54c4727ad92f495a5e76105fc455ae80758306
Author: Vitaly Zaitsev <vitaly(a)easycoding.org>
Date: Thu Jan 5 11:46:39 2023 +0100
Restored ability to build without ffmpeg. Set ExclusiveArch.
HandBrake.spec | 11 ++++++++---
1 file changed, 8 insertions(+), 3 deletions(-)
---
diff --git a/HandBrake.spec b/HandBrake.spec
index ed921c9..f24dd06 100644
--- a/HandBrake.spec
+++ b/HandBrake.spec
@@ -21,7 +21,7 @@ Version: 1.6.0
Release: 1%{!?tag:.%{date}git%{shortcommit0}}%{?dist}
Summary: An open-source multiplatform video transcoder
License: GPLv2+
-URL:
http://handbrake.fr/
+URL:
https://handbrake.fr/
%if 0%{?tag:1}
Source0:
https://github.com/%{name}/%{name}/releases/download/%{version}/%{name}-%...
@@ -34,6 +34,8 @@ BuildRequires: gnupg2
Source0:
https://github.com/%{name}/%{name}/archive/%{commit0}.tar.gz#/%{name}-%{s...
%endif
+%{?_without_ffmpeg:Source10:
https://libav.org/releases/libav-12.tar.gz}
+
# Pass strip tool override to gtk/configure
Patch3: %{name}-nostrip.patch
# Don't link with libva unnecessarily
@@ -48,7 +50,7 @@ BuildRequires: cmake
BuildRequires: dbus-glib-devel
BuildRequires: desktop-file-utils
BuildRequires: libappstream-glib
-BuildRequires: ffmpeg-devel >= 3.5
+%{!?_without_ffmpeg:BuildRequires: ffmpeg-devel >= 3.5}
# Should be >= 2.6:
BuildRequires: freetype-devel >= 2.4.11
# Should be >= 0.19.7:
@@ -105,6 +107,9 @@ Obsoletes: HandBrake-cli < %{version}-%{release}
Provides: HandBrake-cli = %{version}-%{release}
Provides: handbrake = %{version}-%{release}
+# svt-av1 is x86_64 only
+ExclusiveArch: x86_64
+
%description
%{name} is a general-purpose, free, open-source, cross-platform, multithreaded
video transcoder software application. It can process most common multimedia
@@ -143,7 +148,7 @@ gpgv2 --keyring %{S:2} %{S:1} %{S:0}
%patch11 -p1
# Use system libraries in place of bundled ones
-for module in a52dec %{?_with_fdk:fdk-aac} ffmpeg libdav1d libdvdnav libdvdread libbluray
%{?_with_vpl:libmfx libvpl} nvenc libvpx svt-av1 x265; do
+for module in a52dec %{?_with_fdk:fdk-aac} %{!?_without_ffmpeg:ffmpeg} libdav1d libdvdnav
libdvdread libbluray %{?_with_vpl:libmfx libvpl} nvenc libvpx svt-av1 x265; do
sed -i -e "/MODULES += contrib\/$module/d" make/include/main.defs
done