[packages/ModemManager] Update to 1.0.0

megabajt megabajt at pld-linux.org
Fri Jul 26 11:05:59 CEST 2013


commit c5ed0433a15b900adedffe16de19c52005284e5c
Author: Marcin Banasiak <marcin.banasiak at gmail.com>
Date:   Fri Jul 26 11:05:49 2013 +0200

    Update to 1.0.0

 ModemManager.spec | 146 ++++++++++++++++++++++++++++++++++++++----------------
 1 file changed, 104 insertions(+), 42 deletions(-)
---
diff --git a/ModemManager.spec b/ModemManager.spec
index 6fe35f2..77b8a41 100644
--- a/ModemManager.spec
+++ b/ModemManager.spec
@@ -1,30 +1,37 @@
+#
+# Conditional build:
+%bcond_without	apidocs		# don't build API documentation
+#
 Summary:	Mobile broadband modem management service
 Summary(pl.UTF-8):	Usługa zarządzająca szerokopasmowymi modemami komórkowymi
 Name:		ModemManager
-Version:	0.6.2.0
+Version:	1.0.0
 Release:	1
 License:	GPL v2+
 Group:		Networking
-Source0:	http://ftp.gnome.org/pub/GNOME/sources/ModemManager/0.6/%{name}-%{version}.tar.xz
-# Source0-md5:	29f97defbf9429f648c888a42732a955
-URL:		http://www.gnome.org/projects/NetworkManager/
-BuildRequires:	autoconf >= 2.60
+Source0:	http://www.freedesktop.org/software/ModemManager/%{name}-%{version}.tar.xz
+# Source0-md5:	bb59fda111d8e1038b02ed7e57efe83a
+URL:		http://www.freedesktop.org/wiki/Software/ModemManager
+BuildRequires:	autoconf >= 2.63
 BuildRequires:	automake >= 1:1.9
-BuildRequires:	dbus-glib-devel >= 0.86
 BuildRequires:	gettext-devel
-BuildRequires:	glib2-devel >= 1:2.18
-BuildRequires:	intltool >= 0.35.0
+BuildRequires:	glib2-devel >= 1:2.32.0
+BuildRequires:	gtk-doc
+BuildRequires:	intltool >= 0.40.0
+BuildRequires:	libmbim-devel >= 1.4
+BuildRequires:	libqmi-devel >= 1.4
 BuildRequires:	libtool >= 2:2.2
 BuildRequires:	pkgconfig
-BuildRequires:	polkit-devel >= 0.95
+BuildRequires:	polkit-devel >= 0.97
 BuildRequires:	ppp-plugin-devel >= 3:2.4.5
 BuildRequires:	tar >= 1:1.22
-BuildRequires:	udev-glib-devel
+BuildRequires:	udev-glib-devel >= 147
 BuildRequires:	xz
-Requires:	dbus-glib >= 0.86
-Requires:	glib2 >= 1:2.18
+Requires(post,preun,postun):	systemd-units
+Requires:	%{name}-libs = %{version}-%{release}
+Requires:	glib2 >= 1:2.32.0
 Requires:	hicolor-icon-theme
-Requires:	polkit >= 0.95
+Requires:	polkit >= 0.97
 BuildRoot:	%{tmpdir}/%{name}-%{version}-root-%(id -u -n)
 
 %description
@@ -35,11 +42,25 @@ different modems, including mobile broadband (3G) devices.
 Usługa ModemManager zapewnia spójne API do obsługi wielu różnych
 modemów, w tym szerokopasmowych modemów komórkowych (3G).
 
