Add back BuildRoot: tag for RHEL<6 and Fedora<10. Ignore make check
failures for compat or RHEL<6.
This commit is contained in:
parent
9787772ca8
commit
075802b16f
@ -21,6 +21,12 @@
|
|||||||
%global separate_devel_static 1
|
%global separate_devel_static 1
|
||||||
%endif
|
%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
|
Summary: A collection of utilities and DSOs to handle compiled objects
|
||||||
Name: elfutils
|
Name: elfutils
|
||||||
Version: %{eu_version}
|
Version: %{eu_version}
|
||||||
@ -38,6 +44,10 @@ Patch2: elfutils-portability.patch
|
|||||||
Requires: elfutils-libelf-%{_arch} = %{version}-%{release}
|
Requires: elfutils-libelf-%{_arch} = %{version}-%{release}
|
||||||
Requires: elfutils-libs-%{_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: gettext
|
||||||
BuildRequires: bison >= 1.875
|
BuildRequires: bison >= 1.875
|
||||||
BuildRequires: flex >= 2.5.4a
|
BuildRequires: flex >= 2.5.4a
|
||||||
@ -216,7 +226,7 @@ chmod +x ${RPM_BUILD_ROOT}%{_prefix}/%{_lib}/elfutils/lib*.so*
|
|||||||
%find_lang %{name}
|
%find_lang %{name}
|
||||||
|
|
||||||
%check
|
%check
|
||||||
make -s check
|
make -s check || %{nocheck}
|
||||||
|
|
||||||
%clean
|
%clean
|
||||||
rm -rf ${RPM_BUILD_ROOT}
|
rm -rf ${RPM_BUILD_ROOT}
|
||||||
|
Loading…
Reference in New Issue
Block a user