[packages/gmock] don't need the macros in preamble

Jan Rękorajski baggins at pld-linux.org
Sun Nov 22 22:20:36 CET 2015


Think first before doing something.
How do you expect an 'ifarch' to work _after_ setting arch to noarch?

On Sun, 22 Nov 2015, glen wrote:

> commit 09d9b8b85792b8f61d5aca7fe7fcc30b6996cb44
> Author: Elan Ruusamäe <glen at delfi.ee>
> Date:   Sun Nov 22 23:08:21 2015 +0200
> 
>     don't need the macros in preamble
> 
>  gmock.spec | 12 ++++++------
>  1 file changed, 6 insertions(+), 6 deletions(-)
> ---
> diff --git a/gmock.spec b/gmock.spec
> index dde9d8c..5f6c500 100644
> --- a/gmock.spec
> +++ b/gmock.spec
> @@ -1,9 +1,3 @@
> -%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
> @@ -26,6 +20,12 @@ BuildRequires:	sed >= 4.0
>  BuildArch:	noarch
>  BuildRoot:	%{tmpdir}/%{name}-%{version}-root-%(id -u -n)
>  
> +%ifarch x32
> +%define	build_arch %{_target_platform}
> +%else
> +%define	build_arch %{_host}
> +%endif
> +
>  %description
>  Inspired by jMock, EasyMock, and Hamcrest, and designed with C++'s
>  specifics in mind, Google C++ Mocking Framework (or Google Mock for
> ================================================================
> 
> ---- gitweb:
> 
> http://git.pld-linux.org/gitweb.cgi/packages/gmock.git/commitdiff/09d9b8b85792b8f61d5aca7fe7fcc30b6996cb44
> 
> _______________________________________________
> pld-cvs-commit mailing list
> pld-cvs-commit at lists.pld-linux.org
> http://lists.pld-linux.org/mailman/listinfo/pld-cvs-commit

-- 
Jan Rękorajski                    | PLD/Linux
SysAdm | baggins<at>pld-linux.org | http://www.pld-linux.org/


More information about the pld-devel-en mailing list