+%package libs
+Summary:	Library to control and monitor the ModemManager
+Summary(pl.UTF-8):	Biblioteka do sterowania i monitorowania ModemManagera
+Group:		Libraries
+Requires:	glib2 >= 1:2.32.0
+
+%description libs
+This package provides library to control and monitor the ModemManager.
+
+%description libs -l pl.UTF-8
+Ten pakiet dostarcza bibliotekę do sterowania i monitorowania
+ModemManagera.
+
 %package devel
 Summary:	Header file defining ModemManager D-Bus interface
 Summary(pl.UTF-8):	Plik nagłówkowy opisujący interfejs D-Bus ModemManagera
 Group:		Development/Libraries
-# doesn't require base
+Requires:	%{name}-libs = %{version}-%{release}
+Requires:	glib2-devel >= 1:2.32.0
 
 %description devel
 Header file defining ModemManager D-Bus interface.
@@ -47,6 +68,18 @@ Header file defining ModemManager D-Bus interface.
 %description devel -l pl.UTF-8
 Plik nagłówkowy opisujący interfejs D-Bus ModemManagera.
 
+%package apidocs
+Summary:	API documentation for ModemManager
+Summary(pl.UTF-8):	Dokumentacja API ModemManagera
+Group:		Documentation
+Requires:	gtk-doc-common
+
+%description apidocs
+API documentation for ModemManager.
+
+%description apidocs -l pl.UTF-8
+Dokumentacja API biblioteki ModemManagera.
+
 %prep
 %setup -q
 
@@ -57,11 +90,12 @@ Plik nagłówkowy opisujący interfejs D-Bus ModemManagera.
 %{__autoheader}
 %{__automake}
 %configure \
+	%{__enable_disable apidocs gtk-doc} \
 	--disable-silent-rules \
 	--disable-static \
 	--enable-more-warnings \
-	--with-polkit \
-	--with-pppd-plugin-dir=%{_libdir}/pppd/plugins
+	--with-html-dir=%{_gtkdocdir} \
+	--with-polkit
 %{__make}
 
 %install
@@ -70,23 +104,33 @@ rm -rf $RPM_BUILD_ROOT
 %{__make} install \
 	DESTDIR=$RPM_BUILD_ROOT
 
