File ModemManager.spec of Package ModemManager
#
# spec file for package ModemManager
#
# Copyright (c) 2012 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.5.2.0
Release: 0
Summary: DBus interface for modem handling
License: LGPL-2.1+
Group: Productivity/Networking/System
Url: http://cgit.freedesktop.org/ModemManager/ModemManager
Source0: http://download.gnome.org/sources/ModemManager/0.5/%{name}-%{version}.tar.xz
BuildRequires: dbus-1-glib-devel
BuildRequires: hicolor-icon-theme
BuildRequires: intltool
BuildRequires: libgudev-1_0-devel
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).
%package devel
Summary: DBus interface for modem handling -- Development Files
Group: Development/Libraries/C and C++
Requires: %{name} = %{version}
%description devel
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
%build
pppddir=`ls -1d %{_libdir}/pppd/2*`
test -n "$pppddir" || exit 1
%configure \
--disable-static \
--with-pppd-plugin-dir=$pppddir \
--with-polkit
%__make %{?_smp_mflags}
%install
%makeinstall
find %{buildroot} -type f -name "*.la" -delete -print
%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/interfaces/*.xml
%{_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
%files devel
%defattr(-,root,root)
%{_includedir}/mm/
%changelog