contrib/rpm: fix spec file for s390/s390x
authorThomas Haller <thaller@redhat.com>
Fri, 19 Dec 2014 11:00:34 +0000 (12:00 +0100)
committerThomas Haller <thaller@redhat.com>
Fri, 19 Dec 2014 11:35:36 +0000 (12:35 +0100)
On s390/s390x we would disable hardware plugins, especially %{with_bluetooth} and
%{with_wwan}. Depending on that we would set 'BuildRequires: ModemManager-glib-devel'.

This was not corresponding to the '--with-modem-manager-1' configure
option, hence we did not have ModemManager-glib-devel, but
'--with-modem-manager-1=yes'

contrib/fedora/rpm/NetworkManager.spec

index a54430d..106a15b 100644 (file)
 %global with_team 0
 %endif
 
+%define with_modem_manager_1 0
+%if 0%{?with_bluetooth} || (0%{?with_wwan} && (0%{?rhel} || (0%{?fedora} && 0%{?fedora} > 19)))
+%define with_modem_manager_1 1
+%endif
 
 %global _hardened_build 1
 
@@ -160,7 +164,7 @@ BuildRequires: wimax-devel
 BuildRequires: systemd >= 200-3 systemd-devel
 BuildRequires: libsoup-devel
 BuildRequires: libndp-devel >= 1.0
-%if 0%{?with_bluetooth} || (0%{?with_wwan} && (0%{?rhel} || (0%{?fedora} && 0%{?fedora} > 19)))
+%if 0%{?with_modem_manager_1}
 BuildRequires: ModemManager-glib-devel >= 1.0
 %endif
 %if 0%{?with_nmtui}
@@ -389,7 +393,7 @@ by nm-connection-editor and nm-applet in a non-graphical environment.
        --with-crypto=nss \
        --enable-more-warnings=error \
        --enable-ppp=yes \
-%if 0%{?rhel} || (0%{?fedora} > 19)
+%if 0%{?with_modem_manager_1}
        --with-modem-manager-1=yes \
 %else
        --with-modem-manager-1=no \