From 07114bdee9012057c26c17ebe70ab0d9d05c4154 Mon Sep 17 00:00:00 2001 From: Brian Behlendorf Date: Thu, 25 Jun 2009 16:11:13 -0700 Subject: [PATCH] Build farm integration to ensure BuildRequires are correct --- spl.spec.in | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/spl.spec.in b/spl.spec.in index ac4b9e78dd84..e6193ffc8ca5 100644 --- a/spl.spec.in +++ b/spl.spec.in @@ -74,14 +74,14 @@ # The kernel version should only be appended to a binary RPM. # 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@ %else %define release @SPL_META_RELEASE@_%(echo %{kverpkg} | %{__sed} -e 's/-/_/g') %endif -%if 0%{?require_kver:1} -%define buildrequires %{kdevpkg}=%{kverpkg} +%if %{defined require_kver} +%define buildrequires %{kdevpkg}=%{require_kver} %else %define buildrequires %{kdevpkg} %endif