From 075802b16f686f7d761790038edf37f39c5c5dbd Mon Sep 17 00:00:00 2001 From: roland Date: May 26 2010 21:25:42 +0000 Subject: Add back BuildRoot: tag for RHEL<6 and Fedora<10. Ignore make check failures for compat or RHEL<6. --- diff --git a/elfutils.spec b/elfutils.spec index d6bb226..93a50c0 100644 --- a/elfutils.spec +++ b/elfutils.spec @@ -21,6 +21,12 @@ %global separate_devel_static 1 %endif +%if %{compat} || %{!?rhel:6}%{?rhel} < 6 +%global nocheck true +%else +%global nocheck false +%endif + Summary: A collection of utilities and DSOs to handle compiled objects Name: elfutils Version: %{eu_version} @@ -38,6 +44,10 @@ Patch2: elfutils-portability.patch Requires: elfutils-libelf-%{_arch} = %{version}-%{release} Requires: elfutils-libs-%{_arch} = %{version}-%{release} +%if %{!?rhel:6}%{?rhel} < 6 || %{!?fedora:9}%{?fedora} < 10 +BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n) +%endif + BuildRequires: gettext BuildRequires: bison >= 1.875 BuildRequires: flex >= 2.5.4a @@ -216,7 +226,7 @@ chmod +x ${RPM_BUILD_ROOT}%{_prefix}/%{_lib}/elfutils/lib*.so* %find_lang %{name} %check -make -s check +make -s check || %{nocheck} %clean rm -rf ${RPM_BUILD_ROOT}