]>
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 |
93a18678 | 8 | Version: 1.16.6 |
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 |
93a18678 | 13 | # Source0-md5: bde995400758db3a98c886608c2d5d9d |
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 | 25 | BuildRequires: libmbim-devel >= 1.24.0 |
93a18678 | 26 | BuildRequires: libqmi-devel >= 1.28.6 |
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 |
a9851f80 | 31 | BuildRequires: rpm-build >= 4.6 |
b27f95c6 | 32 | BuildRequires: rpmbuild(macros) >= 1.752 |
e29cb15c | 33 | BuildRequires: systemd-devel >= 1:209 |
9ede919e | 34 | BuildRequires: tar >= 1:1.22 |
e00e2a46 | 35 | BuildRequires: udev-glib-devel >= 1:147 |
1870b4f1 | 36 | BuildRequires: vala >= 2:0.18.0 |
9ede919e | 37 | BuildRequires: xz |
c5ed0433 MB |
38 | Requires(post,preun,postun): systemd-units |
39 | Requires: %{name}-libs = %{version}-%{release} | |
771e6379 | 40 | Requires: glib2 >= 1:2.48.0 |
9ede919e | 41 | Requires: hicolor-icon-theme |
771e6379 | 42 | Requires: libmbim >= 1.24.0 |
93a18678 | 43 | Requires: libqmi >= 1.28.6 |
c5ed0433 | 44 | Requires: polkit >= 0.97 |
e00e2a46 | 45 | Requires: udev-glib >= 1:147 |
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 | |
771e6379 | 74 | Requires: glib2 >= 1:2.48.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} |
771e6379 | 88 | Requires: glib2-devel >= 1:2.48.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 | |
127 | %{__libtoolize} | |
55351b05 | 128 | %{__aclocal} -I m4 |
16e59ac6 MB |
129 | %{__autoconf} |
130 | %{__autoheader} | |
131 | %{__automake} | |
bac17c7e | 132 | %configure \ |
c5ed0433 | 133 | %{__enable_disable apidocs gtk-doc} \ |
30689186 JB |
134 | --disable-silent-rules \ |
135 | --disable-static \ | |
136 | --enable-more-warnings \ | |
1870b4f1 | 137 | --enable-vala \ |
c5ed0433 | 138 | --with-html-dir=%{_gtkdocdir} \ |
e29cb15c JB |
139 | --with-polkit \ |
140 | --with-suspend-resume=systemd | |
673c51b9 JB |
141 | |
142 | LC_ALL=C.UTF-8 \ | |
16e59ac6 MB |
143 | %{__make} |
144 | ||
145 | %install | |
146 | rm -rf $RPM_BUILD_ROOT | |
147 | ||
148 | %{__make} install \ | |
149 | DESTDIR=$RPM_BUILD_ROOT | |
150 | ||
c5ed0433 | 151 | %{__rm} $RPM_BUILD_ROOT%{_libdir}/*.la |
30689186 | 152 | %{__rm} $RPM_BUILD_ROOT%{_libdir}/%{name}/*.la |
16e59ac6 | 153 | |
7ba8154b JB |
154 | %find_lang %{name} |
155 | ||
16e59ac6 MB |
156 | %clean |
157 | rm -rf $RPM_BUILD_ROOT | |
158 | ||
9ede919e MB |
159 | %post |
160 | %update_icon_cache hicolor | |
c5ed0433 MB |
161 | %systemd_service_enable ModemManager.service |
162 | ||
163 | %preun | |
164 | %systemd_preun ModemManager.service | |
9ede919e MB |
165 | |
166 | %postun | |
167 | %update_icon_cache hicolor | |
c5ed0433 MB |
168 | %systemd_reload |
169 | ||
7ba8154b JB |
170 | %post libs -p /sbin/ldconfig |
171 | %postun libs -p /sbin/ldconfig | |
9ede919e | 172 | |
7ba8154b | 173 | %files -f %{name}.lang |
16e59ac6 MB |
174 | %defattr(644,root,root,755) |
175 | %doc AUTHORS ChangeLog NEWS README | |
c5ed0433 MB |
176 | %attr(755,root,root) %{_bindir}/mmcli |
177 | %attr(755,root,root) %{_sbindir}/ModemManager | |
16e59ac6 | 178 | %dir %{_libdir}/ModemManager |
c5ed0433 | 179 | %attr(755,root,root) %{_libdir}/%{name}/libmm-plugin-altair-lte.so |
4749311e | 180 | %attr(755,root,root) %{_libdir}/%{name}/libmm-plugin-anydata.so |
771e6379 | 181 | %attr(755,root,root) %{_libdir}/%{name}/libmm-plugin-broadmobi.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 |
771e6379 | 187 | %attr(755,root,root) %{_libdir}/%{name}/libmm-plugin-foxconn.so |
4749311e | 188 | %attr(755,root,root) %{_libdir}/%{name}/libmm-plugin-generic.so |
a9851f80 | 189 | %attr(755,root,root) %{_libdir}/%{name}/libmm-plugin-gosuncn.so |
e29cb15c | 190 | %attr(755,root,root) %{_libdir}/%{name}/libmm-plugin-haier.so |
4749311e | 191 | %attr(755,root,root) %{_libdir}/%{name}/libmm-plugin-huawei.so |
618d8cda | 192 | %attr(755,root,root) %{_libdir}/%{name}/libmm-plugin-iridium.so |
b632cd74 | 193 | %attr(755,root,root) %{_libdir}/%{name}/libmm-plugin-linktop.so |
4749311e | 194 | %attr(755,root,root) %{_libdir}/%{name}/libmm-plugin-longcheer.so |
e29cb15c | 195 | %attr(755,root,root) %{_libdir}/%{name}/libmm-plugin-option-hso.so |
1870b4f1 | 196 | %attr(755,root,root) %{_libdir}/%{name}/libmm-plugin-mtk.so |
c5ed0433 MB |
197 | %attr(755,root,root) %{_libdir}/%{name}/libmm-plugin-motorola.so |
198 | %attr(755,root,root) %{_libdir}/%{name}/libmm-plugin-nokia-icera.so | |
4749311e ER |
199 | %attr(755,root,root) %{_libdir}/%{name}/libmm-plugin-nokia.so |
200 | %attr(755,root,root) %{_libdir}/%{name}/libmm-plugin-novatel.so | |
42c148f5 | 201 | %attr(755,root,root) %{_libdir}/%{name}/libmm-plugin-novatel-lte.so |
4749311e | 202 | %attr(755,root,root) %{_libdir}/%{name}/libmm-plugin-option.so |
c5ed0433 | 203 | %attr(755,root,root) %{_libdir}/%{name}/libmm-plugin-pantech.so |
42c148f5 | 204 | %attr(755,root,root) %{_libdir}/%{name}/libmm-plugin-quectel.so |
b632cd74 | 205 | %attr(755,root,root) %{_libdir}/%{name}/libmm-plugin-samsung.so |
4749311e | 206 | %attr(755,root,root) %{_libdir}/%{name}/libmm-plugin-sierra.so |
e29cb15c | 207 | %attr(755,root,root) %{_libdir}/%{name}/libmm-plugin-sierra-legacy.so |
4749311e | 208 | %attr(755,root,root) %{_libdir}/%{name}/libmm-plugin-simtech.so |
c5ed0433 | 209 | %attr(755,root,root) %{_libdir}/%{name}/libmm-plugin-telit.so |
e29cb15c | 210 | %attr(755,root,root) %{_libdir}/%{name}/libmm-plugin-thuraya.so |
2fe5ca12 | 211 | %attr(755,root,root) %{_libdir}/%{name}/libmm-plugin-tplink.so |
42c148f5 | 212 | %attr(755,root,root) %{_libdir}/%{name}/libmm-plugin-ublox.so |
6543604b | 213 | %attr(755,root,root) %{_libdir}/%{name}/libmm-plugin-via.so |
b632cd74 JP |
214 | %attr(755,root,root) %{_libdir}/%{name}/libmm-plugin-wavecom.so |
215 | %attr(755,root,root) %{_libdir}/%{name}/libmm-plugin-x22x.so | |
4749311e | 216 | %attr(755,root,root) %{_libdir}/%{name}/libmm-plugin-zte.so |
771e6379 | 217 | %attr(755,root,root) %{_libdir}/%{name}/libmm-shared-foxconn.so |
abddcc9f JB |
218 | %attr(755,root,root) %{_libdir}/%{name}/libmm-shared-icera.so |
219 | %attr(755,root,root) %{_libdir}/%{name}/libmm-shared-novatel.so | |
220 | %attr(755,root,root) %{_libdir}/%{name}/libmm-shared-option.so | |
221 | %attr(755,root,root) %{_libdir}/%{name}/libmm-shared-sierra.so | |
222 | %attr(755,root,root) %{_libdir}/%{name}/libmm-shared-telit.so | |
223 | %attr(755,root,root) %{_libdir}/%{name}/libmm-shared-xmm.so | |
65f5ffa9 | 224 | %dir %{_datadir}/%{name} |
93a18678 | 225 | %{_datadir}/%{name}/mm-foxconn-carrier-mapping.conf |
771e6379 | 226 | /lib/udev/rules.d/77-mm-broadmobi-port-types.rules |
7ba8154b | 227 | /lib/udev/rules.d/77-mm-cinterion-port-types.rules |
e29cb15c | 228 | /lib/udev/rules.d/77-mm-dell-port-types.rules |
2fe5ca12 | 229 | /lib/udev/rules.d/77-mm-dlink-port-types.rules |
16e59ac6 | 230 | /lib/udev/rules.d/77-mm-ericsson-mbm.rules |
1359691b | 231 | /lib/udev/rules.d/77-mm-fibocom-port-types.rules |
771e6379 | 232 | /lib/udev/rules.d/77-mm-foxconn-port-types.rules |
a9851f80 | 233 | /lib/udev/rules.d/77-mm-gosuncn-port-types.rules |
e29cb15c | 234 | /lib/udev/rules.d/77-mm-haier-port-types.rules |
c5ed0433 | 235 | /lib/udev/rules.d/77-mm-huawei-net-port-types.rules |
16e59ac6 | 236 | /lib/udev/rules.d/77-mm-longcheer-port-types.rules |
1870b4f1 | 237 | /lib/udev/rules.d/77-mm-mtk-port-types.rules |
9ede919e | 238 | /lib/udev/rules.d/77-mm-nokia-port-types.rules |
55351b05 | 239 | /lib/udev/rules.d/77-mm-pcmcia-device-blacklist.rules |
65f5ffa9 | 240 | /lib/udev/rules.d/77-mm-quectel-port-types.rules |
42c148f5 | 241 | /lib/udev/rules.d/77-mm-sierra.rules |
55351b05 | 242 | /lib/udev/rules.d/77-mm-simtech-port-types.rules |
1870b4f1 | 243 | /lib/udev/rules.d/77-mm-telit-port-types.rules |
2fe5ca12 | 244 | /lib/udev/rules.d/77-mm-tplink-port-types.rules |
42c148f5 | 245 | /lib/udev/rules.d/77-mm-ublox-port-types.rules |
55351b05 | 246 | /lib/udev/rules.d/77-mm-usb-device-blacklist.rules |
c5ed0433 | 247 | /lib/udev/rules.d/77-mm-usb-serial-adapters-greylist.rules |
b632cd74 | 248 | /lib/udev/rules.d/77-mm-x22x-port-types.rules |
16e59ac6 | 249 | /lib/udev/rules.d/77-mm-zte-port-types.rules |
b632cd74 | 250 | /lib/udev/rules.d/80-mm-candidate.rules |
c5ed0433 MB |
251 | %config(noreplace) %verify(not md5 mtime size) /etc/dbus-1/system.d/org.freedesktop.ModemManager1.conf |
252 | %{_datadir}/dbus-1/interfaces/org.freedesktop.ModemManager1.Bearer.xml | |
e29cb15c | 253 | %{_datadir}/dbus-1/interfaces/org.freedesktop.ModemManager1.Call.xml |
c5ed0433 MB |
254 | %{_datadir}/dbus-1/interfaces/org.freedesktop.ModemManager1.Modem.Firmware.xml |
255 | %{_datadir}/dbus-1/interfaces/org.freedesktop.ModemManager1.Modem.Location.xml | |
256 | %{_datadir}/dbus-1/interfaces/org.freedesktop.ModemManager1.Modem.Messaging.xml | |
257 | %{_datadir}/dbus-1/interfaces/org.freedesktop.ModemManager1.Modem.Modem3gpp.Ussd.xml | |
258 | %{_datadir}/dbus-1/interfaces/org.freedesktop.ModemManager1.Modem.Modem3gpp.xml | |
259 | %{_datadir}/dbus-1/interfaces/org.freedesktop.ModemManager1.Modem.ModemCdma.xml | |
1870b4f1 | 260 | %{_datadir}/dbus-1/interfaces/org.freedesktop.ModemManager1.Modem.Oma.xml |
c5ed0433 | 261 | %{_datadir}/dbus-1/interfaces/org.freedesktop.ModemManager1.Modem.Simple.xml |
1870b4f1 | 262 | %{_datadir}/dbus-1/interfaces/org.freedesktop.ModemManager1.Modem.Signal.xml |
c5ed0433 | 263 | %{_datadir}/dbus-1/interfaces/org.freedesktop.ModemManager1.Modem.Time.xml |
e29cb15c | 264 | %{_datadir}/dbus-1/interfaces/org.freedesktop.ModemManager1.Modem.Voice.xml |
c5ed0433 MB |
265 | %{_datadir}/dbus-1/interfaces/org.freedesktop.ModemManager1.Modem.xml |
266 | %{_datadir}/dbus-1/interfaces/org.freedesktop.ModemManager1.Sim.xml | |
267 | %{_datadir}/dbus-1/interfaces/org.freedesktop.ModemManager1.Sms.xml | |
268 | %{_datadir}/dbus-1/interfaces/org.freedesktop.ModemManager1.xml | |
c5ed0433 MB |
269 | %{_datadir}/dbus-1/system-services/org.freedesktop.ModemManager1.service |
270 | %{_datadir}/polkit-1/actions/org.freedesktop.ModemManager1.policy | |
65f5ffa9 | 271 | %{_iconsdir}/hicolor/22x22/apps/ModemManager.png |
42c148f5 | 272 | %{_mandir}/man1/mmcli.1* |
c5ed0433 | 273 | %{_mandir}/man8/ModemManager.8* |
c5ed0433 MB |
274 | %{systemdunitdir}/ModemManager.service |
275 | ||
e29cb15c JB |
276 | %files -n bash-completion-ModemManager |
277 | %defattr(644,root,root,755) | |
278 | %{bash_compdir}/mmcli | |
279 | ||
c5ed0433 MB |
280 | %files libs |
281 | %defattr(644,root,root,755) | |
282 | %attr(755,root,root) %{_libdir}/libmm-glib.so.*.*.* | |
283 | %attr(755,root,root) %ghost %{_libdir}/libmm-glib.so.0 | |
1870b4f1 | 284 | %{_libdir}/girepository-1.0/ModemManager-1.0.typelib |
30689186 JB |
285 | |
286 | %files devel | |
287 | %defattr(644,root,root,755) | |
c5ed0433 MB |
288 | %attr(755,root,root) %{_libdir}/libmm-glib.so |
289 | %{_includedir}/ModemManager | |
290 | %{_includedir}/libmm-glib | |
291 | %{_pkgconfigdir}/ModemManager.pc | |
292 | %{_pkgconfigdir}/mm-glib.pc | |
1870b4f1 | 293 | %{_datadir}/gir-1.0/ModemManager-1.0.gir |
c5ed0433 | 294 | |
d074d5d6 | 295 | %if %{with apidocs} |
c5ed0433 MB |
296 | %files apidocs |
297 | %defattr(644,root,root,755) | |
298 | %{_gtkdocdir}/ModemManager | |
299 | %{_gtkdocdir}/libmm-glib | |
d074d5d6 | 300 | %endif |
1870b4f1 JP |
301 | |
302 | %files -n vala-libmm-glib | |
303 | %defattr(644,root,root,755) | |
304 | %{_datadir}/vala/vapi/libmm-glib.deps | |
305 | %{_datadir}/vala/vapi/libmm-glib.vapi |