]>
Commit | Line | Data |
---|---|---|
bac17c7e MB |
1 | # |
2 | %define ppp_version 2.4.5 | |
3 | # | |
16e59ac6 MB |
4 | Summary: Mobile broadband modem management service |
5 | Name: ModemManager | |
6 | Version: 0.3 | |
bac17c7e | 7 | Release: 3 |
16e59ac6 MB |
8 | License: GPL v2 |
9 | Group: Networking | |
10 | Source0: http://ftp.gnome.org/pub/GNOME/sources/ModemManager/0.3/%{name}-%{version}.tar.bz2 | |
11 | # Source0-md5: c617210a9e388841b8aa782cdd9b48a0 | |
12 | URL: http://www.gnome.org/projects/NetworkManager/ | |
13 | BuildRequires: autoconf >= 2.52 | |
14 | BuildRequires: automake >= 1:1.9 | |
15 | BuildRequires: dbus-glib-devel >= 0.75 | |
16 | BuildRequires: glib2-devel >= 1:2.18.0 | |
17 | BuildRequires: libtool | |
18 | BuildRequires: pkgconfig | |
bac17c7e | 19 | BuildRequires: ppp-plugin-devel >= 3:%{ppp_version} |
16e59ac6 MB |
20 | BuildRequires: udev-glib-devel |
21 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) | |
22 | ||
23 | %description | |
24 | The ModemManager service provides a consistent API to operate many | |
25 | different modems, including mobile broadband (3G) devices. | |
26 | ||
27 | %prep | |
28 | %setup -q | |
29 | ||
30 | %build | |
31 | %{__libtoolize} | |
32 | %{__aclocal} | |
33 | %{__autoconf} | |
34 | %{__autoheader} | |
35 | %{__automake} | |
bac17c7e MB |
36 | %configure \ |
37 | --with-pppd-plugin-dir=%{_libdir}/pppd/%{ppp_version} | |
16e59ac6 MB |
38 | %{__make} |
39 | ||
40 | %install | |
41 | rm -rf $RPM_BUILD_ROOT | |
42 | ||
43 | %{__make} install \ | |
44 | DESTDIR=$RPM_BUILD_ROOT | |
45 | ||
46 | rm -f $RPM_BUILD_ROOT%{_libdir}/ModemManager/*.{a,la} | |
e0ba636c | 47 | rm -f $RPM_BUILD_ROOT%{_libdir}/pppd/*.*.*/*.{a,la} |
16e59ac6 MB |
48 | |
49 | %clean | |
50 | rm -rf $RPM_BUILD_ROOT | |
51 | ||
52 | %files | |
53 | %defattr(644,root,root,755) | |
54 | %doc AUTHORS ChangeLog NEWS README | |
55 | %attr(755,root,root) %{_sbindir}/modem-manager | |
56 | %dir %{_libdir}/ModemManager | |
57 | %attr(755,root,root) %{_libdir}/ModemManager/libmm-plugin-generic.so | |
58 | %attr(755,root,root) %{_libdir}/ModemManager/libmm-plugin-gobi.so | |
59 | %attr(755,root,root) %{_libdir}/ModemManager/libmm-plugin-hso.so | |
60 | %attr(755,root,root) %{_libdir}/ModemManager/libmm-plugin-huawei.so | |
61 | %attr(755,root,root) %{_libdir}/ModemManager/libmm-plugin-longcheer.so | |
62 | %attr(755,root,root) %{_libdir}/ModemManager/libmm-plugin-mbm.so | |
63 | %attr(755,root,root) %{_libdir}/ModemManager/libmm-plugin-moto-c.so | |
64 | %attr(755,root,root) %{_libdir}/ModemManager/libmm-plugin-nokia.so | |
65 | %attr(755,root,root) %{_libdir}/ModemManager/libmm-plugin-novatel.so | |
66 | %attr(755,root,root) %{_libdir}/ModemManager/libmm-plugin-option.so | |
67 | %attr(755,root,root) %{_libdir}/ModemManager/libmm-plugin-sierra.so | |
68 | %attr(755,root,root) %{_libdir}/ModemManager/libmm-plugin-zte.so | |
bac17c7e | 69 | %attr(755,root,root) %{_libdir}/pppd/%{ppp_version}/mm-test-pppd-plugin.so |
16e59ac6 MB |
70 | /lib/udev/rules.d/77-mm-ericsson-mbm.rules |
71 | /lib/udev/rules.d/77-mm-longcheer-port-types.rules | |
72 | /lib/udev/rules.d/77-mm-zte-port-types.rules | |
73 | %config(noreplace) %verify(not md5 mtime size) /etc/dbus-1/system.d/org.freedesktop.ModemManager.conf | |
74 | %{_datadir}/dbus-1/system-services/org.freedesktop.ModemManager.service |