]>
Commit | Line | Data |
---|---|---|
c5ed0433 MB |
1 | # |
2 | # Conditional build: | |
3 | %bcond_without apidocs # don't build API documentation | |
fc233bed | 4 | |
16e59ac6 | 5 | Summary: Mobile broadband modem management service |
30689186 | 6 | Summary(pl.UTF-8): Usługa zarządzająca szerokopasmowymi modemami komórkowymi |
16e59ac6 | 7 | Name: ModemManager |
d73af415 | 8 | Version: 1.4.12 |
68d206c8 | 9 | Release: 2 |
30689186 | 10 | License: GPL v2+ |
16e59ac6 | 11 | Group: Networking |
c5ed0433 | 12 | Source0: http://www.freedesktop.org/software/ModemManager/%{name}-%{version}.tar.xz |
d73af415 | 13 | # Source0-md5: 66cc7266b15525cb366253e6639fc564 |
c5ed0433 MB |
14 | URL: http://www.freedesktop.org/wiki/Software/ModemManager |
15 | BuildRequires: autoconf >= 2.63 | |
16e59ac6 | 16 | BuildRequires: automake >= 1:1.9 |
c72d540f | 17 | BuildRequires: gettext-tools >= 0.17 |
c5ed0433 | 18 | BuildRequires: glib2-devel >= 1:2.32.0 |
1870b4f1 | 19 | BuildRequires: gobject-introspection-devel >= 0.9.6 |
7ba8154b | 20 | BuildRequires: gtk-doc >= 1.0 |
c5ed0433 | 21 | BuildRequires: intltool >= 0.40.0 |
7ba8154b | 22 | BuildRequires: libmbim-devel >= 1.10 |
8d382e84 | 23 | BuildRequires: libqmi-devel >= 1.12.4 |
30689186 | 24 | BuildRequires: libtool >= 2:2.2 |
16e59ac6 | 25 | BuildRequires: pkgconfig |
c5ed0433 | 26 | BuildRequires: polkit-devel >= 0.97 |
db905a16 | 27 | BuildRequires: ppp-plugin-devel >= 3:2.4.5 |
9ede919e | 28 | BuildRequires: tar >= 1:1.22 |
e00e2a46 | 29 | BuildRequires: udev-glib-devel >= 1:147 |
1870b4f1 | 30 | BuildRequires: vala >= 2:0.18.0 |
9ede919e | 31 | BuildRequires: xz |
c5ed0433 MB |
32 | Requires(post,preun,postun): systemd-units |
33 | Requires: %{name}-libs = %{version}-%{release} | |
34 | Requires: glib2 >= 1:2.32.0 | |
9ede919e | 35 | Requires: hicolor-icon-theme |
7ba8154b | 36 | Requires: libmbim >= 1.10 |
8d382e84 | 37 | Requires: libqmi >= 1.12.4 |
c5ed0433 | 38 | Requires: polkit >= 0.97 |
e00e2a46 | 39 | Requires: udev-glib >= 1:147 |
16e59ac6 MB |
40 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) |
41 | ||
42 | %description | |
43 | The ModemManager service provides a consistent API to operate many | |
44 | different modems, including mobile broadband (3G) devices. | |
45 | ||
30689186 JB |
46 | %description -l pl.UTF-8 |
47 | Usługa ModemManager zapewnia spójne API do obsługi wielu różnych | |
48 | modemów, w tym szerokopasmowych modemów komórkowych (3G). | |
49 | ||
c5ed0433 MB |
50 | %package libs |
51 | Summary: Library to control and monitor the ModemManager | |
52 | Summary(pl.UTF-8): Biblioteka do sterowania i monitorowania ModemManagera | |
53 | Group: Libraries | |
54 | Requires: glib2 >= 1:2.32.0 | |
55 | ||
56 | %description libs | |
57 | This package provides library to control and monitor the ModemManager. | |
58 | ||
59 | %description libs -l pl.UTF-8 | |
60 | Ten pakiet dostarcza bibliotekę do sterowania i monitorowania | |
61 | ModemManagera. | |
62 | ||
30689186 JB |
63 | %package devel |
64 | Summary: Header file defining ModemManager D-Bus interface | |
65 | Summary(pl.UTF-8): Plik nagłówkowy opisujący interfejs D-Bus ModemManagera | |
66 | Group: Development/Libraries | |
c5ed0433 MB |
67 | Requires: %{name}-libs = %{version}-%{release} |
68 | Requires: glib2-devel >= 1:2.32.0 | |
30689186 JB |
69 | |
70 | %description devel | |
71 | Header file defining ModemManager D-Bus interface. | |
72 | ||
73 | %description devel -l pl.UTF-8 | |
74 | Plik nagłówkowy opisujący interfejs D-Bus ModemManagera. | |
75 | ||
c5ed0433 MB |
76 | %package apidocs |
77 | Summary: API documentation for ModemManager | |
78 | Summary(pl.UTF-8): Dokumentacja API ModemManagera | |
79 | Group: Documentation | |
80 | Requires: gtk-doc-common | |
fc233bed ER |
81 | %if "%{_rpmversion}" >= "5" |
82 | BuildArch: noarch | |
83 | %endif | |
c5ed0433 MB |
84 | |
85 | %description apidocs | |
86 | API documentation for ModemManager. | |
87 | ||
88 | %description apidocs -l pl.UTF-8 | |
89 | Dokumentacja API biblioteki ModemManagera. | |
90 | ||
1870b4f1 | 91 | %package -n vala-libmm-glib |
fc233bed ER |
92 | Summary: libmm-glib API for Vala language |
93 | Summary(pl.UTF-8): API libmm-glib dla języka Vala | |
94 | Group: Development/Libraries | |
95 | Requires: %{name}-devel = %{version}-%{release} | |
96 | Requires: vala >= 2:0.18.0 | |
68d206c8 ER |
97 | %if "%{_rpmversion}" >= "5" |
98 | BuildArch: noarch | |
99 | %endif | |
1870b4f1 JP |
100 | |
101 | %description -n vala-libmm-glib | |
102 | libmm-glib API for Vala language. | |
103 | ||
104 | %description -n vala-libmm-glib -l pl.UTF-8 | |
105 | API libmm-glib dla języka Vala. | |
106 | ||
16e59ac6 MB |
107 | %prep |
108 | %setup -q | |
109 | ||
110 | %build | |
111 | %{__libtoolize} | |
55351b05 | 112 | %{__aclocal} -I m4 |
16e59ac6 MB |
113 | %{__autoconf} |
114 | %{__autoheader} | |
115 | %{__automake} | |
bac17c7e | 116 | %configure \ |
c5ed0433 | 117 | %{__enable_disable apidocs gtk-doc} \ |
30689186 JB |
118 | --disable-silent-rules \ |
119 | --disable-static \ | |
120 | --enable-more-warnings \ | |
1870b4f1 | 121 | --enable-vala \ |
c5ed0433 MB |
122 | --with-html-dir=%{_gtkdocdir} \ |
123 | --with-polkit | |
16e59ac6 MB |
124 | %{__make} |
125 | ||
126 | %install | |
127 | rm -rf $RPM_BUILD_ROOT | |
128 | ||
129 | %{__make} install \ | |
130 | DESTDIR=$RPM_BUILD_ROOT | |
131 | ||
c5ed0433 | 132 | %{__rm} $RPM_BUILD_ROOT%{_libdir}/*.la |
30689186 | 133 | %{__rm} $RPM_BUILD_ROOT%{_libdir}/%{name}/*.la |
16e59ac6 | 134 | |
7ba8154b JB |
135 | %find_lang %{name} |
136 | ||
16e59ac6 MB |
137 | %clean |
138 | rm -rf $RPM_BUILD_ROOT | |
139 | ||
9ede919e MB |
140 | %post |
141 | %update_icon_cache hicolor | |
c5ed0433 MB |
142 | %systemd_service_enable ModemManager.service |
143 | ||
144 | %preun | |
145 | %systemd_preun ModemManager.service | |
9ede919e MB |
146 | |
147 | %postun | |
148 | %update_icon_cache hicolor | |
c5ed0433 MB |
149 | %systemd_reload |
150 | ||
7ba8154b JB |
151 | %post libs -p /sbin/ldconfig |
152 | %postun libs -p /sbin/ldconfig | |
9ede919e | 153 | |
7ba8154b | 154 | %files -f %{name}.lang |
16e59ac6 MB |
155 | %defattr(644,root,root,755) |
156 | %doc AUTHORS ChangeLog NEWS README | |
c5ed0433 MB |
157 | %attr(755,root,root) %{_bindir}/mmcli |
158 | %attr(755,root,root) %{_sbindir}/ModemManager | |
16e59ac6 | 159 | %dir %{_libdir}/ModemManager |
c5ed0433 | 160 | %attr(755,root,root) %{_libdir}/%{name}/libmm-plugin-altair-lte.so |
4749311e | 161 | %attr(755,root,root) %{_libdir}/%{name}/libmm-plugin-anydata.so |
618d8cda | 162 | %attr(755,root,root) %{_libdir}/%{name}/libmm-plugin-cinterion.so |
4749311e ER |
163 | %attr(755,root,root) %{_libdir}/%{name}/libmm-plugin-generic.so |
164 | %attr(755,root,root) %{_libdir}/%{name}/libmm-plugin-gobi.so | |
165 | %attr(755,root,root) %{_libdir}/%{name}/libmm-plugin-hso.so | |
166 | %attr(755,root,root) %{_libdir}/%{name}/libmm-plugin-huawei.so | |
618d8cda | 167 | %attr(755,root,root) %{_libdir}/%{name}/libmm-plugin-iridium.so |
b632cd74 | 168 | %attr(755,root,root) %{_libdir}/%{name}/libmm-plugin-linktop.so |
4749311e ER |
169 | %attr(755,root,root) %{_libdir}/%{name}/libmm-plugin-longcheer.so |
170 | %attr(755,root,root) %{_libdir}/%{name}/libmm-plugin-mbm.so | |
1870b4f1 | 171 | %attr(755,root,root) %{_libdir}/%{name}/libmm-plugin-mtk.so |
c5ed0433 MB |
172 | %attr(755,root,root) %{_libdir}/%{name}/libmm-plugin-motorola.so |
173 | %attr(755,root,root) %{_libdir}/%{name}/libmm-plugin-nokia-icera.so | |
4749311e | 174 | %attr(755,root,root) %{_libdir}/%{name}/libmm-plugin-nokia.so |
c5ed0433 | 175 | %attr(755,root,root) %{_libdir}/%{name}/libmm-plugin-novatel-lte.so |
4749311e ER |
176 | %attr(755,root,root) %{_libdir}/%{name}/libmm-plugin-novatel.so |
177 | %attr(755,root,root) %{_libdir}/%{name}/libmm-plugin-option.so | |
c5ed0433 | 178 | %attr(755,root,root) %{_libdir}/%{name}/libmm-plugin-pantech.so |
b632cd74 | 179 | %attr(755,root,root) %{_libdir}/%{name}/libmm-plugin-samsung.so |
4749311e ER |
180 | %attr(755,root,root) %{_libdir}/%{name}/libmm-plugin-sierra.so |
181 | %attr(755,root,root) %{_libdir}/%{name}/libmm-plugin-simtech.so | |
c5ed0433 | 182 | %attr(755,root,root) %{_libdir}/%{name}/libmm-plugin-telit.so |
6543604b | 183 | %attr(755,root,root) %{_libdir}/%{name}/libmm-plugin-via.so |
b632cd74 JP |
184 | %attr(755,root,root) %{_libdir}/%{name}/libmm-plugin-wavecom.so |
185 | %attr(755,root,root) %{_libdir}/%{name}/libmm-plugin-x22x.so | |
4749311e | 186 | %attr(755,root,root) %{_libdir}/%{name}/libmm-plugin-zte.so |
7ba8154b | 187 | /lib/udev/rules.d/77-mm-cinterion-port-types.rules |
16e59ac6 | 188 | /lib/udev/rules.d/77-mm-ericsson-mbm.rules |
c5ed0433 | 189 | /lib/udev/rules.d/77-mm-huawei-net-port-types.rules |
16e59ac6 | 190 | /lib/udev/rules.d/77-mm-longcheer-port-types.rules |
1870b4f1 | 191 | /lib/udev/rules.d/77-mm-mtk-port-types.rules |
9ede919e | 192 | /lib/udev/rules.d/77-mm-nokia-port-types.rules |
55351b05 MB |
193 | /lib/udev/rules.d/77-mm-pcmcia-device-blacklist.rules |
194 | /lib/udev/rules.d/77-mm-platform-serial-whitelist.rules | |
195 | /lib/udev/rules.d/77-mm-simtech-port-types.rules | |
1870b4f1 | 196 | /lib/udev/rules.d/77-mm-telit-port-types.rules |
55351b05 | 197 | /lib/udev/rules.d/77-mm-usb-device-blacklist.rules |
c5ed0433 | 198 | /lib/udev/rules.d/77-mm-usb-serial-adapters-greylist.rules |
b632cd74 | 199 | /lib/udev/rules.d/77-mm-x22x-port-types.rules |
16e59ac6 | 200 | /lib/udev/rules.d/77-mm-zte-port-types.rules |
b632cd74 | 201 | /lib/udev/rules.d/80-mm-candidate.rules |
c5ed0433 MB |
202 | %config(noreplace) %verify(not md5 mtime size) /etc/dbus-1/system.d/org.freedesktop.ModemManager1.conf |
203 | %{_datadir}/dbus-1/interfaces/org.freedesktop.ModemManager1.Bearer.xml | |
204 | %{_datadir}/dbus-1/interfaces/org.freedesktop.ModemManager1.Modem.Firmware.xml | |
205 | %{_datadir}/dbus-1/interfaces/org.freedesktop.ModemManager1.Modem.Location.xml | |
206 | %{_datadir}/dbus-1/interfaces/org.freedesktop.ModemManager1.Modem.Messaging.xml | |
207 | %{_datadir}/dbus-1/interfaces/org.freedesktop.ModemManager1.Modem.Modem3gpp.Ussd.xml | |
208 | %{_datadir}/dbus-1/interfaces/org.freedesktop.ModemManager1.Modem.Modem3gpp.xml | |
209 | %{_datadir}/dbus-1/interfaces/org.freedesktop.ModemManager1.Modem.ModemCdma.xml | |
1870b4f1 | 210 | %{_datadir}/dbus-1/interfaces/org.freedesktop.ModemManager1.Modem.Oma.xml |
c5ed0433 | 211 | %{_datadir}/dbus-1/interfaces/org.freedesktop.ModemManager1.Modem.Simple.xml |
1870b4f1 | 212 | %{_datadir}/dbus-1/interfaces/org.freedesktop.ModemManager1.Modem.Signal.xml |
c5ed0433 MB |
213 | %{_datadir}/dbus-1/interfaces/org.freedesktop.ModemManager1.Modem.Time.xml |
214 | %{_datadir}/dbus-1/interfaces/org.freedesktop.ModemManager1.Modem.xml | |
215 | %{_datadir}/dbus-1/interfaces/org.freedesktop.ModemManager1.Sim.xml | |
216 | %{_datadir}/dbus-1/interfaces/org.freedesktop.ModemManager1.Sms.xml | |
217 | %{_datadir}/dbus-1/interfaces/org.freedesktop.ModemManager1.xml | |
218 | %{_datadir}/dbus-1/interfaces/wip-org.freedesktop.ModemManager1.Modem.Contacts.xml | |
219 | %{_datadir}/dbus-1/system-services/org.freedesktop.ModemManager1.service | |
220 | %{_datadir}/polkit-1/actions/org.freedesktop.ModemManager1.policy | |
55351b05 | 221 | %{_iconsdir}/hicolor/*/apps/*.png |
c5ed0433 MB |
222 | %{_mandir}/man8/ModemManager.8* |
223 | %{_mandir}/man8/mmcli.8* | |
224 | %{systemdunitdir}/ModemManager.service | |
225 | ||
226 | %files libs | |
227 | %defattr(644,root,root,755) | |
228 | %attr(755,root,root) %{_libdir}/libmm-glib.so.*.*.* | |
229 | %attr(755,root,root) %ghost %{_libdir}/libmm-glib.so.0 | |
1870b4f1 | 230 | %{_libdir}/girepository-1.0/ModemManager-1.0.typelib |
30689186 JB |
231 | |
232 | %files devel | |
233 | %defattr(644,root,root,755) | |
c5ed0433 MB |
234 | %attr(755,root,root) %{_libdir}/libmm-glib.so |
235 | %{_includedir}/ModemManager | |
236 | %{_includedir}/libmm-glib | |
237 | %{_pkgconfigdir}/ModemManager.pc | |
238 | %{_pkgconfigdir}/mm-glib.pc | |
1870b4f1 | 239 | %{_datadir}/gir-1.0/ModemManager-1.0.gir |
c5ed0433 MB |
240 | |
241 | %files apidocs | |
242 | %defattr(644,root,root,755) | |
243 | %{_gtkdocdir}/ModemManager | |
244 | %{_gtkdocdir}/libmm-glib | |
1870b4f1 JP |
245 | |
246 | %files -n vala-libmm-glib | |
247 | %defattr(644,root,root,755) | |
248 | %{_datadir}/vala/vapi/libmm-glib.deps | |
249 | %{_datadir}/vala/vapi/libmm-glib.vapi |