+%{__rm} $RPM_BUILD_ROOT%{_libdir}/*.la
 %{__rm} $RPM_BUILD_ROOT%{_libdir}/%{name}/*.la
-%{__rm} $RPM_BUILD_ROOT%{_libdir}/pppd/plugins/*.la
 
 %clean
 rm -rf $RPM_BUILD_ROOT
 
 %post
 %update_icon_cache hicolor
+%systemd_service_enable ModemManager.service
+
+%preun
+%systemd_preun ModemManager.service
 
 %postun
 %update_icon_cache hicolor
+%systemd_reload
+
+%post libs -p /sbin/ldconfig
+%postun libs -p /sbin/ldconfig
 
 %files
 %defattr(644,root,root,755)
 %doc AUTHORS ChangeLog NEWS README
-%attr(755,root,root) %{_sbindir}/modem-manager
+%attr(755,root,root) %{_bindir}/mmcli
+%attr(755,root,root) %{_sbindir}/ModemManager
 %dir %{_libdir}/ModemManager
+%attr(755,root,root) %{_libdir}/%{name}/libmm-plugin-altair-lte.so
 %attr(755,root,root) %{_libdir}/%{name}/libmm-plugin-anydata.so
 %attr(755,root,root) %{_libdir}/%{name}/libmm-plugin-cinterion.so
 %attr(755,root,root) %{_libdir}/%{name}/libmm-plugin-generic.so
@@ -97,51 +141,69 @@ rm -rf $RPM_BUILD_ROOT
 %attr(755,root,root) %{_libdir}/%{name}/libmm-plugin-linktop.so
 %attr(755,root,root) %{_libdir}/%{name}/libmm-plugin-longcheer.so
 %attr(755,root,root) %{_libdir}/%{name}/libmm-plugin-mbm.so
-%attr(755,root,root) %{_libdir}/%{name}/libmm-plugin-moto-c.so
+%attr(755,root,root) %{_libdir}/%{name}/libmm-plugin-motorola.so
+%attr(755,root,root) %{_libdir}/%{name}/libmm-plugin-nokia-icera.so
 %attr(755,root,root) %{_libdir}/%{name}/libmm-plugin-nokia.so
+%attr(755,root,root) %{_libdir}/%{name}/libmm-plugin-novatel-lte.so
 %attr(755,root,root) %{_libdir}/%{name}/libmm-plugin-novatel.so
 %attr(755,root,root) %{_libdir}/%{name}/libmm-plugin-option.so
+%attr(755,root,root) %{_libdir}/%{name}/libmm-plugin-pantech.so
 %attr(755,root,root) %{_libdir}/%{name}/libmm-plugin-samsung.so
 %attr(755,root,root) %{_libdir}/%{name}/libmm-plugin-sierra.so
 %attr(755,root,root) %{_libdir}/%{name}/libmm-plugin-simtech.so
+%attr(755,root,root) %{_libdir}/%{name}/libmm-plugin-telit.so
 %attr(755,root,root) %{_libdir}/%{name}/libmm-plugin-via.so
 %attr(755,root,root) %{_libdir}/%{name}/libmm-plugin-wavecom.so
 %attr(755,root,root) %{_libdir}/%{name}/libmm-plugin-x22x.so
 %attr(755,root,root) %{_libdir}/%{name}/libmm-plugin-zte.so
-%attr(755,root,root) %{_libdir}/pppd/plugins/mm-test-pppd-plugin.so
 /lib/udev/rules.d/77-mm-ericsson-mbm.rules
+/lib/udev/rules.d/77-mm-huawei-net-port-types.rules
 /lib/udev/rules.d/77-mm-longcheer-port-types.rules
 /lib/udev/rules.d/77-mm-nokia-port-types.rules
 /lib/udev/rules.d/77-mm-pcmcia-device-blacklist.rules
 /lib/udev/rules.d/77-mm-platform-serial-whitelist.rules
 /lib/udev/rules.d/77-mm-simtech-port-types.rules
 /lib/udev/rules.d/77-mm-usb-device-blacklist.rules
+/lib/udev/rules.d/77-mm-usb-serial-adapters-greylist.rules
 /lib/udev/rules.d/77-mm-x22x-port-types.rules
 /lib/udev/rules.d/77-mm-zte-port-types.rules
 /lib/udev/rules.d/80-mm-candidate.rules
-%config(noreplace) %verify(not md5 mtime size) /etc/dbus-1/system.d/org.freedesktop.ModemManager.conf
-%{_datadir}/dbus-1/interfaces/mm-mobile-error.xml
-%{_datadir}/dbus-1/interfaces/mm-modem-connect-error.xml
-%{_datadir}/dbus-1/interfaces/mm-modem-error.xml
-%{_datadir}/dbus-1/interfaces/mm-serial-error.xml
-%{_datadir}/dbus-1/interfaces/org.freedesktop.ModemManager.Modem.Cdma.xml
-%{_datadir}/dbus-1/interfaces/org.freedesktop.ModemManager.Modem.Firmware.xml
-%{_datadir}/dbus-1/interfaces/org.freedesktop.ModemManager.Modem.Gsm.Card.xml
-%{_datadir}/dbus-1/interfaces/org.freedesktop.ModemManager.Modem.Gsm.Contacts.xml
-%{_datadir}/dbus-1/interfaces/org.freedesktop.ModemManager.Modem.Gsm.Hso.xml
-%{_datadir}/dbus-1/interfaces/org.freedesktop.ModemManager.Modem.Gsm.Network.xml
-%{_datadir}/dbus-1/interfaces/org.freedesktop.ModemManager.Modem.Gsm.SMS.xml
-%{_datadir}/dbus-1/interfaces/org.freedesktop.ModemManager.Modem.Gsm.Ussd.xml
-%{_datadir}/dbus-1/interfaces/org.freedesktop.ModemManager.Modem.Gsm.xml
-%{_datadir}/dbus-1/interfaces/org.freedesktop.ModemManager.Modem.Location.xml
-%{_datadir}/dbus-1/interfaces/org.freedesktop.ModemManager.Modem.Simple.xml
-%{_datadir}/dbus-1/interfaces/org.freedesktop.ModemManager.Modem.Time.xml
-%{_datadir}/dbus-1/interfaces/org.freedesktop.ModemManager.Modem.xml
-%{_datadir}/dbus-1/interfaces/org.freedesktop.ModemManager.xml
-%{_datadir}/dbus-1/system-services/org.freedesktop.ModemManager.service
-%{_datadir}/polkit-1/actions/org.freedesktop.modem-manager.policy
+%config(noreplace) %verify(not md5 mtime size) /etc/dbus-1/system.d/org.freedesktop.ModemManager1.conf
+%{_datadir}/dbus-1/interfaces/org.freedesktop.ModemManager1.Bearer.xml
+%{_datadir}/dbus-1/interfaces/org.freedesktop.ModemManager1.Modem.Firmware.xml
+%{_datadir}/dbus-1/interfaces/org.freedesktop.ModemManager1.Modem.Location.xml
+%{_datadir}/dbus-1/interfaces/org.freedesktop.ModemManager1.Modem.Messaging.xml
+%{_datadir}/dbus-1/interfaces/org.freedesktop.ModemManager1.Modem.Modem3gpp.Ussd.xml
+%{_datadir}/dbus-1/interfaces/org.freedesktop.ModemManager1.Modem.Modem3gpp.xml
+%{_datadir}/dbus-1/interfaces/org.freedesktop.ModemManager1.Modem.ModemCdma.xml
+%{_datadir}/dbus-1/interfaces/org.freedesktop.ModemManager1.Modem.Simple.xml
+%{_datadir}/dbus-1/interfaces/org.freedesktop.ModemManager1.Modem.Time.xml
+%{_datadir}/dbus-1/interfaces/org.freedesktop.ModemManager1.Modem.xml
+%{_datadir}/dbus-1/interfaces/org.freedesktop.ModemManager1.Sim.xml
+%{_datadir}/dbus-1/interfaces/org.freedesktop.ModemManager1.Sms.xml
+%{_datadir}/dbus-1/interfaces/org.freedesktop.ModemManager1.xml
+%{_datadir}/dbus-1/interfaces/wip-org.freedesktop.ModemManager1.Modem.Contacts.xml
+%{_datadir}/dbus-1/system-services/org.freedesktop.ModemManager1.service
+%{_datadir}/polkit-1/actions/org.freedesktop.ModemManager1.policy
 %{_iconsdir}/hicolor/*/apps/*.png
+%{_mandir}/man8/ModemManager.8*
+%{_mandir}/man8/mmcli.8*
+%{systemdunitdir}/ModemManager.service
+
+%files libs
+%defattr(644,root,root,755)
+%attr(755,root,root) %{_libdir}/libmm-glib.so.*.*.*
+%attr(755,root,root) %ghost %{_libdir}/libmm-glib.so.0
 
 %files devel
 %defattr(644,root,root,755)
-%{_includedir}/mm
+%attr(755,root,root) %{_libdir}/libmm-glib.so
+%{_includedir}/ModemManager
+%{_includedir}/libmm-glib
+%{_pkgconfigdir}/ModemManager.pc
+%{_pkgconfigdir}/mm-glib.pc
+
+%files apidocs
+%defattr(644,root,root,755)
+%{_gtkdocdir}/ModemManager
+%{_gtkdocdir}/libmm-glib
================================================================

---- gitweb:

http://git.pld-linux.org/gitweb.cgi/packages/ModemManager.git/commitdiff/c5ed0433a15b900adedffe16de19c52005284e5c



More information about the pld-cvs-commit mailing list