diff --git a/modem-manager-gui.spec b/modem-manager-gui.spec index a60e73b..db9236d 100644 --- a/modem-manager-gui.spec +++ b/modem-manager-gui.spec @@ -4,12 +4,14 @@ Summary(de): Grafische Oberfläche für ModemManager Summary(ru): Графический интерфейс для демона ModemManager Version: 0.0.19.1 -Release: 4%{?dist} +Release: 5%{?dist} License: GPLv3 URL: https://linuxonly.ru/page/modem-manager-gui Source0: http://download.tuxfamily.org/gsf/source/modem-manager-gui-%{version}.tar.gz +%global with_ofono 0 + BuildRequires: gcc BuildRequires: desktop-file-utils BuildRequires: gdbm-devel > 1.10 @@ -22,10 +24,13 @@ BuildRequires: libappindicator-gtk3-devel >= 0.4.92 BuildRequires: libappstream-glib BuildRequires: libnotify-devel >= 0.7.5 BuildRequires: meson -BuildRequires: ofono-devel >= 1.09 BuildRequires: pkgconfig BuildRequires: po4a +%if %{with_ofono} +BuildRequires: ofono-devel >= 1.09 +%endif + Requires: filesystem Requires: hicolor-icon-theme Requires: mobile-broadband-provider-info >= 1.20120614 @@ -81,7 +86,7 @@ Provides: %{name}-cm%{?_isa} Plugin for %{name} allowing to use connman as the connection manager. %package cm-NetworkManager -Summary: Use NetworkManaget to manage connections in %{name} +Summary: Use NetworkManager to manage connections in %{name} Requires: NetworkManager >= 0.9.0 Requires: python3 Provides: %{name}-cm%{?_isa} @@ -103,12 +108,14 @@ Provides: %{name}-mm%{?_isa} %description mm-ModemManager Plugin for %{name} allowing to use ModemManager as the modem manager. +%if %{with_ofono} %package mm-ofono Summary: Use ofono to manage modems in %{name} Requires: ofono >= 1.09 Provides: %{name}-mm%{?_isa} %description mm-ofono Plugin for %{name} allowing to use ofono as the modem manager. +%endif %prep @@ -126,7 +133,7 @@ sed -e "s/meson_version: '>=0.37'/meson_version: '>=0.38'/" -i meson.build # # This sleep call is a dirty workaround until # the issue can be patched or fixed upstream. -sleep 10 +sleep 15 %meson_install %find_lang %{name} --with-gnome @@ -172,12 +179,17 @@ desktop-file-validate %{buildroot}%{_datadir}/applications/%{name}.desktop %files mm-ModemManager %{_libdir}/%{name}/modules/libmodmm_mm07.so +%if %{with_ofono} %files mm-ofono %{_libdir}/%{name}/modules/libmodmm_ofono109.so %{_libdir}/ofono/plugins/libmmgui-ofono-history.so* +%endif %changelog +* Sun Feb 03 2019 Artur Iwicki - 0.0.19.1-5 +- Fix build failures due to Fedora dropping ofono + * Fri Feb 01 2019 Fedora Release Engineering - 0.0.19.1-4 - Rebuilt for https://fedoraproject.org/wiki/Fedora_30_Mass_Rebuild