[batctl] dependency on kmods only works for Fedora >= 21

Felix Kaechele heffer at fedoraproject.org
Tue Mar 10 19:50:07 UTC 2015


commit 0a88f29284f476dc9d762f9963856dc55f9ee3e6
Author: Felix Kaechele <heffer at fedoraproject.org>
Date:   Tue Mar 10 20:49:38 2015 +0100

    dependency on kmods only works for Fedora >= 21

 batctl.spec | 8 ++++++--
 1 file changed, 6 insertions(+), 2 deletions(-)
---
diff --git a/batctl.spec b/batctl.spec
index 96ebcd2..68d23e2 100644
--- a/batctl.spec
+++ b/batctl.spec
@@ -1,6 +1,6 @@
 Name:           batctl
 Version:        2014.4.0
-Release:        2%{?dist}
+Release:        3%{?dist}
 Summary:        B.A.T.M.A.N. advanced control and management tool
 
 License:        GPLv2
@@ -9,7 +9,8 @@ Source0:        http://downloads.open-mesh.org/batman/stable/sources/batctl/%{na
 
 # Require the batman-adv kernel module for convenience here
 # It's not available on EL so make this conditional
-%if 0%{?fedora}
+# Also, Fedora < 21 doesn't support direct dependencies on kmods
+%if 0%{?fedora} >= 21
 Requires:       kmod(batman-adv.ko)
 %endif
 BuildRequires:  libnl3-devel
@@ -48,6 +49,9 @@ make %{?_smp_mflags} CFLAGS="%{optflags} -I%{_prefix}/include/libnl3" V=s
 
 
 %changelog
+* Tue Mar 10 2015 Felix Kaechele <heffer at fedoraproject.org> - 2014.4.0-3
+- dependency on kmods only works for Fedora >= 21
+
 * Mon Mar 02 2015 Felix Kaechele <heffer at fedoraproject.org> - 2014.4.0-2
 - make dependency on kmod conditional
 


More information about the scm-commits mailing list