Add back BuildRoot: tag for RHEL<6 and Fedora<10. Ignore make check

failures for compat or RHEL<6.
This commit is contained in:
roland 2010-05-26 21:25:42 +00:00
parent 9787772ca8
commit 075802b16f

View File

@ -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}