]>
Commit | Line | Data |
---|---|---|
1 | # | |
2 | # Conditional build: | |
3 | %bcond_without apidocs # don't build API documentation | |
4 | ||
5 | Summary: Mobile broadband modem management service | |
6 | Summary(pl.UTF-8): Usługa zarządzająca szerokopasmowymi modemami komórkowymi | |
7 | Name: ModemManager | |
8 | Version: 1.14.6 | |
9 | Release: 1 | |
10 | License: GPL v2+ | |
11 | Group: Networking | |
12 | Source0: https://www.freedesktop.org/software/ModemManager/%{name}-%{version}.tar.xz | |
13 | # Source0-md5: fdeef6399ab8937e5e0e09740d4a6585 | |
14 | URL: https://www.freedesktop.org/wiki/Software/ModemManager | |
15 | BuildRequires: autoconf >= 2.63 | |
16 | BuildRequires: autoconf-archive >= 2017.03.21 | |
17 | BuildRequires: automake >= 1:1.11.2 | |
18 | BuildRequires: gettext-tools >= 0.19.8 | |
19 | BuildRequires: glib2-devel >= 1:2.48.0 | |
20 | %if %(locale -a | grep -q '^C\.utf8$'; echo $?) | |
21 | BuildRequires: glibc-localedb-all | |
22 | %endif | |
23 | BuildRequires: gobject-introspection-devel >= 0.9.6 | |
24 | BuildRequires: gtk-doc >= 1.0 | |
25 | BuildRequires: libmbim-devel >= 1.24.0 | |
26 | BuildRequires: libqmi-devel >= 1.26.0 | |
27 | BuildRequires: libtool >= 2:2.2 | |
28 | BuildRequires: pkgconfig | |
29 | BuildRequires: polkit-devel >= 0.97 | |
30 | BuildRequires: ppp-plugin-devel >= 3:2.4.5 | |
31 | BuildRequires: rpmbuild(macros) >= 1.752 | |
32 | BuildRequires: systemd-devel >= 1:209 | |
33 | BuildRequires: tar >= 1:1.22 | |
34 | BuildRequires: udev-glib-devel >= 1:147 | |
35 | BuildRequires: vala >= 2:0.18.0 | |
36 | BuildRequires: xz | |
37 | Requires(post,preun,postun): systemd-units | |
38 | Requires: %{name}-libs = %{version}-%{release} | |
39 | Requires: glib2 >= 1:2.48.0 | |
40 | Requires: hicolor-icon-theme | |
41 | Requires: libmbim >= 1.24.0 | |
42 | Requires: libqmi >= 1.26.0 | |
43 | Requires: polkit >= 0.97 | |
44 | Requires: udev-glib >= 1:147 | |
45 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) | |
46 | ||
47 | %description | |
48 | The ModemManager service provides a consistent API to operate many | |
49 | different modems, including mobile broadband (3G) devices. | |
50 | ||
51 | %description -l pl.UTF-8 | |
52 | Usługa ModemManager zapewnia spójne API do obsługi wielu różnych | |
53 | modemów, w tym szerokopasmowych modemów komórkowych (3G). | |
54 | ||
55 | %package -n bash-completion-ModemManager | |
56 | Summary: Bash completion for ModemManager commands | |
57 | Summary(pl.UTF-8): Dopełnianie składni poleceń ModemManagera | |
58 | Group: Applications/Shells | |
59 | Requires: %{name} = %{version}-%{release} | |
60 | Requires: bash-completion >= 2.0 | |
61 | %{?noarchpackage} | |
62 | ||
63 | %description -n bash-completion-ModemManager | |
64 | Bash completion for ModemManager commands (mmcli). | |
65 | ||
66 | %description -n bash-completion-ModemManager -l pl.UTF-8 | |
67 | Dopełnianie składni poleceń ModemManagera (mmcli). | |
68 | ||
69 | %package libs | |
70 | Summary: Library to control and monitor the ModemManager | |
71 | Summary(pl.UTF-8): Biblioteka do sterowania i monitorowania ModemManagera | |
72 | Group: Libraries | |
73 | Requires: glib2 >= 1:2.48.0 | |
74 | ||
75 | %description libs | |
76 | This package provides library to control and monitor the ModemManager. | |
77 | ||
78 | %description libs -l pl.UTF-8 | |
79 | Ten pakiet dostarcza bibliotekę do sterowania i monitorowania | |
80 | ModemManagera. | |
81 | ||
82 | %package devel | |
83 | Summary: Header file defining ModemManager D-Bus interface | |
84 | Summary(pl.UTF-8): Plik nagłówkowy opisujący interfejs D-Bus ModemManagera | |
85 | Group: Development/Libraries | |
86 | Requires: %{name}-libs = %{version}-%{release} | |
87 | Requires: glib2-devel >= 1:2.48.0 | |
88 | ||
89 | %description devel | |
90 | Header file defining ModemManager D-Bus interface. | |
91 | ||
92 | %description devel -l pl.UTF-8 | |
93 | Plik nagłówkowy opisujący interfejs D-Bus ModemManagera. | |
94 | ||
95 | %package apidocs | |
96 | Summary: API documentation for ModemManager | |
97 | Summary(pl.UTF-8): Dokumentacja API ModemManagera | |
98 | Group: Documentation | |
99 | Requires: gtk-doc-common | |
100 | %{?noarchpackage} | |
101 | ||
102 | %description apidocs | |
103 | API documentation for ModemManager. | |
104 | ||
105 | %description apidocs -l pl.UTF-8 | |
106 | Dokumentacja API biblioteki ModemManagera. | |
107 | ||
108 | %package -n vala-libmm-glib | |
109 | Summary: libmm-glib API for Vala language | |
110 | Summary(pl.UTF-8): API libmm-glib dla języka Vala | |
111 | Group: Development/Libraries | |
112 | Requires: %{name}-devel = %{version}-%{release} | |
113 | Requires: vala >= 2:0.18.0 | |
114 | %{?noarchpackage} | |
115 | ||
116 | %description -n vala-libmm-glib | |
117 | libmm-glib API for Vala language. | |
118 | ||
119 | %description -n vala-libmm-glib -l pl.UTF-8 | |
120 | API libmm-glib dla języka Vala. | |
121 | ||
122 | %prep | |
123 | %setup -q | |
124 | ||
125 | %build | |
126 | %{__libtoolize} | |
127 | %{__aclocal} -I m4 | |
128 | %{__autoconf} | |
129 | %{__autoheader} | |
130 | %{__automake} | |
131 | %configure \ | |
132 | %{__enable_disable apidocs gtk-doc} \ | |
133 | --disable-silent-rules \ | |
134 | --disable-static \ | |
135 | --enable-more-warnings \ | |
136 | --enable-vala \ | |
137 | --with-html-dir=%{_gtkdocdir} \ | |
138 | --with-polkit \ | |
139 | --with-suspend-resume=systemd | |
140 | ||
141 | LC_ALL=C.UTF-8 \ | |
142 | %{__make} | |
143 | ||
144 | %install | |
145 | rm -rf $RPM_BUILD_ROOT | |
146 | ||
147 | %{__make} install \ | |
148 | DESTDIR=$RPM_BUILD_ROOT | |
149 | ||
150 | %{__rm} $RPM_BUILD_ROOT%{_libdir}/*.la | |
151 | %{__rm} $RPM_BUILD_ROOT%{_libdir}/%{name}/*.la | |
152 | ||
153 | %find_lang %{name} | |
154 | ||
155 | %clean | |
156 | rm -rf $RPM_BUILD_ROOT | |
157 | ||
158 | %post | |
159 | %update_icon_cache hicolor | |
160 | %systemd_service_enable ModemManager.service | |
161 | ||
162 | %preun | |
163 | %systemd_preun ModemManager.service | |
164 | ||
165 | %postun | |
166 | %update_icon_cache hicolor | |
167 | %systemd_reload | |
168 | ||
169 | %post libs -p /sbin/ldconfig | |
170 | %postun libs -p /sbin/ldconfig | |
171 | ||
172 | %files -f %{name}.lang | |
173 | %defattr(644,root,root,755) | |
174 | %doc AUTHORS ChangeLog NEWS README | |
175 | %attr(755,root,root) %{_bindir}/mmcli | |
176 | %attr(755,root,root) %{_sbindir}/ModemManager | |
177 | %dir %{_libdir}/ModemManager | |
178 | %attr(755,root,root) %{_libdir}/%{name}/libmm-plugin-altair-lte.so | |
179 | %attr(755,root,root) %{_libdir}/%{name}/libmm-plugin-anydata.so | |
180 | %attr(755,root,root) %{_libdir}/%{name}/libmm-plugin-broadmobi.so | |
181 | %attr(755,root,root) %{_libdir}/%{name}/libmm-plugin-cinterion.so | |
182 | %attr(755,root,root) %{_libdir}/%{name}/libmm-plugin-dell.so | |
183 | %attr(755,root,root) %{_libdir}/%{name}/libmm-plugin-dlink.so | |
184 | %attr(755,root,root) %{_libdir}/%{name}/libmm-plugin-ericsson-mbm.so | |
185 | %attr(755,root,root) %{_libdir}/%{name}/libmm-plugin-fibocom.so | |
186 | %attr(755,root,root) %{_libdir}/%{name}/libmm-plugin-foxconn.so | |
187 | %attr(755,root,root) %{_libdir}/%{name}/libmm-plugin-generic.so | |
188 | %attr(755,root,root) %{_libdir}/%{name}/libmm-plugin-haier.so | |
189 | %attr(755,root,root) %{_libdir}/%{name}/libmm-plugin-huawei.so | |
190 | %attr(755,root,root) %{_libdir}/%{name}/libmm-plugin-iridium.so | |
191 | %attr(755,root,root) %{_libdir}/%{name}/libmm-plugin-linktop.so | |
192 | %attr(755,root,root) %{_libdir}/%{name}/libmm-plugin-longcheer.so | |
193 | %attr(755,root,root) %{_libdir}/%{name}/libmm-plugin-option-hso.so | |
194 | %attr(755,root,root) %{_libdir}/%{name}/libmm-plugin-mtk.so | |
195 | %attr(755,root,root) %{_libdir}/%{name}/libmm-plugin-motorola.so | |
196 | %attr(755,root,root) %{_libdir}/%{name}/libmm-plugin-nokia-icera.so | |
197 | %attr(755,root,root) %{_libdir}/%{name}/libmm-plugin-nokia.so | |
198 | %attr(755,root,root) %{_libdir}/%{name}/libmm-plugin-novatel.so | |
199 | %attr(755,root,root) %{_libdir}/%{name}/libmm-plugin-novatel-lte.so | |
200 | %attr(755,root,root) %{_libdir}/%{name}/libmm-plugin-option.so | |
201 | %attr(755,root,root) %{_libdir}/%{name}/libmm-plugin-pantech.so | |
202 | %attr(755,root,root) %{_libdir}/%{name}/libmm-plugin-quectel.so | |
203 | %attr(755,root,root) %{_libdir}/%{name}/libmm-plugin-samsung.so | |
204 | %attr(755,root,root) %{_libdir}/%{name}/libmm-plugin-sierra.so | |
205 | %attr(755,root,root) %{_libdir}/%{name}/libmm-plugin-sierra-legacy.so | |
206 | %attr(755,root,root) %{_libdir}/%{name}/libmm-plugin-simtech.so | |
207 | %attr(755,root,root) %{_libdir}/%{name}/libmm-plugin-telit.so | |
208 | %attr(755,root,root) %{_libdir}/%{name}/libmm-plugin-thuraya.so | |
209 | %attr(755,root,root) %{_libdir}/%{name}/libmm-plugin-tplink.so | |
210 | %attr(755,root,root) %{_libdir}/%{name}/libmm-plugin-ublox.so | |
211 | %attr(755,root,root) %{_libdir}/%{name}/libmm-plugin-via.so | |
212 | %attr(755,root,root) %{_libdir}/%{name}/libmm-plugin-wavecom.so | |
213 | %attr(755,root,root) %{_libdir}/%{name}/libmm-plugin-x22x.so | |
214 | %attr(755,root,root) %{_libdir}/%{name}/libmm-plugin-zte.so | |
215 | %attr(755,root,root) %{_libdir}/%{name}/libmm-shared-foxconn.so | |
216 | %attr(755,root,root) %{_libdir}/%{name}/libmm-shared-icera.so | |
217 | %attr(755,root,root) %{_libdir}/%{name}/libmm-shared-novatel.so | |
218 | %attr(755,root,root) %{_libdir}/%{name}/libmm-shared-option.so | |
219 | %attr(755,root,root) %{_libdir}/%{name}/libmm-shared-sierra.so | |
220 | %attr(755,root,root) %{_libdir}/%{name}/libmm-shared-telit.so | |
221 | %attr(755,root,root) %{_libdir}/%{name}/libmm-shared-xmm.so | |
222 | %dir %{_datadir}/%{name} | |
223 | %{_datadir}/%{name}/mm-foxconn-t77w968-carrier-mapping.conf | |
224 | /lib/udev/rules.d/77-mm-broadmobi-port-types.rules | |
225 | /lib/udev/rules.d/77-mm-cinterion-port-types.rules | |
226 | /lib/udev/rules.d/77-mm-dell-port-types.rules | |
227 | /lib/udev/rules.d/77-mm-dlink-port-types.rules | |
228 | /lib/udev/rules.d/77-mm-ericsson-mbm.rules | |
229 | /lib/udev/rules.d/77-mm-fibocom-port-types.rules | |
230 | /lib/udev/rules.d/77-mm-foxconn-port-types.rules | |
231 | /lib/udev/rules.d/77-mm-haier-port-types.rules | |
232 | /lib/udev/rules.d/77-mm-huawei-net-port-types.rules | |
233 | /lib/udev/rules.d/77-mm-longcheer-port-types.rules | |
234 | /lib/udev/rules.d/77-mm-mtk-port-types.rules | |
235 | /lib/udev/rules.d/77-mm-nokia-port-types.rules | |
236 | /lib/udev/rules.d/77-mm-pcmcia-device-blacklist.rules | |
237 | /lib/udev/rules.d/77-mm-quectel-port-types.rules | |
238 | /lib/udev/rules.d/77-mm-sierra.rules | |
239 | /lib/udev/rules.d/77-mm-simtech-port-types.rules | |
240 | /lib/udev/rules.d/77-mm-telit-port-types.rules | |
241 | /lib/udev/rules.d/77-mm-tplink-port-types.rules | |
242 | /lib/udev/rules.d/77-mm-ublox-port-types.rules | |
243 | /lib/udev/rules.d/77-mm-usb-device-blacklist.rules | |
244 | /lib/udev/rules.d/77-mm-usb-serial-adapters-greylist.rules | |
245 | /lib/udev/rules.d/77-mm-x22x-port-types.rules | |
246 | /lib/udev/rules.d/77-mm-zte-port-types.rules | |
247 | /lib/udev/rules.d/80-mm-candidate.rules | |
248 | %config(noreplace) %verify(not md5 mtime size) /etc/dbus-1/system.d/org.freedesktop.ModemManager1.conf | |
249 | %{_datadir}/dbus-1/interfaces/org.freedesktop.ModemManager1.Bearer.xml | |
250 | %{_datadir}/dbus-1/interfaces/org.freedesktop.ModemManager1.Call.xml | |
251 | %{_datadir}/dbus-1/interfaces/org.freedesktop.ModemManager1.Modem.Firmware.xml | |
252 | %{_datadir}/dbus-1/interfaces/org.freedesktop.ModemManager1.Modem.Location.xml | |
253 | %{_datadir}/dbus-1/interfaces/org.freedesktop.ModemManager1.Modem.Messaging.xml | |
254 | %{_datadir}/dbus-1/interfaces/org.freedesktop.ModemManager1.Modem.Modem3gpp.Ussd.xml | |
255 | %{_datadir}/dbus-1/interfaces/org.freedesktop.ModemManager1.Modem.Modem3gpp.xml | |
256 | %{_datadir}/dbus-1/interfaces/org.freedesktop.ModemManager1.Modem.ModemCdma.xml | |
257 | %{_datadir}/dbus-1/interfaces/org.freedesktop.ModemManager1.Modem.Oma.xml | |
258 | %{_datadir}/dbus-1/interfaces/org.freedesktop.ModemManager1.Modem.Simple.xml | |
259 | %{_datadir}/dbus-1/interfaces/org.freedesktop.ModemManager1.Modem.Signal.xml | |
260 | %{_datadir}/dbus-1/interfaces/org.freedesktop.ModemManager1.Modem.Time.xml | |
261 | %{_datadir}/dbus-1/interfaces/org.freedesktop.ModemManager1.Modem.Voice.xml | |
262 | %{_datadir}/dbus-1/interfaces/org.freedesktop.ModemManager1.Modem.xml | |
263 | %{_datadir}/dbus-1/interfaces/org.freedesktop.ModemManager1.Sim.xml | |
264 | %{_datadir}/dbus-1/interfaces/org.freedesktop.ModemManager1.Sms.xml | |
265 | %{_datadir}/dbus-1/interfaces/org.freedesktop.ModemManager1.xml | |
266 | %{_datadir}/dbus-1/system-services/org.freedesktop.ModemManager1.service | |
267 | %{_datadir}/polkit-1/actions/org.freedesktop.ModemManager1.policy | |
268 | %{_iconsdir}/hicolor/22x22/apps/ModemManager.png | |
269 | %{_mandir}/man1/mmcli.1* | |
270 | %{_mandir}/man8/ModemManager.8* | |
271 | %{systemdunitdir}/ModemManager.service | |
272 | ||
273 | %files -n bash-completion-ModemManager | |
274 | %defattr(644,root,root,755) | |
275 | %{bash_compdir}/mmcli | |
276 | ||
277 | %files libs | |
278 | %defattr(644,root,root,755) | |
279 | %attr(755,root,root) %{_libdir}/libmm-glib.so.*.*.* | |
280 | %attr(755,root,root) %ghost %{_libdir}/libmm-glib.so.0 | |
281 | %{_libdir}/girepository-1.0/ModemManager-1.0.typelib | |
282 | ||
283 | %files devel | |
284 | %defattr(644,root,root,755) | |
285 | %attr(755,root,root) %{_libdir}/libmm-glib.so | |
286 | %{_includedir}/ModemManager | |
287 | %{_includedir}/libmm-glib | |
288 | %{_pkgconfigdir}/ModemManager.pc | |
289 | %{_pkgconfigdir}/mm-glib.pc | |
290 | %{_datadir}/gir-1.0/ModemManager-1.0.gir | |
291 | ||
292 | %if %{with apidocs} | |
293 | %files apidocs | |
294 | %defattr(644,root,root,755) | |
295 | %{_gtkdocdir}/ModemManager | |
296 | %{_gtkdocdir}/libmm-glib | |
297 | %endif | |
298 | ||
299 | %files -n vala-libmm-glib | |
300 | %defattr(644,root,root,755) | |
301 | %{_datadir}/vala/vapi/libmm-glib.deps | |
302 | %{_datadir}/vala/vapi/libmm-glib.vapi |