- valgrind available only on selected arches

This commit is contained in:
Dan Horák 2014-09-29 10:33:59 +02:00
parent 564777d90a
commit 3e42f9632a

View File

@ -1,9 +1,13 @@
# first two digits of version
%global release_version %%(echo %{version} | awk -F. '{print $1"."$2}')
%ifarch %{ix86} x86_64 ppc ppc64 ppc64le s390x armv7hl aarch64
%global has_valgrind 1
%endif
Name: libsecret
Version: 0.18
Release: 5%{?dist}
Release: 6%{?dist}
Summary: Library for storing and retrieving passwords and other secrets
License: LGPLv2+
@ -19,7 +23,9 @@ BuildRequires: vala-tools
BuildRequires: gtk-doc
BuildRequires: libxslt-devel
BuildRequires: docbook-style-xsl
%if 0%{?has_valgrind}
BuildRequires: valgrind-devel
%endif
Provides: bundled(egglib)
@ -42,7 +48,9 @@ developing applications that use %{name}.
%setup -q
# Use system valgrind headers instead
%if 0%{?has_valgrind}
rm -rf build/valgrind/
%endif
%build
@ -82,6 +90,9 @@ find $RPM_BUILD_ROOT -name '*.la' -exec rm -f {} ';'
%changelog
* Mon Sep 29 2014 Dan Horák <dan[at]danny.cz> - 0.18-6
- valgrind available only on selected arches
* Tue Sep 16 2014 Debarshi Ray <rishi@fedoraproject.org> - 0.18-5
- Use system valgrind headers (#1141474)