[packages/kvazaar] - fix building on x32 - rel 2

baggins baggins at pld-linux.org
Tue Mar 15 18:43:41 CET 2016


commit 07114363da22f4eec960896fe84c9f7730d04d5f
Author: Jan Rękorajski <baggins at pld-linux.org>
Date:   Tue Mar 15 18:43:27 2016 +0100

    - fix building on x32
    - rel 2

 kvazaar.spec |  6 +++++-
 x32.patch    | 11 +++++++++++
 2 files changed, 16 insertions(+), 1 deletion(-)
---
diff --git a/kvazaar.spec b/kvazaar.spec
index 8876a46..805eddb 100644
--- a/kvazaar.spec
+++ b/kvazaar.spec
@@ -2,11 +2,12 @@ Summary:	Kvazaar - open-source HEVC encoder
 Summary(pl.UTF-8):	Kvazaar - koder HEVC o otwartych źródłach
 Name:		kvazaar
 Version:	0.8.2
-Release:	1
+Release:	2
 License:	LGPL v2.1+
 Group:		Libraries
 Source0:	https://github.com/ultravideo/kvazaar/archive/v%{version}/%{name}-%{version}.tar.gz
 # Source0-md5:	9c614d753dc055dcbb343546d3cd4048
+Patch0:		x32.patch
 URL:		https://github.com/ultravideo/kvazaar
 BuildRequires:	autoconf >= 2.50
 BuildRequires:	automake >= 1:1.11
@@ -49,6 +50,9 @@ Statyczna biblioteka Kvazaar.
 
 %prep
 %setup -q
+%ifarch x32
+%patch0 -p1
+%endif
 
 %build
 %{__libtoolize}
diff --git a/x32.patch b/x32.patch
new file mode 100644
index 0000000..ae65c05
--- /dev/null
+++ b/x32.patch
@@ -0,0 +1,11 @@
+--- kvazaar-0.8.2/configure.ac.orig	2016-03-15 18:41:05.548752072 +0100
++++ kvazaar-0.8.2/configure.ac	2016-03-15 18:41:22.412326953 +0100
+@@ -56,7 +56,7 @@
+ # host and cpu specific settings
+ AS_CASE([$host_cpu],
+         [i?86], [BITS="32" ASFLAGS="$ASFLAGS -DARCH_X86_64=0" X86="true"],
+-        [x86_64], [BITS="64" ASFLAGS="$ASFLAGS -DARCH_X86_64=1 -m amd64" X86="true"],
++        [x86_64], [BITS="x32" ASFLAGS="$ASFLAGS -DARCH_X86_64=1 -m x32" X86="true"],
+         [powerpc*], [PPC="true"],
+         [arm*], [ARM="true"]
+ )
================================================================

---- gitweb:

http://git.pld-linux.org/gitweb.cgi/packages/kvazaar.git/commitdiff/07114363da22f4eec960896fe84c9f7730d04d5f



More information about the pld-cvs-commit mailing list