From 5d763a83759eaba3a9ec72767fa6e63c0bfba146 Mon Sep 17 00:00:00 2001 From: Lubomir Rintel Date: Mon, 13 Oct 2014 20:58:05 +0200 Subject: contrib/rpm: Fix Fedora 19 build Too old to have recent enough ModemManager. --- contrib/fedora/rpm/NetworkManager.spec | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/contrib/fedora/rpm/NetworkManager.spec b/contrib/fedora/rpm/NetworkManager.spec index 5c5f0a229b..4ee0a3eb4d 100644 --- a/contrib/fedora/rpm/NetworkManager.spec +++ b/contrib/fedora/rpm/NetworkManager.spec @@ -47,6 +47,12 @@ %global with_wimax 1 %endif +# ModemManager on Fedora < 20 too old for Bluetooth && wwan +%if (0%{?fedora} && 0%{?fedora} < 20) +%global with_bluetooth 0 +%global with_wwan 0 +%endif + # Bluetooth requires the WWAN plugin %if 0%{?with_bluetooth} %global with_wwan 1 @@ -154,7 +160,7 @@ BuildRequires: wimax-devel BuildRequires: systemd >= 200-3 systemd-devel BuildRequires: libsoup-devel BuildRequires: libndp-devel >= 1.0 -%if 0%{?with_wwan} && (0%{?rhel} || (0%{?fedora} && 0%{?fedora} > 19)) +%if 0%{?with_bluetooth} || (0%{?with_wwan} && (0%{?rhel} || (0%{?fedora} && 0%{?fedora} > 19))) BuildRequires: ModemManager-glib-devel >= 1.0 %endif %if 0%{?with_nmtui} -- cgit v1.2.1