]>
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 |
484de8ef | 8 | Version: 1.12.4 |
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 |
484de8ef | 13 | # Source0-md5: 22280110d75c87a89786a317aa9cee04 |
0d617189 | 14 | URL: https://www.freedesktop.org/wiki/Software/ModemManager |
c5ed0433 | 15 | BuildRequires: autoconf >= 2.63 |
42c148f5 JB |
16 | BuildRequires: automake >= 1:1.11.2 |
17 | BuildRequires: gettext-tools >= 0.19.8 | |
e29cb15c | 18 | BuildRequires: glib2-devel >= 1:2.36.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 |
1359691b | 24 | BuildRequires: libmbim-devel >= 1.18.0 |
2fe5ca12 | 25 | BuildRequires: libqmi-devel >= 1.24.0 |
30689186 | 26 | BuildRequires: libtool >= 2:2.2 |
16e59ac6 | 27 | BuildRequires: pkgconfig |
c5ed0433 | 28 | BuildRequires: polkit-devel >= 0.97 |
db905a16 | 29 | BuildRequires: ppp-plugin-devel >= 3:2.4.5 |
e29cb15c JB |
30 | BuildRequires: rpmbuild(macros) >= 1.673 |
31 | BuildRequires: systemd-devel >= 1:209 | |
9ede919e | 32 | BuildRequires: tar >= 1:1.22 |
e00e2a46 | 33 | BuildRequires: udev-glib-devel >= 1:147 |
1870b4f1 | 34 | BuildRequires: vala >= 2:0.18.0 |
9ede919e | 35 | BuildRequires: xz |
c5ed0433 MB |
36 | Requires(post,preun,postun): systemd-units |
37 | Requires: %{name}-libs = %{version}-%{release} | |
e29cb15c | 38 | Requires: glib2 >= 1:2.36.0 |
9ede919e | 39 | Requires: hicolor-icon-theme |
1359691b | 40 | Requires: libmbim >= 1.18.0 |
2fe5ca12 | 41 | Requires: libqmi >= 1.24.0 |
c5ed0433 | 42 | Requires: polkit >= 0.97 |
e00e2a46 | 43 | Requires: udev-glib >= 1:147 |
16e59ac6 MB |
44 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) |
45 | ||
46 | %description | |
47 | The ModemManager service provides a consistent API to operate many | |
48 | different modems, including mobile broadband (3G) devices. | |
49 | ||
30689186 JB |
50 | %description -l pl.UTF-8 |
51 | Usługa ModemManager zapewnia spójne API do obsługi wielu różnych | |
52 | modemów, w tym szerokopasmowych modemów komórkowych (3G). | |
53 | ||
e29cb15c JB |
54 | %package -n bash-completion-ModemManager |
55 | Summary: Bash completion for ModemManager commands | |
56 | Summary(pl.UTF-8): Dopełnianie składni poleceń ModemManagera | |
57 | Group: Applications/Shells | |
58 | Requires: %{name} = %{version}-%{release} | |
59 | Requires: bash-completion >= 2.0 | |
60 | ||
61 | %description -n bash-completion-ModemManager | |
62 | Bash completion for ModemManager commands (mmcli). | |
63 | ||
64 | %description -n bash-completion-ModemManager -l pl.UTF-8 | |
65 | Dopełnianie składni poleceń ModemManagera (mmcli). | |
66 | ||
c5ed0433 MB |
67 | %package libs |
68 | Summary: Library to control and monitor the ModemManager | |
69 | Summary(pl.UTF-8): Biblioteka do sterowania i monitorowania ModemManagera | |
70 | Group: Libraries | |
e29cb15c | 71 | Requires: glib2 >= 1:2.36.0 |
c5ed0433 MB |
72 | |
73 | %description libs | |
74 | This package provides library to control and monitor the ModemManager. | |
75 | ||
76 | %description libs -l pl.UTF-8 | |
77 | Ten pakiet dostarcza bibliotekę do sterowania i monitorowania | |
78 | ModemManagera. | |
79 | ||
30689186 JB |
80 | %package devel |
81 | Summary: Header file defining ModemManager D-Bus interface | |
82 | Summary(pl.UTF-8): Plik nagłówkowy opisujący interfejs D-Bus ModemManagera | |
83 | Group: Development/Libraries | |
c5ed0433 | 84 | Requires: %{name}-libs = %{version}-%{release} |
e29cb15c | 85 | Requires: glib2-devel >= 1:2.36.0 |
30689186 JB |
86 | |
87 | %description devel | |
88 | Header file defining ModemManager D-Bus interface. | |
89 | ||
90 | %description devel -l pl.UTF-8 | |
91 | Plik nagłówkowy opisujący interfejs D-Bus ModemManagera. | |
92 | ||
c5ed0433 MB |
93 | %package apidocs |
94 | Summary: API documentation for ModemManager | |
95 | Summary(pl.UTF-8): Dokumentacja API ModemManagera | |
96 | Group: Documentation | |
97 | Requires: gtk-doc-common | |
fc233bed ER |
98 | %if "%{_rpmversion}" >= "5" |
99 | BuildArch: noarch | |
100 | %endif | |
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 | |
68d206c8 ER |
114 | %if "%{_rpmversion}" >= "5" |
115 | BuildArch: noarch | |
116 | %endif | |
1870b4f1 JP |
117 | |
118 | %description -n vala-libmm-glib | |
119 | libmm-glib API for Vala language. | |
120 | ||
121 | %description -n vala-libmm-glib -l pl.UTF-8 | |
122 | API libmm-glib dla języka Vala. | |
123 | ||
16e59ac6 MB |
124 | %prep |
125 | %setup -q | |
126 | ||
127 | %build | |
128 | %{__libtoolize} | |
55351b05 | 129 | %{__aclocal} -I m4 |
16e59ac6 MB |
130 | %{__autoconf} |
131 | %{__autoheader} | |
132 | %{__automake} | |
bac17c7e | 133 | %configure \ |
c5ed0433 | 134 | %{__enable_disable apidocs gtk-doc} \ |
30689186 JB |
135 | --disable-silent-rules \ |
136 | --disable-static \ | |
137 | --enable-more-warnings \ | |
1870b4f1 | 138 | --enable-vala \ |
c5ed0433 | 139 | --with-html-dir=%{_gtkdocdir} \ |
e29cb15c JB |
140 | --with-polkit \ |
141 | --with-suspend-resume=systemd | |
673c51b9 JB |
142 | |
143 | LC_ALL=C.UTF-8 \ | |
16e59ac6 MB |
144 | %{__make} |
145 | ||
146 | %install | |
147 | rm -rf $RPM_BUILD_ROOT | |
148 | ||
149 | %{__make} install \ | |
150 | DESTDIR=$RPM_BUILD_ROOT | |
151 | ||
c5ed0433 | 152 | %{__rm} $RPM_BUILD_ROOT%{_libdir}/*.la |
30689186 | 153 | %{__rm} $RPM_BUILD_ROOT%{_libdir}/%{name}/*.la |
16e59ac6 | 154 | |
7ba8154b JB |
155 | %find_lang %{name} |
156 | ||
16e59ac6 MB |
157 | %clean |
158 | rm -rf $RPM_BUILD_ROOT | |
159 | ||
9ede919e MB |
160 | %post |
161 | %update_icon_cache hicolor | |
c5ed0433 MB |
162 | %systemd_service_enable ModemManager.service |
163 | ||
164 | %preun | |
165 | %systemd_preun ModemManager.service | |
9ede919e MB |
166 | |
167 | %postun | |
168 | %update_icon_cache hicolor | |
c5ed0433 MB |
169 | %systemd_reload |
170 | ||
7ba8154b JB |
171 | %post libs -p /sbin/ldconfig |
172 | %postun libs -p /sbin/ldconfig | |
9ede919e | 173 | |
7ba8154b | 174 | %files -f %{name}.lang |
16e59ac6 MB |
175 | %defattr(644,root,root,755) |
176 | %doc AUTHORS ChangeLog NEWS README | |
c5ed0433 MB |
177 | %attr(755,root,root) %{_bindir}/mmcli |
178 | %attr(755,root,root) %{_sbindir}/ModemManager | |
16e59ac6 | 179 | %dir %{_libdir}/ModemManager |
c5ed0433 | 180 | %attr(755,root,root) %{_libdir}/%{name}/libmm-plugin-altair-lte.so |
4749311e | 181 | %attr(755,root,root) %{_libdir}/%{name}/libmm-plugin-anydata.so |
618d8cda | 182 | %attr(755,root,root) %{_libdir}/%{name}/libmm-plugin-cinterion.so |
e29cb15c | 183 | %attr(755,root,root) %{_libdir}/%{name}/libmm-plugin-dell.so |
2fe5ca12 | 184 | %attr(755,root,root) %{_libdir}/%{name}/libmm-plugin-dlink.so |
e29cb15c | 185 | %attr(755,root,root) %{_libdir}/%{name}/libmm-plugin-ericsson-mbm.so |
1359691b | 186 | %attr(755,root,root) %{_libdir}/%{name}/libmm-plugin-fibocom.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 |
abddcc9f JB |
215 | %attr(755,root,root) %{_libdir}/%{name}/libmm-shared-icera.so |
216 | %attr(755,root,root) %{_libdir}/%{name}/libmm-shared-novatel.so | |
217 | %attr(755,root,root) %{_libdir}/%{name}/libmm-shared-option.so | |
218 | %attr(755,root,root) %{_libdir}/%{name}/libmm-shared-sierra.so | |
219 | %attr(755,root,root) %{_libdir}/%{name}/libmm-shared-telit.so | |
220 | %attr(755,root,root) %{_libdir}/%{name}/libmm-shared-xmm.so | |
65f5ffa9 JB |
221 | %dir %{_datadir}/%{name} |
222 | %{_datadir}/%{name}/mm-dell-dw5821e-carrier-mapping.conf | |
7ba8154b | 223 | /lib/udev/rules.d/77-mm-cinterion-port-types.rules |
e29cb15c | 224 | /lib/udev/rules.d/77-mm-dell-port-types.rules |
2fe5ca12 | 225 | /lib/udev/rules.d/77-mm-dlink-port-types.rules |
16e59ac6 | 226 | /lib/udev/rules.d/77-mm-ericsson-mbm.rules |
1359691b | 227 | /lib/udev/rules.d/77-mm-fibocom-port-types.rules |
e29cb15c | 228 | /lib/udev/rules.d/77-mm-haier-port-types.rules |
c5ed0433 | 229 | /lib/udev/rules.d/77-mm-huawei-net-port-types.rules |
16e59ac6 | 230 | /lib/udev/rules.d/77-mm-longcheer-port-types.rules |
1870b4f1 | 231 | /lib/udev/rules.d/77-mm-mtk-port-types.rules |
9ede919e | 232 | /lib/udev/rules.d/77-mm-nokia-port-types.rules |
55351b05 | 233 | /lib/udev/rules.d/77-mm-pcmcia-device-blacklist.rules |
65f5ffa9 | 234 | /lib/udev/rules.d/77-mm-quectel-port-types.rules |
42c148f5 | 235 | /lib/udev/rules.d/77-mm-sierra.rules |
55351b05 | 236 | /lib/udev/rules.d/77-mm-simtech-port-types.rules |
1870b4f1 | 237 | /lib/udev/rules.d/77-mm-telit-port-types.rules |
2fe5ca12 | 238 | /lib/udev/rules.d/77-mm-tplink-port-types.rules |
42c148f5 | 239 | /lib/udev/rules.d/77-mm-ublox-port-types.rules |
55351b05 | 240 | /lib/udev/rules.d/77-mm-usb-device-blacklist.rules |
c5ed0433 | 241 | /lib/udev/rules.d/77-mm-usb-serial-adapters-greylist.rules |
b632cd74 | 242 | /lib/udev/rules.d/77-mm-x22x-port-types.rules |
16e59ac6 | 243 | /lib/udev/rules.d/77-mm-zte-port-types.rules |
b632cd74 | 244 | /lib/udev/rules.d/80-mm-candidate.rules |
c5ed0433 MB |
245 | %config(noreplace) %verify(not md5 mtime size) /etc/dbus-1/system.d/org.freedesktop.ModemManager1.conf |
246 | %{_datadir}/dbus-1/interfaces/org.freedesktop.ModemManager1.Bearer.xml | |
e29cb15c | 247 | %{_datadir}/dbus-1/interfaces/org.freedesktop.ModemManager1.Call.xml |
c5ed0433 MB |
248 | %{_datadir}/dbus-1/interfaces/org.freedesktop.ModemManager1.Modem.Firmware.xml |
249 | %{_datadir}/dbus-1/interfaces/org.freedesktop.ModemManager1.Modem.Location.xml | |
250 | %{_datadir}/dbus-1/interfaces/org.freedesktop.ModemManager1.Modem.Messaging.xml | |
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 |
c5ed0433 | 255 | %{_datadir}/dbus-1/interfaces/org.freedesktop.ModemManager1.Modem.Simple.xml |
1870b4f1 | 256 | %{_datadir}/dbus-1/interfaces/org.freedesktop.ModemManager1.Modem.Signal.xml |
c5ed0433 | 257 | %{_datadir}/dbus-1/interfaces/org.freedesktop.ModemManager1.Modem.Time.xml |
e29cb15c | 258 | %{_datadir}/dbus-1/interfaces/org.freedesktop.ModemManager1.Modem.Voice.xml |
c5ed0433 MB |
259 | %{_datadir}/dbus-1/interfaces/org.freedesktop.ModemManager1.Modem.xml |
260 | %{_datadir}/dbus-1/interfaces/org.freedesktop.ModemManager1.Sim.xml | |
261 | %{_datadir}/dbus-1/interfaces/org.freedesktop.ModemManager1.Sms.xml | |
262 | %{_datadir}/dbus-1/interfaces/org.freedesktop.ModemManager1.xml | |
c5ed0433 MB |
263 | %{_datadir}/dbus-1/system-services/org.freedesktop.ModemManager1.service |
264 | %{_datadir}/polkit-1/actions/org.freedesktop.ModemManager1.policy | |
65f5ffa9 | 265 | %{_iconsdir}/hicolor/22x22/apps/ModemManager.png |
42c148f5 | 266 | %{_mandir}/man1/mmcli.1* |
c5ed0433 | 267 | %{_mandir}/man8/ModemManager.8* |
c5ed0433 MB |
268 | %{systemdunitdir}/ModemManager.service |
269 | ||
e29cb15c JB |
270 | %files -n bash-completion-ModemManager |
271 | %defattr(644,root,root,755) | |
272 | %{bash_compdir}/mmcli | |
273 | ||
c5ed0433 MB |
274 | %files libs |
275 | %defattr(644,root,root,755) | |
276 | %attr(755,root,root) %{_libdir}/libmm-glib.so.*.*.* | |
277 | %attr(755,root,root) %ghost %{_libdir}/libmm-glib.so.0 | |
1870b4f1 | 278 | %{_libdir}/girepository-1.0/ModemManager-1.0.typelib |
30689186 JB |
279 | |
280 | %files devel | |
281 | %defattr(644,root,root,755) | |
c5ed0433 MB |
282 | %attr(755,root,root) %{_libdir}/libmm-glib.so |
283 | %{_includedir}/ModemManager | |
284 | %{_includedir}/libmm-glib | |
285 | %{_pkgconfigdir}/ModemManager.pc | |
286 | %{_pkgconfigdir}/mm-glib.pc | |
1870b4f1 | 287 | %{_datadir}/gir-1.0/ModemManager-1.0.gir |
c5ed0433 | 288 | |
d074d5d6 | 289 | %if %{with apidocs} |
c5ed0433 MB |
290 | %files apidocs |
291 | %defattr(644,root,root,755) | |
292 | %{_gtkdocdir}/ModemManager | |
293 | %{_gtkdocdir}/libmm-glib | |
d074d5d6 | 294 | %endif |
1870b4f1 JP |
295 | |
296 | %files -n vala-libmm-glib | |
297 | %defattr(644,root,root,755) | |
298 | %{_datadir}/vala/vapi/libmm-glib.deps | |
299 | %{_datadir}/vala/vapi/libmm-glib.vapi |