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