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

#
# spec file for package modem-manager-gui
#
# Copyright (c) 2014 SUSE LINUX Products 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 http://bugs.opensuse.org/
#

Name:           modem-manager-gui
Version:        0.0.18
Release:        0
License:        GPL-3.0+
Summary:        Modem Manager GUI
Url:            http://linuxonly.ru
Group:          System/GUI/GNOME
Source:         %{name}-%{version}.tar.gz
Source1:        %{name}-rpmlintrc
BuildRequires:  pkgconfig(gtk+-3.0) >= 3.4.0
BuildRequires:  pkgconfig(glib-2.0) >= 2.32.1
BuildRequires:  pkgconfig(gtkspell3-3.0) >= 3.0.3
BuildRequires:  pkgconfig(ofono) >= 1.9
BuildRequires:  gdbm-devel
BuildRequires:  desktop-file-utils
BuildRequires:  update-desktop-files
BuildRequires:  fdupes
Requires:       ModemManager
Recommends:     %{name}-lang
BuildRoot:      %{_tmppath}/%{name}-%{version}-build

%description
Modem Manager GUI is frontend for ModemManager daemon able to control specific modem functions.
  Main features:
  * GTK3 interface
  * Send and receive SMS messages with messages concatenation
  * Send USSD request and receive answer in system encoding
  * Get modem and SIM information (Device info, Operator name, Mode, IMEI, IMSI/ESN, Signal level)
  * Scan available mobile networks
  * Control data transmission process and set session traffic and time limits

%lang_package

%package doc
Summary:        Documentation for %{name}
Group:          Documentation/Other
BuildArch:      noarch
BuildRequires:  itstool
BuildRequires:  po4a
Requires:       %{name} = %{version}-%{release}

%description doc
This package contains the documentation for the %{name}.

%prep
%setup -q

%build
%configure
make %{?_smp_mflags}

%install
rm -rf %{buildroot}
%make_install
%suse_update_desktop_file -r %{name} GTK GNOME System X-SuSE-ServiceConfiguration
desktop-file-install --dir %{buildroot}%{_datadir}/applications --delete-original %{buildroot}%{_datadir}/applications/%{name}.desktop
%fdupes %{buildroot}

%find_lang %{name} %{?no_lang_C}

%clean
rm -rf %{buildroot}

%post
%desktop_database_post

%postun
%desktop_database_postun

%files
%defattr(-,root,root)
%doc AUTHORS Changelog LICENSE
%{_bindir}/%{name}
%{_libdir}/%{name}
%{_libdir}/ofono
%dir %{_datadir}/appdata
%{_datadir}/appdata/%{name}.appdata.xml
%{_datadir}/pixmaps/%{name}.png
%{_datadir}/%{name}
%{_datadir}/applications/%{name}.desktop
%{_datadir}/polkit-1/actions/ru.linuxonly.%{name}.policy
%{_mandir}/man1/%{name}.1.*
%dir %{_mandir}/id
%dir %{_mandir}/tr
%dir %{_mandir}/uk
%dir %{_mandir}/uz@Cyrl
%dir %{_mandir}/uz@Latn
%dir %{_mandir}/*/man1
%doc %{_mandir}/*/man1/%{name}.1.*

%files lang -f %{name}.lang
%defattr(-,root,root)
%exclude %{_datadir}/help

%files doc
%defattr(-,root,root)
%doc %{_datadir}/help/*/%{name}

%changelog
openSUSE Build Service is sponsored by