commit 4a8bac6c262618af01eb0f02e49116b9765bd5c9
Author: leigh123linux <leigh123linux(a)googlemail.com>
Date: Thu Mar 23 08:04:23 2017 +0000
Fix ppc64le build
HandBrake-add_ppc64le.patch | 16 ++++++++++++++++
HandBrake.spec | 8 +++++++-
2 files changed, 23 insertions(+), 1 deletion(-)
---
diff --git a/HandBrake-add_ppc64le.patch b/HandBrake-add_ppc64le.patch
new file mode 100644
index 0000000..ee2daf0
--- /dev/null
+++ b/HandBrake-add_ppc64le.patch
@@ -0,0 +1,16 @@
+--- a/make/config.guess
++++ b/make/config.guess
+@@ -975,6 +975,12 @@
+ ppc:Linux:*:*)
+ echo powerpc-unknown-linux-gnu
+ exit ;;
++ ppc64le:Linux:*:*)
++ echo powerpc64le-unknown-linux-${LIBC}
++ exit ;;
++ ppcle:Linux:*:*)
++ echo powerpcle-unknown-linux-${LIBC}
++ exit ;;
+ s390:Linux:*:* | s390x:Linux:*:*)
+ echo ${UNAME_MACHINE}-ibm-linux
+ exit ;;
+
diff --git a/HandBrake.spec b/HandBrake.spec
index a63edb0..4becc04 100644
--- a/HandBrake.spec
+++ b/HandBrake.spec
@@ -16,7 +16,7 @@
Name: HandBrake
Version: 1.0.3
-Release: 3%{!?tag:.%{date}git%{shortcommit0}}%{?dist}
+Release: 4%{!?tag:.%{date}git%{shortcommit0}}%{?dist}
Summary: An open-source multiplatform video transcoder
License: GPLv2+
URL:
http://handbrake.fr/
@@ -29,6 +29,8 @@ Source0:
https://github.com/%{name}/%{name}/archive/%{commit0}.tar.gz#/%{
%{?_without_ffmpeg:Source10:
https://libav.org/releases/libav-12.tar.gz}
+# add ppc64le to configure.guess
+Patch0: %{name}-add_ppc64le.patch
# Build with unpatched libbluray (
https://github.com/HandBrake/HandBrake/pull/458)
# can be dropped with libbluray-1.0.0
Patch1: %{name}-no_clip_id.patch
@@ -120,6 +122,7 @@ This package contains the main program with a graphical interface.
%prep
%setup -q %{!?tag:-n %{name}-%{commit0}}
+%patch0 -p1
%if 0%{?fedora} <= 25
%patch1 -p1
%endif
@@ -225,6 +228,9 @@ gtk-update-icon-cache %{_datadir}/icons/hicolor &>/dev/null ||
:
%{_bindir}/HandBrakeCLI
%changelog
+* Thu Mar 23 2017 Leigh Scott <leigh123linux(a)googlemail.com> - 1.0.3-4
+- Fix ppc64le build
+
* Sat Mar 18 2017 RPM Fusion Release Engineering <kwizart(a)rpmfusion.org> - 1.0.3-3
- Rebuilt for
https://fedoraproject.org/wiki/Fedora_26_Mass_Rebuild