Build farm integration to ensure BuildRequires are correct

This commit is contained in:
Brian Behlendorf 2009-06-25 16:11:13 -07:00
parent 31b2e0b070
commit 07114bdee9

View File

@ -74,14 +74,14 @@
# The kernel version should only be appended to a binary RPM. # The kernel version should only be appended to a binary RPM.
# When building a source RPM it must be kernel version agnostic. # When building a source RPM it must be kernel version agnostic.
%if %{?build_src_rpm:1}0 %if %{defined build_src_rpm}
%define release @SPL_META_RELEASE@ %define release @SPL_META_RELEASE@
%else %else
%define release @SPL_META_RELEASE@_%(echo %{kverpkg} | %{__sed} -e 's/-/_/g') %define release @SPL_META_RELEASE@_%(echo %{kverpkg} | %{__sed} -e 's/-/_/g')
%endif %endif
%if 0%{?require_kver:1} %if %{defined require_kver}
%define buildrequires %{kdevpkg}=%{kverpkg} %define buildrequires %{kdevpkg}=%{require_kver}
%else %else
%define buildrequires %{kdevpkg} %define buildrequires %{kdevpkg}
%endif %endif