]>
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 | |
16e59ac6 MB |
10 | URL: http://www.gnome.org/projects/NetworkManager/ |
11 | BuildRequires: autoconf >= 2.52 | |
12 | BuildRequires: automake >= 1:1.9 | |
55351b05 MB |
13 | BuildRequires: dbus-glib-devel >= 0.86 |
14 | BuildRequires: gettext-devel | |
16e59ac6 | 15 | BuildRequires: glib2-devel >= 1:2.18.0 |
55351b05 | 16 | BuildRequires: intltool |
16e59ac6 MB |
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} | |
55351b05 | 32 | %{__aclocal} -I m4 |
16e59ac6 MB |
33 | %{__autoconf} |
34 | %{__autoheader} | |
35 | %{__automake} | |
bac17c7e | 36 | %configure \ |
304ba825 ER |
37 | --with-pppd-plugin-dir=%{_libdir}/pppd/%{ppp_version} \ |
38 | --with-polkit \ | |
39 | --enable-more-warnings=yes | |
16e59ac6 MB |
40 | %{__make} |
41 | ||
42 | %install | |
43 | rm -rf $RPM_BUILD_ROOT | |
44 | ||
45 | %{__make} install \ | |
46 | DESTDIR=$RPM_BUILD_ROOT | |
47 | ||
48 | rm -f $RPM_BUILD_ROOT%{_libdir}/ModemManager/*.{a,la} | |
e0ba636c | 49 | rm -f $RPM_BUILD_ROOT%{_libdir}/pppd/*.*.*/*.{a,la} |
16e59ac6 MB |
50 | |
51 | %clean | |
52 | rm -rf $RPM_BUILD_ROOT | |
53 | ||
54 | %files | |
55 | %defattr(644,root,root,755) | |
56 | %doc AUTHORS ChangeLog NEWS README | |
57 | %attr(755,root,root) %{_sbindir}/modem-manager | |
58 | %dir %{_libdir}/ModemManager | |
55351b05 | 59 | %attr(755,root,root) %{_libdir}/ModemManager/libmm-plugin-anydata.so |
16e59ac6 MB |
60 | %attr(755,root,root) %{_libdir}/ModemManager/libmm-plugin-generic.so |
61 | %attr(755,root,root) %{_libdir}/ModemManager/libmm-plugin-gobi.so | |
62 | %attr(755,root,root) %{_libdir}/ModemManager/libmm-plugin-hso.so | |
63 | %attr(755,root,root) %{_libdir}/ModemManager/libmm-plugin-huawei.so | |
64 | %attr(755,root,root) %{_libdir}/ModemManager/libmm-plugin-longcheer.so | |
65 | %attr(755,root,root) %{_libdir}/ModemManager/libmm-plugin-mbm.so | |
66 | %attr(755,root,root) %{_libdir}/ModemManager/libmm-plugin-moto-c.so | |
67 | %attr(755,root,root) %{_libdir}/ModemManager/libmm-plugin-nokia.so | |
68 | %attr(755,root,root) %{_libdir}/ModemManager/libmm-plugin-novatel.so | |
69 | %attr(755,root,root) %{_libdir}/ModemManager/libmm-plugin-option.so | |
70 | %attr(755,root,root) %{_libdir}/ModemManager/libmm-plugin-sierra.so | |
55351b05 | 71 | %attr(755,root,root) %{_libdir}/ModemManager/libmm-plugin-simtech.so |
16e59ac6 | 72 | %attr(755,root,root) %{_libdir}/ModemManager/libmm-plugin-zte.so |
bac17c7e | 73 | %attr(755,root,root) %{_libdir}/pppd/%{ppp_version}/mm-test-pppd-plugin.so |
16e59ac6 MB |
74 | /lib/udev/rules.d/77-mm-ericsson-mbm.rules |
75 | /lib/udev/rules.d/77-mm-longcheer-port-types.rules | |
55351b05 MB |
76 | /lib/udev/rules.d/77-mm-pcmcia-device-blacklist.rules |
77 | /lib/udev/rules.d/77-mm-platform-serial-whitelist.rules | |
78 | /lib/udev/rules.d/77-mm-simtech-port-types.rules | |
79 | /lib/udev/rules.d/77-mm-usb-device-blacklist.rules | |
16e59ac6 MB |
80 | /lib/udev/rules.d/77-mm-zte-port-types.rules |
81 | %config(noreplace) %verify(not md5 mtime size) /etc/dbus-1/system.d/org.freedesktop.ModemManager.conf | |
82 | %{_datadir}/dbus-1/system-services/org.freedesktop.ModemManager.service | |
55351b05 MB |
83 | %{_datadir}/polkit-1/actions/org.freedesktop.modem-manager.policy |
84 | %{_iconsdir}/hicolor/*/apps/*.png |