File modem-manager-gui.spec of Package modem-manager-gui

# spec file for package modem-manager-gui
# Copyright (c) 2018 SUSE LINUX GmbH, Nuernberg, Germany.
# All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed
# upon. The license for this file, and modifications and additions to the
# file, is the same license as for the pristine package itself (unless the
# license for the pristine package is not an Open Source License, in which
# case the license is the MIT License). An "Open Source License" is a
# license that conforms to the Open Source Definition (Version 1.9)
# published by the Open Source Initiative.

# Please submit bugfixes or comments via

Name:           modem-manager-gui
Release:        0
Summary:        Modem Manager GUI
License:        GPL-3.0-or-later
Group:          Hardware/Mobile
# PATCH-FEATURE-OPENSUSE E: env-script-interpreter (Badness: 9)
# /etc/NetworkManager/dispatcher.d/95-mmgui-timestamp-notifier /usr/bin/env python3
# This script uses 'env' as an interpreter. For the rpm runtime dependency
# detection to work, the shebang #!/usr/bin/env python  needs to be patched into
# #!/usr/bin/python  otherwise the package dependency generator merely adds a
# dependency on /usr/bin/env rather than the actual interpreter /usr/bin/python.
# Alternatively, if the file should not be executed, then ensure that it is not
# marked as executable or don't install it in a path that is reserved for executables.
Patch0:         95-mmgui-timestamp-notifier.diff
# PATCH-FIX-OPENSUSE bnc#1154301 Fix memory corruption because of wrong strsep()
# usage. Fix segfault in strftime_l() because of timestamps from future.
Patch1:         fix-crash.patch

BuildRequires:  fdupes
BuildRequires:  gdbm-devel
BuildRequires:  itstool >= 1.2
BuildRequires:  man
BuildRequires:  po4a
BuildRequires:  update-desktop-files
BuildRequires:  pkgconfig(appindicator3-0.1)
BuildRequires:  pkgconfig(glib-2.0) >= 2.32.1
BuildRequires:  pkgconfig(gtk+-3.0) >= 3.4.0
Requires:       ModemManager >=
Recommends:     %{name}-lang
Suggests:       evolution-data-server >= 3.4.1
Suggests:       libcanberra0 >= 0.28
Suggests:       libnotify-tools >= 0.7.5

This program is simple graphical interface for Modem Manager
daemon dbus interface.
Current features:
- View device information: Operator name, Mode, IMEI, IMSI,
  Signal level.
- Send and receive SMS messages with long massages
  concatenation and store messages in database.
- Send USSD requests and read answers in GSM7 and UCS2 formats
  converted to system UTF8 charset.
- Scan available mobile networks.


%setup -q
%patch1 -p1

make %{?_smp_mflags}

make install INSTALLPREFIX=%{buildroot}
%find_lang %{name}
%suse_update_desktop_file -r %{name} 'Internet;Monitor;'
%fdupes -s %{buildroot}%{_datadir}/help

%license LICENSE
%doc Changelog
%dir %{_mandir}/*
%dir %{_sysconfdir}/NetworkManager
%dir %{_sysconfdir}/NetworkManager/dispatcher.d
# %%dir %%{_datadir}/polkit-1
# %%dir %%{_datadir}/polkit-1/actions	
%exclude %{_datadir}/polkit-1/actions/ru.linuxonly.modem-manager-gui.policy

%files lang -f %{name}.lang

openSUSE Build Service is sponsored by