]>
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 |
29f8eef0 | 8 | Version: 1.14.8 |
0d617189 | 9 | Release: 1 |
30689186 | 10 | License: GPL v2+ |
16e59ac6 | 11 | Group: Networking |
0d617189 | 12 | Source0: https://www.freedesktop.org/software/ModemManager/%{name}-%{version}.tar.xz |
29f8eef0 | 13 | # Source0-md5: 138762a976a654d244744963d2250372 |
0d617189 | 14 | URL: https://www.freedesktop.org/wiki/Software/ModemManager |
c5ed0433 | 15 | BuildRequires: autoconf >= 2.63 |
771e6379 | 16 | BuildRequires: autoconf-archive >= 2017.03.21 |
42c148f5 JB |
17 | BuildRequires: automake >= 1:1.11.2 |
18 | BuildRequires: gettext-tools >= 0.19.8 | |
771e6379 | 19 | BuildRequires: glib2-devel >= 1:2.48.0 |
42c148f5 | 20 | %if %(locale -a | grep -q '^C\.utf8$'; echo $?) |
673c51b9 JB |
21 | BuildRequires: glibc-localedb-all |
22 | %endif | |
1870b4f1 | 23 | BuildRequires: gobject-introspection-devel >= 0.9.6 |
7ba8154b | 24 | BuildRequires: gtk-doc >= 1.0 |
771e6379 JB |
25 | BuildRequires: libmbim-devel >= 1.24.0 |
26 | BuildRequires: libqmi-devel >= 1.26.0 | |
30689186 | 27 | BuildRequires: libtool >= 2:2.2 |
16e59ac6 | 28 | BuildRequires: pkgconfig |
c5ed0433 | 29 | BuildRequires: polkit-devel >= 0.97 |
db905a16 | 30 | BuildRequires: ppp-plugin-devel >= 3:2.4.5 |
b27f95c6 | 31 | BuildRequires: rpmbuild(macros) >= 1.752 |
e29cb15c | 32 | BuildRequires: systemd-devel >= 1:209 |
9ede919e | 33 | BuildRequires: tar >= 1:1.22 |
e00e2a46 | 34 | BuildRequires: udev-glib-devel >= 1:147 |
1870b4f1 | 35 | BuildRequires: vala >= 2:0.18.0 |
9ede919e | 36 | BuildRequires: xz |
c5ed0433 MB |
37 | Requires(post,preun,postun): systemd-units |
38 | Requires: %{name}-libs = %{version}-%{release} | |
771e6379 | 39 | Requires: glib2 >= 1:2.48.0 |
9ede919e | 40 | Requires: hicolor-icon-theme |
771e6379 JB |
41 | Requires: libmbim >= 1.24.0 |
42 | Requires: libqmi >= 1.26.0 | |
c5ed0433 | 43 | Requires: polkit >= 0.97 |
e00e2a46 | 44 | Requires: udev-glib >= 1:147 |
16e59ac6 MB |
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 | ||
30689186 JB |
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 | ||
e29cb15c JB |
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 | |
b27f95c6 | 61 | %{?noarchpackage} |
e29cb15c JB |
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 | ||
c5ed0433 MB |
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 | |
771e6379 | 73 | Requires: glib2 >= 1:2.48.0 |
c5ed0433 MB |
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 | ||
30689186 JB |
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 | |
c5ed0433 | 86 | Requires: %{name}-libs = %{version}-%{release} |
771e6379 | 87 | Requires: glib2-devel >= 1:2.48.0 |
30689186 JB |
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 | ||
c5ed0433 MB |
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 | |
b27f95c6 | 100 | %{?noarchpackage} |
c5ed0433 MB |
101 | |
102 | %description apidocs | |
103 | API documentation for ModemManager. | |
104 | ||
105 | %description apidocs -l pl.UTF-8 | |
106 | Dokumentacja API biblioteki ModemManagera. | |
107 | ||
1870b4f1 | 108 | %package -n vala-libmm-glib |
fc233bed ER |
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 | |
b27f95c6 | 114 | %{?noarchpackage} |
1870b4f1 JP |
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 | ||
16e59ac6 MB |
122 | %prep |
123 | %setup -q | |
124 | ||
125 | %build | |
126 | %{__libtoolize} | |
55351b05 | 127 | %{__aclocal} -I m4 |
16e59ac6 MB |
128 | %{__autoconf} |
129 | %{__autoheader} | |
130 | %{__automake} | |
bac17c7e | 131 | %configure \ |
c5ed0433 | 132 | %{__enable_disable apidocs gtk-doc} \ |
30689186 JB |
133 | --disable-silent-rules \ |
134 | --disable-static \ | |
135 | --enable-more-warnings \ | |
1870b4f1 | 136 | --enable-vala \ |
c5ed0433 | 137 | --with-html-dir=%{_gtkdocdir} \ |
e29cb15c JB |
138 | --with-polkit \ |
139 | --with-suspend-resume=systemd | |
673c51b9 JB |
140 | |
141 | LC_ALL=C.UTF-8 \ | |
16e59ac6 MB |
142 | %{__make} |
143 | ||
144 | %install | |
145 | rm -rf $RPM_BUILD_ROOT | |
146 | ||
147 | %{__make} install \ | |
148 | DESTDIR=$RPM_BUILD_ROOT | |
149 | ||
c5ed0433 | 150 | %{__rm} $RPM_BUILD_ROOT%{_libdir}/*.la |
30689186 | 151 | %{__rm} $RPM_BUILD_ROOT%{_libdir}/%{name}/*.la |
16e59ac6 | 152 | |
7ba8154b JB |
153 | %find_lang %{name} |
154 | ||
16e59ac6 MB |
155 | %clean |
156 | rm -rf $RPM_BUILD_ROOT | |
157 | ||
9ede919e MB |
158 | %post |
159 | %update_icon_cache hicolor | |
c5ed0433 MB |
160 | %systemd_service_enable ModemManager.service |
161 | ||
162 | %preun | |
163 | %systemd_preun ModemManager.service | |
9ede919e MB |
164 | |
165 | %postun | |
166 | %update_icon_cache hicolor | |
c5ed0433 MB |
167 | %systemd_reload |
168 | ||
7ba8154b JB |
169 | %post libs -p /sbin/ldconfig |
170 | %postun libs -p /sbin/ldconfig | |
9ede919e | 171 | |
7ba8154b | 172 | %files -f %{name}.lang |
16e59ac6 MB |
173 | %defattr(644,root,root,755) |
174 | %doc AUTHORS ChangeLog NEWS README | |
c5ed0433 MB |
175 | %attr(755,root,root) %{_bindir}/mmcli |
176 | %attr(755,root,root) %{_sbindir}/ModemManager | |
16e59ac6 | 177 | %dir %{_libdir}/ModemManager |
c5ed0433 | 178 | %attr(755,root,root) %{_libdir}/%{name}/libmm-plugin-altair-lte.so |
4749311e | 179 | %attr(755,root,root) %{_libdir}/%{name}/libmm-plugin-anydata.so |
771e6379 | 180 | %attr(755,root,root) %{_libdir}/%{name}/libmm-plugin-broadmobi.so |
618d8cda | 181 | %attr(755,root,root) %{_libdir}/%{name}/libmm-plugin-cinterion.so |
e29cb15c | 182 | %attr(755,root,root) %{_libdir}/%{name}/libmm-plugin-dell.so |
2fe5ca12 | 183 | %attr(755,root,root) %{_libdir}/%{name}/libmm-plugin-dlink.so |
e29cb15c | 184 | %attr(755,root,root) %{_libdir}/%{name}/libmm-plugin-ericsson-mbm.so |
1359691b | 185 | %attr(755,root,root) %{_libdir}/%{name}/libmm-plugin-fibocom.so |
771e6379 | 186 | %attr(755,root,root) %{_libdir}/%{name}/libmm-plugin-foxconn.so |
4749311e | 187 | %attr(755,root,root) %{_libdir}/%{name}/libmm-plugin-generic.so |
e29cb15c | 188 | %attr(755,root,root) %{_libdir}/%{name}/libmm-plugin-haier.so |
4749311e | 189 | %attr(755,root,root) %{_libdir}/%{name}/libmm-plugin-huawei.so |
618d8cda | 190 | %attr(755,root,root) %{_libdir}/%{name}/libmm-plugin-iridium.so |
b632cd74 | 191 | %attr(755,root,root) %{_libdir}/%{name}/libmm-plugin-linktop.so |
4749311e | 192 | %attr(755,root,root) %{_libdir}/%{name}/libmm-plugin-longcheer.so |
e29cb15c | 193 | %attr(755,root,root) %{_libdir}/%{name}/libmm-plugin-option-hso.so |
1870b4f1 | 194 | %attr(755,root,root) %{_libdir}/%{name}/libmm-plugin-mtk.so |
c5ed0433 MB |
195 | %attr(755,root,root) %{_libdir}/%{name}/libmm-plugin-motorola.so |
196 | %attr(755,root,root) %{_libdir}/%{name}/libmm-plugin-nokia-icera.so | |
4749311e ER |
197 | %attr(755,root,root) %{_libdir}/%{name}/libmm-plugin-nokia.so |
198 | %attr(755,root,root) %{_libdir}/%{name}/libmm-plugin-novatel.so | |
42c148f5 | 199 | %attr(755,root,root) %{_libdir}/%{name}/libmm-plugin-novatel-lte.so |
4749311e | 200 | %attr(755,root,root) %{_libdir}/%{name}/libmm-plugin-option.so |
c5ed0433 | 201 | %attr(755,root,root) %{_libdir}/%{name}/libmm-plugin-pantech.so |
42c148f5 | 202 | %attr(755,root,root) %{_libdir}/%{name}/libmm-plugin-quectel.so |
b632cd74 | 203 | %attr(755,root,root) %{_libdir}/%{name}/libmm-plugin-samsung.so |
4749311e | 204 | %attr(755,root,root) %{_libdir}/%{name}/libmm-plugin-sierra.so |
e29cb15c | 205 | %attr(755,root,root) %{_libdir}/%{name}/libmm-plugin-sierra-legacy.so |
4749311e | 206 | %attr(755,root,root) %{_libdir}/%{name}/libmm-plugin-simtech.so |
c5ed0433 | 207 | %attr(755,root,root) %{_libdir}/%{name}/libmm-plugin-telit.so |
e29cb15c | 208 | %attr(755,root,root) %{_libdir}/%{name}/libmm-plugin-thuraya.so |
2fe5ca12 | 209 | %attr(755,root,root) %{_libdir}/%{name}/libmm-plugin-tplink.so |
42c148f5 | 210 | %attr(755,root,root) %{_libdir}/%{name}/libmm-plugin-ublox.so |
6543604b | 211 | %attr(755,root,root) %{_libdir}/%{name}/libmm-plugin-via.so |
b632cd74 JP |
212 | %attr(755,root,root) %{_libdir}/%{name}/libmm-plugin-wavecom.so |
213 | %attr(755,root,root) %{_libdir}/%{name}/libmm-plugin-x22x.so | |
4749311e | 214 | %attr(755,root,root) %{_libdir}/%{name}/libmm-plugin-zte.so |
771e6379 | 215 | %attr(755,root,root) %{_libdir}/%{name}/libmm-shared-foxconn.so |
abddcc9f JB |
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 | |
65f5ffa9 | 222 | %dir %{_datadir}/%{name} |
771e6379 JB |
223 | %{_datadir}/%{name}/mm-foxconn-t77w968-carrier-mapping.conf |
224 | /lib/udev/rules.d/77-mm-broadmobi-port-types.rules | |
7ba8154b | 225 | /lib/udev/rules.d/77-mm-cinterion-port-types.rules |
e29cb15c | 226 | /lib/udev/rules.d/77-mm-dell-port-types.rules |
2fe5ca12 | 227 | /lib/udev/rules.d/77-mm-dlink-port-types.rules |
16e59ac6 | 228 | /lib/udev/rules.d/77-mm-ericsson-mbm.rules |
1359691b | 229 | /lib/udev/rules.d/77-mm-fibocom-port-types.rules |
771e6379 | 230 | /lib/udev/rules.d/77-mm-foxconn-port-types.rules |
e29cb15c | 231 | /lib/udev/rules.d/77-mm-haier-port-types.rules |
c5ed0433 | 232 | /lib/udev/rules.d/77-mm-huawei-net-port-types.rules |
16e59ac6 | 233 | /lib/udev/rules.d/77-mm-longcheer-port-types.rules |
1870b4f1 | 234 | /lib/udev/rules.d/77-mm-mtk-port-types.rules |
9ede919e | 235 | /lib/udev/rules.d/77-mm-nokia-port-types.rules |
55351b05 | 236 | /lib/udev/rules.d/77-mm-pcmcia-device-blacklist.rules |
65f5ffa9 | 237 | /lib/udev/rules.d/77-mm-quectel-port-types.rules |
42c148f5 | 238 | /lib/udev/rules.d/77-mm-sierra.rules |
55351b05 | 239 | /lib/udev/rules.d/77-mm-simtech-port-types.rules |
1870b4f1 | 240 | /lib/udev/rules.d/77-mm-telit-port-types.rules |
2fe5ca12 | 241 | /lib/udev/rules.d/77-mm-tplink-port-types.rules |
42c148f5 | 242 | /lib/udev/rules.d/77-mm-ublox-port-types.rules |
55351b05 | 243 | /lib/udev/rules.d/77-mm-usb-device-blacklist.rules |
c5ed0433 | 244 | /lib/udev/rules.d/77-mm-usb-serial-adapters-greylist.rules |
b632cd74 | 245 | /lib/udev/rules.d/77-mm-x22x-port-types.rules |
16e59ac6 | 246 | /lib/udev/rules.d/77-mm-zte-port-types.rules |
b632cd74 | 247 | /lib/udev/rules.d/80-mm-candidate.rules |
c5ed0433 MB |
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 | |
e29cb15c | 250 | %{_datadir}/dbus-1/interfaces/org.freedesktop.ModemManager1.Call.xml |
c5ed0433 MB |
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 | |
1870b4f1 | 257 | %{_datadir}/dbus-1/interfaces/org.freedesktop.ModemManager1.Modem.Oma.xml |
c5ed0433 | 258 | %{_datadir}/dbus-1/interfaces/org.freedesktop.ModemManager1.Modem.Simple.xml |
1870b4f1 | 259 | %{_datadir}/dbus-1/interfaces/org.freedesktop.ModemManager1.Modem.Signal.xml |
c5ed0433 | 260 | %{_datadir}/dbus-1/interfaces/org.freedesktop.ModemManager1.Modem.Time.xml |
e29cb15c | 261 | %{_datadir}/dbus-1/interfaces/org.freedesktop.ModemManager1.Modem.Voice.xml |
c5ed0433 MB |
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 | |
c5ed0433 MB |
266 | %{_datadir}/dbus-1/system-services/org.freedesktop.ModemManager1.service |
267 | %{_datadir}/polkit-1/actions/org.freedesktop.ModemManager1.policy | |
65f5ffa9 | 268 | %{_iconsdir}/hicolor/22x22/apps/ModemManager.png |
42c148f5 | 269 | %{_mandir}/man1/mmcli.1* |
c5ed0433 | 270 | %{_mandir}/man8/ModemManager.8* |
c5ed0433 MB |
271 | %{systemdunitdir}/ModemManager.service |
272 | ||
e29cb15c JB |
273 | %files -n bash-completion-ModemManager |
274 | %defattr(644,root,root,755) | |
275 | %{bash_compdir}/mmcli | |
276 | ||
c5ed0433 MB |
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 | |
1870b4f1 | 281 | %{_libdir}/girepository-1.0/ModemManager-1.0.typelib |
30689186 JB |
282 | |
283 | %files devel | |
284 | %defattr(644,root,root,755) | |
c5ed0433 MB |
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 | |
1870b4f1 | 290 | %{_datadir}/gir-1.0/ModemManager-1.0.gir |
c5ed0433 | 291 | |
d074d5d6 | 292 | %if %{with apidocs} |
c5ed0433 MB |
293 | %files apidocs |
294 | %defattr(644,root,root,755) | |
295 | %{_gtkdocdir}/ModemManager | |
296 | %{_gtkdocdir}/libmm-glib | |
d074d5d6 | 297 | %endif |
1870b4f1 JP |
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 |