File ModemManager.spec of Package ModemManager.import4453
#
# spec file for package ModemManager
#
# Copyright (c) 2011 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: ModemManager
Version: 0.4
Release: 8.<RELEASE9>
License: LGPLv2.1+
Summary: DBus interface for modem handling
Url: http://cgit.freedesktop.org/ModemManager/ModemManager
Group: Productivity/Networking/System
Source0: ModemManager-%{version}.tar.bz2
# PATCH-FIX-UPSTREAM ModemManager-fix-new-glib.patch bgo626421 vuntz@opensuse.org -- Fix build with recent glib
Patch0: ModemManager-fix-new-glib.patch
# PATCH-FIX-UPSTREAM ModemManager-polkit-deprecated.patch bgo#628105 vuntz@opensuse.org -- Fix build with polkit >= 0.97
Patch1: ModemManager-polkit-deprecated.patch
# PATCH-FIX-UPSTREAM mm-dismiss-spam-log.patch bnc#674331 binli@opensuse.org -- Dismiss the spam log of Huawei.
Patch2: mm-dismiss-spam-log.patch
BuildRequires: dbus-1-glib-devel
BuildRequires: hicolor-icon-theme
BuildRequires: intltool
BuildRequires: libgudev-1_0-devel
BuildRequires: libtool
BuildRequires: polkit-devel
BuildRequires: ppp-devel
Requires: hicolor-icon-theme
Recommends: usb_modeswitch
Provides: org.freedesktop.ModemManager
BuildRoot: %{_tmppath}/%{name}-%{version}-build
%description
DBus interface for modem handling. Provides a standard abstracted API
(over DBus) to communicate with all sorts of modems (landline, GSM,
CDMA).
%prep
%setup -q
%patch0 -p1
%if 0%{?suse_version} >= 1140
%patch1 -p1
%endif
%patch2 -p1
%build
pppddir=`ls -1d %{_libdir}/pppd/2*`
test -n "$pppddir" || exit 1
%configure \
--disable-static \
--with-pppd-plugin-dir=$pppddir \
--with-polkit
%__make %{?_smp_flags}
%install
%makeinstall
find %{buildroot} -type f -name "*.la" -delete -print
%clean
rm -rf %{buildroot}
%post
%icon_theme_cache_post
%postun
%icon_theme_cache_postun
%files
%defattr(-,root,root)
%doc COPYING AUTHORS README
%{_sbindir}/modem-manager
%config %{_sysconfdir}/dbus-1/system.d/org.freedesktop.ModemManager.conf
%{_libdir}/ModemManager/
%{_datadir}/dbus-1/system-services/org.freedesktop.ModemManager.service
%{_datadir}/icons/hicolor/*/*/modem-manager.png
%{_datadir}/polkit-1/actions/org.freedesktop.modem-manager.policy
%dir /lib/udev
/lib/udev/rules.d/
%dir %{_libdir}/pppd/2.4.5
%{_libdir}/pppd/2.4.5/mm-test-pppd-plugin.so
%changelog