summaryrefslogtreecommitdiffstats
path: root/spl.spec.in
diff options
context:
space:
mode:
authorBrian Behlendorf <[email protected]>2009-06-25 16:11:13 -0700
committerBrian Behlendorf <[email protected]>2009-06-25 16:11:13 -0700
commit07114bdee9012057c26c17ebe70ab0d9d05c4154 (patch)
tree350f186d2313685699b64c76d32c208b4e68d537 /spl.spec.in
parent31b2e0b070d99681d189951557d2344dc2b63dbf (diff)
Build farm integration to ensure BuildRequires are correct
Diffstat (limited to 'spl.spec.in')
-rw-r--r--spl.spec.in6
1 files changed, 3 insertions, 3 deletions
diff --git a/spl.spec.in b/spl.spec.in
index ac4b9e78d..e6193ffc8 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