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 - 2014.4.0-3 +- dependency on kmods only works for Fedora >= 21 + * Mon Mar 02 2015 Felix Kaechele - 2014.4.0-2 - make dependency on kmod conditional