]>
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 |
42ed860b | 8 | Version: 1.6.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 |
42ed860b | 13 | # Source0-md5: ac08d539ec3dc35db8d6b7c8d6c660ff |
0d617189 | 14 | URL: https://www.freedesktop.org/wiki/Software/ModemManager |
c5ed0433 | 15 | BuildRequires: autoconf >= 2.63 |
e29cb15c JB |
16 | BuildRequires: automake >= 1:1.11 |
17 | BuildRequires: gettext-tools >= 0.19.3 | |
18 | BuildRequires: glib2-devel >= 1:2.36.0 | |
1870b4f1 | 19 | BuildRequires: gobject-introspection-devel >= 0.9.6 |
7ba8154b | 20 | BuildRequires: gtk-doc >= 1.0 |
c5ed0433 | 21 | BuildRequires: intltool >= 0.40.0 |
e29cb15c JB |
22 | BuildRequires: libmbim-devel >= 1.14.0 |
23 | BuildRequires: libqmi-devel >= 1.16.0 | |
30689186 | 24 | BuildRequires: libtool >= 2:2.2 |
16e59ac6 | 25 | BuildRequires: pkgconfig |
c5ed0433 | 26 | BuildRequires: polkit-devel >= 0.97 |
db905a16 | 27 | BuildRequires: ppp-plugin-devel >= 3:2.4.5 |
e29cb15c JB |
28 | BuildRequires: rpmbuild(macros) >= 1.673 |
29 | BuildRequires: systemd-devel >= 1:209 | |
9ede919e | 30 | BuildRequires: tar >= 1:1.22 |
e00e2a46 | 31 | BuildRequires: udev-glib-devel >= 1:147 |
1870b4f1 | 32 | BuildRequires: vala >= 2:0.18.0 |
9ede919e | 33 | BuildRequires: xz |
c5ed0433 MB |
34 | Requires(post,preun,postun): systemd-units |
35 | Requires: %{name}-libs = %{version}-%{release} | |
e29cb15c | 36 | Requires: glib2 >= 1:2.36.0 |
9ede919e | 37 | Requires: hicolor-icon-theme |
e29cb15c JB |
38 | Requires: libmbim >= 1.14.0 |
39 | Requires: libqmi >= 1.16.0 | |
c5ed0433 | 40 | Requires: polkit >= 0.97 |
e00e2a46 | 41 | Requires: udev-glib >= 1:147 |
16e59ac6 MB |
42 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) |
43 | ||
44 | %description | |
45 | The ModemManager service provides a consistent API to operate many | |
46 | different modems, including mobile broadband (3G) devices. | |
47 | ||
30689186 JB |
48 | %description -l pl.UTF-8 |
49 | Usługa ModemManager zapewnia spójne API do obsługi wielu różnych | |
50 | modemów, w tym szerokopasmowych modemów komórkowych (3G). | |
51 | ||
e29cb15c JB |
52 | %package -n bash-completion-ModemManager |
53 | Summary: Bash completion for ModemManager commands | |
54 | Summary(pl.UTF-8): Dopełnianie składni poleceń ModemManagera | |
55 | Group: Applications/Shells | |
56 | Requires: %{name} = %{version}-%{release} | |
57 | Requires: bash-completion >= 2.0 | |
58 | ||
59 | %description -n bash-completion-ModemManager | |
60 | Bash completion for ModemManager commands (mmcli). | |
61 | ||
62 | %description -n bash-completion-ModemManager -l pl.UTF-8 | |
63 | Dopełnianie składni poleceń ModemManagera (mmcli). | |
64 | ||
c5ed0433 MB |
65 | %package libs |
66 | Summary: Library to control and monitor the ModemManager | |
67 | Summary(pl.UTF-8): Biblioteka do sterowania i monitorowania ModemManagera | |
68 | Group: Libraries | |
e29cb15c | 69 | Requires: glib2 >= 1:2.36.0 |
c5ed0433 MB |
70 | |
71 | %description libs | |
72 | This package provides library to control and monitor the ModemManager. | |
73 | ||
74 | %description libs -l pl.UTF-8 | |
75 | Ten pakiet dostarcza bibliotekę do sterowania i monitorowania | |
76 | ModemManagera. | |
77 | ||
30689186 JB |
78 | %package devel |
79 | Summary: Header file defining ModemManager D-Bus interface | |
80 | Summary(pl.UTF-8): Plik nagłówkowy opisujący interfejs D-Bus ModemManagera | |
81 | Group: Development/Libraries | |
c5ed0433 | 82 | Requires: %{name}-libs = %{version}-%{release} |
e29cb15c | 83 | Requires: glib2-devel >= 1:2.36.0 |
30689186 JB |
84 | |
85 | %description devel | |
86 | Header file defining ModemManager D-Bus interface. | |
87 | ||
88 | %description devel -l pl.UTF-8 | |
89 | Plik nagłówkowy opisujący interfejs D-Bus ModemManagera. | |
90 | ||
c5ed0433 MB |
91 | %package apidocs |
92 | Summary: API documentation for ModemManager | |
93 | Summary(pl.UTF-8): Dokumentacja API ModemManagera | |
94 | Group: Documentation | |
95 | Requires: gtk-doc-common | |
fc233bed ER |
96 | %if "%{_rpmversion}" >= "5" |
97 | BuildArch: noarch | |
98 | %endif | |
c5ed0433 MB |
99 | |
100 | %description apidocs | |
101 | API documentation for ModemManager. | |
102 | ||
103 | %description apidocs -l pl.UTF-8 | |
104 | Dokumentacja API biblioteki ModemManagera. | |
105 | ||
1870b4f1 | 106 | %package -n vala-libmm-glib |
fc233bed ER |
107 | Summary: libmm-glib API for Vala language |
108 | Summary(pl.UTF-8): API libmm-glib dla języka Vala | |
109 | Group: Development/Libraries | |
110 | Requires: %{name}-devel = %{version}-%{release} | |
111 | Requires: vala >= 2:0.18.0 | |
68d206c8 ER |
112 | %if "%{_rpmversion}" >= "5" |
113 | BuildArch: noarch | |
114 | %endif | |
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 | |
16e59ac6 MB |
140 | %{__make} |
141 | ||
142 | %install | |
143 | rm -rf $RPM_BUILD_ROOT | |
144 | ||
145 | %{__make} install \ | |
146 | DESTDIR=$RPM_BUILD_ROOT | |
147 | ||
c5ed0433 | 148 | %{__rm} $RPM_BUILD_ROOT%{_libdir}/*.la |
30689186 | 149 | %{__rm} $RPM_BUILD_ROOT%{_libdir}/%{name}/*.la |
16e59ac6 | 150 | |
7ba8154b JB |
151 | %find_lang %{name} |
152 | ||
16e59ac6 MB |
153 | %clean |
154 | rm -rf $RPM_BUILD_ROOT | |
155 | ||
9ede919e MB |
156 | %post |
157 | %update_icon_cache hicolor | |
c5ed0433 MB |
158 | %systemd_service_enable ModemManager.service |
159 | ||
160 | %preun | |
161 | %systemd_preun ModemManager.service | |
9ede919e MB |
162 | |
163 | %postun | |
164 | %update_icon_cache hicolor | |
c5ed0433 MB |
165 | %systemd_reload |
166 | ||
7ba8154b JB |
167 | %post libs -p /sbin/ldconfig |
168 | %postun libs -p /sbin/ldconfig | |
9ede919e | 169 | |
7ba8154b | 170 | %files -f %{name}.lang |
16e59ac6 MB |
171 | %defattr(644,root,root,755) |
172 | %doc AUTHORS ChangeLog NEWS README | |
c5ed0433 MB |
173 | %attr(755,root,root) %{_bindir}/mmcli |
174 | %attr(755,root,root) %{_sbindir}/ModemManager | |
16e59ac6 | 175 | %dir %{_libdir}/ModemManager |
c5ed0433 | 176 | %attr(755,root,root) %{_libdir}/%{name}/libmm-plugin-altair-lte.so |
4749311e | 177 | %attr(755,root,root) %{_libdir}/%{name}/libmm-plugin-anydata.so |
618d8cda | 178 | %attr(755,root,root) %{_libdir}/%{name}/libmm-plugin-cinterion.so |
e29cb15c JB |
179 | %attr(755,root,root) %{_libdir}/%{name}/libmm-plugin-dell.so |
180 | %attr(755,root,root) %{_libdir}/%{name}/libmm-plugin-ericsson-mbm.so | |
4749311e | 181 | %attr(755,root,root) %{_libdir}/%{name}/libmm-plugin-generic.so |
e29cb15c | 182 | %attr(755,root,root) %{_libdir}/%{name}/libmm-plugin-haier.so |
4749311e | 183 | %attr(755,root,root) %{_libdir}/%{name}/libmm-plugin-huawei.so |
618d8cda | 184 | %attr(755,root,root) %{_libdir}/%{name}/libmm-plugin-iridium.so |
b632cd74 | 185 | %attr(755,root,root) %{_libdir}/%{name}/libmm-plugin-linktop.so |
4749311e | 186 | %attr(755,root,root) %{_libdir}/%{name}/libmm-plugin-longcheer.so |
e29cb15c | 187 | %attr(755,root,root) %{_libdir}/%{name}/libmm-plugin-option-hso.so |
1870b4f1 | 188 | %attr(755,root,root) %{_libdir}/%{name}/libmm-plugin-mtk.so |
c5ed0433 MB |
189 | %attr(755,root,root) %{_libdir}/%{name}/libmm-plugin-motorola.so |
190 | %attr(755,root,root) %{_libdir}/%{name}/libmm-plugin-nokia-icera.so | |
4749311e ER |
191 | %attr(755,root,root) %{_libdir}/%{name}/libmm-plugin-nokia.so |
192 | %attr(755,root,root) %{_libdir}/%{name}/libmm-plugin-novatel.so | |
e29cb15c | 193 | %attr(755,root,root) %{_libdir}/%{name}/libmm-plugin-novatel_lte.so |
4749311e | 194 | %attr(755,root,root) %{_libdir}/%{name}/libmm-plugin-option.so |
c5ed0433 | 195 | %attr(755,root,root) %{_libdir}/%{name}/libmm-plugin-pantech.so |
b632cd74 | 196 | %attr(755,root,root) %{_libdir}/%{name}/libmm-plugin-samsung.so |
4749311e | 197 | %attr(755,root,root) %{_libdir}/%{name}/libmm-plugin-sierra.so |
e29cb15c | 198 | %attr(755,root,root) %{_libdir}/%{name}/libmm-plugin-sierra-legacy.so |
4749311e | 199 | %attr(755,root,root) %{_libdir}/%{name}/libmm-plugin-simtech.so |
c5ed0433 | 200 | %attr(755,root,root) %{_libdir}/%{name}/libmm-plugin-telit.so |
e29cb15c | 201 | %attr(755,root,root) %{_libdir}/%{name}/libmm-plugin-thuraya.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 |
7ba8154b | 206 | /lib/udev/rules.d/77-mm-cinterion-port-types.rules |
e29cb15c | 207 | /lib/udev/rules.d/77-mm-dell-port-types.rules |
16e59ac6 | 208 | /lib/udev/rules.d/77-mm-ericsson-mbm.rules |
e29cb15c | 209 | /lib/udev/rules.d/77-mm-haier-port-types.rules |
c5ed0433 | 210 | /lib/udev/rules.d/77-mm-huawei-net-port-types.rules |
16e59ac6 | 211 | /lib/udev/rules.d/77-mm-longcheer-port-types.rules |
1870b4f1 | 212 | /lib/udev/rules.d/77-mm-mtk-port-types.rules |
9ede919e | 213 | /lib/udev/rules.d/77-mm-nokia-port-types.rules |
55351b05 MB |
214 | /lib/udev/rules.d/77-mm-pcmcia-device-blacklist.rules |
215 | /lib/udev/rules.d/77-mm-platform-serial-whitelist.rules | |
216 | /lib/udev/rules.d/77-mm-simtech-port-types.rules | |
1870b4f1 | 217 | /lib/udev/rules.d/77-mm-telit-port-types.rules |
55351b05 | 218 | /lib/udev/rules.d/77-mm-usb-device-blacklist.rules |
c5ed0433 | 219 | /lib/udev/rules.d/77-mm-usb-serial-adapters-greylist.rules |
b632cd74 | 220 | /lib/udev/rules.d/77-mm-x22x-port-types.rules |
16e59ac6 | 221 | /lib/udev/rules.d/77-mm-zte-port-types.rules |
b632cd74 | 222 | /lib/udev/rules.d/80-mm-candidate.rules |
c5ed0433 MB |
223 | %config(noreplace) %verify(not md5 mtime size) /etc/dbus-1/system.d/org.freedesktop.ModemManager1.conf |
224 | %{_datadir}/dbus-1/interfaces/org.freedesktop.ModemManager1.Bearer.xml | |
e29cb15c | 225 | %{_datadir}/dbus-1/interfaces/org.freedesktop.ModemManager1.Call.xml |
c5ed0433 MB |
226 | %{_datadir}/dbus-1/interfaces/org.freedesktop.ModemManager1.Modem.Firmware.xml |
227 | %{_datadir}/dbus-1/interfaces/org.freedesktop.ModemManager1.Modem.Location.xml | |
228 | %{_datadir}/dbus-1/interfaces/org.freedesktop.ModemManager1.Modem.Messaging.xml | |
229 | %{_datadir}/dbus-1/interfaces/org.freedesktop.ModemManager1.Modem.Modem3gpp.Ussd.xml | |
230 | %{_datadir}/dbus-1/interfaces/org.freedesktop.ModemManager1.Modem.Modem3gpp.xml | |
231 | %{_datadir}/dbus-1/interfaces/org.freedesktop.ModemManager1.Modem.ModemCdma.xml | |
1870b4f1 | 232 | %{_datadir}/dbus-1/interfaces/org.freedesktop.ModemManager1.Modem.Oma.xml |
c5ed0433 | 233 | %{_datadir}/dbus-1/interfaces/org.freedesktop.ModemManager1.Modem.Simple.xml |
1870b4f1 | 234 | %{_datadir}/dbus-1/interfaces/org.freedesktop.ModemManager1.Modem.Signal.xml |
c5ed0433 | 235 | %{_datadir}/dbus-1/interfaces/org.freedesktop.ModemManager1.Modem.Time.xml |
e29cb15c | 236 | %{_datadir}/dbus-1/interfaces/org.freedesktop.ModemManager1.Modem.Voice.xml |
c5ed0433 MB |
237 | %{_datadir}/dbus-1/interfaces/org.freedesktop.ModemManager1.Modem.xml |
238 | %{_datadir}/dbus-1/interfaces/org.freedesktop.ModemManager1.Sim.xml | |
239 | %{_datadir}/dbus-1/interfaces/org.freedesktop.ModemManager1.Sms.xml | |
240 | %{_datadir}/dbus-1/interfaces/org.freedesktop.ModemManager1.xml | |
c5ed0433 MB |
241 | %{_datadir}/dbus-1/system-services/org.freedesktop.ModemManager1.service |
242 | %{_datadir}/polkit-1/actions/org.freedesktop.ModemManager1.policy | |
55351b05 | 243 | %{_iconsdir}/hicolor/*/apps/*.png |
c5ed0433 MB |
244 | %{_mandir}/man8/ModemManager.8* |
245 | %{_mandir}/man8/mmcli.8* | |
246 | %{systemdunitdir}/ModemManager.service | |
247 | ||
e29cb15c JB |
248 | %files -n bash-completion-ModemManager |
249 | %defattr(644,root,root,755) | |
250 | %{bash_compdir}/mmcli | |
251 | ||
c5ed0433 MB |
252 | %files libs |
253 | %defattr(644,root,root,755) | |
254 | %attr(755,root,root) %{_libdir}/libmm-glib.so.*.*.* | |
255 | %attr(755,root,root) %ghost %{_libdir}/libmm-glib.so.0 | |
1870b4f1 | 256 | %{_libdir}/girepository-1.0/ModemManager-1.0.typelib |
30689186 JB |
257 | |
258 | %files devel | |
259 | %defattr(644,root,root,755) | |
c5ed0433 MB |
260 | %attr(755,root,root) %{_libdir}/libmm-glib.so |
261 | %{_includedir}/ModemManager | |
262 | %{_includedir}/libmm-glib | |
263 | %{_pkgconfigdir}/ModemManager.pc | |
264 | %{_pkgconfigdir}/mm-glib.pc | |
1870b4f1 | 265 | %{_datadir}/gir-1.0/ModemManager-1.0.gir |
c5ed0433 MB |
266 | |
267 | %files apidocs | |
268 | %defattr(644,root,root,755) | |
269 | %{_gtkdocdir}/ModemManager | |
270 | %{_gtkdocdir}/libmm-glib | |
1870b4f1 JP |
271 | |
272 | %files -n vala-libmm-glib | |
273 | %defattr(644,root,root,755) | |
274 | %{_datadir}/vala/vapi/libmm-glib.deps | |
275 | %{_datadir}/vala/vapi/libmm-glib.vapi |