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