[packages/gmock] - fix building on x32 - rel 4

baggins baggins at pld-linux.org
Sun Nov 22 01:29:19 CET 2015


commit b6365d5df12977e224f2493ffd0cb793c6c4e183
Author: Jan Rękorajski <baggins at pld-linux.org>
Date:   Sun Nov 22 01:29:07 2015 +0100

    - fix building on x32
    - rel 4

 gmock.spec | 12 +++++++++---
 1 file changed, 9 insertions(+), 3 deletions(-)
---
diff --git a/gmock.spec b/gmock.spec
index 894ec53..dde9d8c 100644
--- a/gmock.spec
+++ b/gmock.spec
@@ -1,8 +1,14 @@
+%ifarch x32
+%define	build_arch %{_target_platform}
+%else
+%define	build_arch %{_host}
+%endif
+
 Summary:	Google C++ Mocking Framework
 Summary(pl.UTF-8):	Szkielet Google Mock dla C++
 Name:		gmock
 Version:	1.7.0
-Release:	3
+Release:	4
 License:	BSD
 Group:		Development/Libraries
 #Source0Download: http://code.google.com/p/googlemock/downloads/list
@@ -98,8 +104,8 @@ grep -rl bin/env scripts | xargs %{__sed} -i -e '1s,^#!.*python,#!%{__python},'
 %{__autoheader}
 %{__automake}
 %configure \
-	--host=%{_host} \
-	--build=%{_host}
+	--host=%{build_arch} \
+	--build=%{build_arch}
 %{__make}
 
 %install
================================================================

---- gitweb:

http://git.pld-linux.org/gitweb.cgi/packages/gmock.git/commitdiff/b6365d5df12977e224f2493ffd0cb793c6c4e183



More information about the pld-cvs-commit mailing list