[packages/gmock] build noarch

glen glen at pld-linux.org
Sun Sep 8 00:12:33 CEST 2013


commit 5f63486b0225af8823dac5e8281c912ae29cee70
Author: Elan Ruusamäe <glen at delfi.ee>
Date:   Sun Sep 8 01:07:02 2013 +0300

    build noarch

 gmock.spec | 9 +++++++--
 1 file changed, 7 insertions(+), 2 deletions(-)
---
diff --git a/gmock.spec b/gmock.spec
index e8e8787..341e747 100644
--- a/gmock.spec
+++ b/gmock.spec
@@ -14,6 +14,7 @@ BuildRequires:	gtest-devel >= 1.5.0
 BuildRequires:	libtool
 BuildRequires:	python
 Requires:	gtest-devel
+BuildArch:	noarch
 BuildRoot:	%{tmpdir}/%{name}-%{version}-root-%(id -u -n)
 
 %description
@@ -39,7 +40,9 @@ Google Mock:
 %{__autoconf}
 %{__automake}
 %{__autoheader}
-%configure
+%configure \
+	--host=%{_host} \
+	--build=%{_host}
 %{__make}
 
 %install
@@ -48,6 +51,8 @@ rm -rf $RPM_BUILD_ROOT
 	INSTALL="%{__install} -p" \
 	DESTDIR=$RPM_BUILD_ROOT
 
+%{__rm} $RPM_BUILD_ROOT%{_datadir}/gmock/generator/{README.cppclean,COPYING,README}
+
 %clean
 rm -rf $RPM_BUILD_ROOT
 
@@ -59,7 +64,7 @@ rm -rf $RPM_BUILD_ROOT
 %doc CHANGES CONTRIBUTORS COPYING README
 %attr(755,root,root) %{_bindir}/gmock-config
 %{_includedir}/%{name}
-%{_npkgconfigdir}/*
+%{_npkgconfigdir}/gmock.pc
 %dir %{_datadir}/%{name}
 %dir %{_datadir}/%{name}/generator
 %attr(755,root,root) %{_datadir}/%{name}/generator/gmock_gen.py
================================================================

---- gitweb:

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



More information about the pld-cvs-commit mailing list