aboutsummaryrefslogtreecommitdiffstats
path: root/spl-modules.spec.in
diff options
context:
space:
mode:
authorBrian Behlendorf <[email protected]>2010-05-18 09:18:20 -0700
committerBrian Behlendorf <[email protected]>2010-05-18 09:18:20 -0700
commit99879b257c509a1571dc412128b9b2cfbaac8ba4 (patch)
tree233acca684ada98661867af1fa5ac23df7fccabf /spl-modules.spec.in
parentde7cc348212af1b6bdc836be61943ba9e9cfcea7 (diff)
Minor spec file cleanup for srpm case.
Ensure kdevpkg is defined is srpm case before using it to define the devel_requires macro. Interestingly this is not an issue for rpm-4.7.1-4 but it is for rpm-4.4.2.3-18.
Diffstat (limited to 'spl-modules.spec.in')
-rw-r--r--spl-modules.spec.in6
1 files changed, 4 insertions, 2 deletions
diff --git a/spl-modules.spec.in b/spl-modules.spec.in
index 92b12abf4..b7e1c0934 100644
--- a/spl-modules.spec.in
+++ b/spl-modules.spec.in
@@ -22,7 +22,7 @@
%define kobj %{require_kobj}
%endif
-# SLES 10, SLES 11:
+# SLES:
%if %{defined suse_version}
%if %{undefined kver}
%ifarch ppc64
@@ -104,7 +104,7 @@
%endif
%else
-# Fedora 11:
+# Fedora:
%if %{defined fedora}
%if %{undefined kver}
%define klnk %{_usrsrc}/kernels/*/include/config
@@ -152,7 +152,9 @@
%if %{defined build_src_rpm}
%define release @SPL_META_RELEASE@
%define requires %{kpkg}
+%if %{defined kdevpkg}
%define devel_requires %{kdevpkg}
+%endif
%else
%define relext %(echo %{kverpkg} | %{__sed} -e 's/-/_/g')
%define release @SPL_META_RELEASE@_%{relext}