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

#
# spec file for package modem-manager-gui
#
# Copyright (c) 2022 SUSE LLC
#
# 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 https://bugs.opensuse.org/
#


Name:           modem-manager-gui
Version:        0.0.20
Release:        0
Summary:        Modem Manager GUI
License:        GPL-3.0-or-later
Group:          Hardware/Mobile
URL:            http://linuxonly.ru/cms/page.php?7
Source:         http://download.tuxfamily.org/gsf/source/modem-manager-gui-%{version}.tar.gz
# 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 fix_segfault_on_DNS_entries.patch -- from https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=1004258#30
Patch1:         fix_segfault_on_DNS_entries.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 >= 0.5.0.0
Suggests:       evolution-data-server >= 3.4.1
Suggests:       libcanberra0 >= 0.28
Suggests:       libnotify-tools >= 0.7.5

%description
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.

%lang_package

%prep
%setup -q -n %{name}
%patch -P 0
%patch -P 1 -p1

%build
%configure
make %{?_smp_mflags}

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

%files
%defattr(-,root,root,-)
%license LICENSE
%doc AUTHORS
%doc Changelog
%{_bindir}/%{name}
%{_datadir}/applications/%{name}.desktop
%{_datadir}/icons/hicolor/*/apps/*
%{_datadir}/%{name}
%{_libdir}/%{name}
%{_mandir}/ar
%{_mandir}/bn
%{_mandir}/de/man?/*
%{_mandir}/fr/man?/*
%{_mandir}/id/man?/*
%{_mandir}/man?/*
%{_mandir}/pl/man?/*
%{_mandir}/pt_BR/man?/*
%{_mandir}/ru/man?/*
%{_mandir}/tr/man?/*
%{_mandir}/uk/man?/*
%{_mandir}/uz@Cyrl
%{_mandir}/uz@Latn
%{_mandir}/zh_CN/man?/*
%{_datadir}/metainfo/%{name}.appdata.xml
%dir %{_sysconfdir}/NetworkManager
%dir %{_sysconfdir}/NetworkManager/dispatcher.d
%{_sysconfdir}/NetworkManager/dispatcher.d/95-mmgui-timestamp-notifier
# https://bugzilla.novell.com/show_bug.cgi?id=950215
# %%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
%defattr(-,root,root)

%changelog
openSUSE Build Service is sponsored by