]>
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 |
42c148f5 | 8 | Version: 1.8.2 |
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 |
42c148f5 | 13 | # Source0-md5: a49c9f73e46c7b89e5efedda250d22c0 |
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 |
c5ed0433 | 24 | BuildRequires: intltool >= 0.40.0 |
42c148f5 JB |
25 | BuildRequires: libmbim-devel >= 1.16.0 |
26 | BuildRequires: libqmi-devel >= 1.20.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 |
e29cb15c JB |
31 | BuildRequires: rpmbuild(macros) >= 1.673 |
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} | |
e29cb15c | 39 | Requires: glib2 >= 1:2.36.0 |
9ede919e | 40 | Requires: hicolor-icon-theme |
42c148f5 JB |
41 | Requires: libmbim >= 1.16.0 |
42 | Requires: libqmi >= 1.20.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 | |
61 | ||
62 | %description -n bash-completion-ModemManager | |
63 | Bash completion for ModemManager commands (mmcli). | |
64 | ||
65 | %description -n bash-completion-ModemManager -l pl.UTF-8 | |
66 | Dopełnianie składni poleceń ModemManagera (mmcli). | |
67 | ||
c5ed0433 MB |
68 | %package libs |
69 | Summary: Library to control and monitor the ModemManager | |
70 | Summary(pl.UTF-8): Biblioteka do sterowania i monitorowania ModemManagera | |
71 | Group: Libraries | |
e29cb15c | 72 | Requires: glib2 >= 1:2.36.0 |
c5ed0433 MB |
73 | |
74 | %description libs | |
75 | This package provides library to control and monitor the ModemManager. | |
76 | ||
77 | %description libs -l pl.UTF-8 | |
78 | Ten pakiet dostarcza bibliotekę do sterowania i monitorowania | |
79 | ModemManagera. | |
80 | ||
30689186 JB |
81 | %package devel |
82 | Summary: Header file defining ModemManager D-Bus interface | |
83 | Summary(pl.UTF-8): Plik nagłówkowy opisujący interfejs D-Bus ModemManagera | |
84 | Group: Development/Libraries | |
c5ed0433 | 85 | Requires: %{name}-libs = %{version}-%{release} |
e29cb15c | 86 | Requires: glib2-devel >= 1:2.36.0 |
30689186 JB |
87 | |
88 | %description devel | |
89 | Header file defining ModemManager D-Bus interface. | |
90 | ||
91 | %description devel -l pl.UTF-8 | |
92 | Plik nagłówkowy opisujący interfejs D-Bus ModemManagera. | |
93 | ||
c5ed0433 MB |
94 | %package apidocs |
95 | Summary: API documentation for ModemManager | |
96 | Summary(pl.UTF-8): Dokumentacja API ModemManagera | |
97 | Group: Documentation | |
98 | Requires: gtk-doc-common | |
fc233bed ER |
99 | %if "%{_rpmversion}" >= "5" |
100 | BuildArch: noarch | |
101 | %endif | |
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 | |
68d206c8 ER |
115 | %if "%{_rpmversion}" >= "5" |
116 | BuildArch: noarch | |
117 | %endif | |
1870b4f1 JP |
118 | |
119 | %description -n vala-libmm-glib | |
120 | libmm-glib API for Vala language. | |
121 | ||
122 | %description -n vala-libmm-glib -l pl.UTF-8 | |
123 | API libmm-glib dla języka Vala. | |
124 | ||
16e59ac6 MB |
125 | %prep |
126 | %setup -q | |
127 | ||
128 | %build | |
129 | %{__libtoolize} | |
55351b05 | 130 | %{__aclocal} -I m4 |
16e59ac6 MB |
131 | %{__autoconf} |
132 | %{__autoheader} | |
133 | %{__automake} | |
bac17c7e | 134 | %configure \ |
c5ed0433 | 135 | %{__enable_disable apidocs gtk-doc} \ |
30689186 JB |
136 | --disable-silent-rules \ |
137 | --disable-static \ | |
138 | --enable-more-warnings \ | |
1870b4f1 | 139 | --enable-vala \ |
c5ed0433 | 140 | --with-html-dir=%{_gtkdocdir} \ |
e29cb15c JB |
141 | --with-polkit \ |
142 | --with-suspend-resume=systemd | |
673c51b9 JB |
143 | |
144 | LC_ALL=C.UTF-8 \ | |
16e59ac6 MB |
145 | %{__make} |
146 | ||
147 | %install | |
148 | rm -rf $RPM_BUILD_ROOT | |
149 | ||
150 | %{__make} install \ | |
151 | DESTDIR=$RPM_BUILD_ROOT | |
152 | ||
c5ed0433 | 153 | %{__rm} $RPM_BUILD_ROOT%{_libdir}/*.la |
30689186 | 154 | %{__rm} $RPM_BUILD_ROOT%{_libdir}/%{name}/*.la |
16e59ac6 | 155 | |
7ba8154b JB |
156 | %find_lang %{name} |
157 | ||
16e59ac6 MB |
158 | %clean |
159 | rm -rf $RPM_BUILD_ROOT | |
160 | ||
9ede919e MB |
161 | %post |
162 | %update_icon_cache hicolor | |
c5ed0433 MB |
163 | %systemd_service_enable ModemManager.service |
164 | ||
165 | %preun | |
166 | %systemd_preun ModemManager.service | |
9ede919e MB |
167 | |
168 | %postun | |
169 | %update_icon_cache hicolor | |
c5ed0433 MB |
170 | %systemd_reload |
171 | ||
7ba8154b JB |
172 | %post libs -p /sbin/ldconfig |
173 | %postun libs -p /sbin/ldconfig | |
9ede919e | 174 | |
7ba8154b | 175 | %files -f %{name}.lang |
16e59ac6 MB |
176 | %defattr(644,root,root,755) |
177 | %doc AUTHORS ChangeLog NEWS README | |
c5ed0433 MB |
178 | %attr(755,root,root) %{_bindir}/mmcli |
179 | %attr(755,root,root) %{_sbindir}/ModemManager | |
16e59ac6 | 180 | %dir %{_libdir}/ModemManager |
c5ed0433 | 181 | %attr(755,root,root) %{_libdir}/%{name}/libmm-plugin-altair-lte.so |
4749311e | 182 | %attr(755,root,root) %{_libdir}/%{name}/libmm-plugin-anydata.so |
618d8cda | 183 | %attr(755,root,root) %{_libdir}/%{name}/libmm-plugin-cinterion.so |
e29cb15c JB |
184 | %attr(755,root,root) %{_libdir}/%{name}/libmm-plugin-dell.so |
185 | %attr(755,root,root) %{_libdir}/%{name}/libmm-plugin-ericsson-mbm.so | |
4749311e | 186 | %attr(755,root,root) %{_libdir}/%{name}/libmm-plugin-generic.so |
e29cb15c | 187 | %attr(755,root,root) %{_libdir}/%{name}/libmm-plugin-haier.so |
4749311e | 188 | %attr(755,root,root) %{_libdir}/%{name}/libmm-plugin-huawei.so |
618d8cda | 189 | %attr(755,root,root) %{_libdir}/%{name}/libmm-plugin-iridium.so |
b632cd74 | 190 | %attr(755,root,root) %{_libdir}/%{name}/libmm-plugin-linktop.so |
4749311e | 191 | %attr(755,root,root) %{_libdir}/%{name}/libmm-plugin-longcheer.so |
e29cb15c | 192 | %attr(755,root,root) %{_libdir}/%{name}/libmm-plugin-option-hso.so |
1870b4f1 | 193 | %attr(755,root,root) %{_libdir}/%{name}/libmm-plugin-mtk.so |
c5ed0433 MB |
194 | %attr(755,root,root) %{_libdir}/%{name}/libmm-plugin-motorola.so |
195 | %attr(755,root,root) %{_libdir}/%{name}/libmm-plugin-nokia-icera.so | |
4749311e ER |
196 | %attr(755,root,root) %{_libdir}/%{name}/libmm-plugin-nokia.so |
197 | %attr(755,root,root) %{_libdir}/%{name}/libmm-plugin-novatel.so | |
42c148f5 | 198 | %attr(755,root,root) %{_libdir}/%{name}/libmm-plugin-novatel-lte.so |
4749311e | 199 | %attr(755,root,root) %{_libdir}/%{name}/libmm-plugin-option.so |
c5ed0433 | 200 | %attr(755,root,root) %{_libdir}/%{name}/libmm-plugin-pantech.so |
42c148f5 | 201 | %attr(755,root,root) %{_libdir}/%{name}/libmm-plugin-quectel.so |
b632cd74 | 202 | %attr(755,root,root) %{_libdir}/%{name}/libmm-plugin-samsung.so |
4749311e | 203 | %attr(755,root,root) %{_libdir}/%{name}/libmm-plugin-sierra.so |
e29cb15c | 204 | %attr(755,root,root) %{_libdir}/%{name}/libmm-plugin-sierra-legacy.so |
4749311e | 205 | %attr(755,root,root) %{_libdir}/%{name}/libmm-plugin-simtech.so |
c5ed0433 | 206 | %attr(755,root,root) %{_libdir}/%{name}/libmm-plugin-telit.so |
e29cb15c | 207 | %attr(755,root,root) %{_libdir}/%{name}/libmm-plugin-thuraya.so |
42c148f5 | 208 | %attr(755,root,root) %{_libdir}/%{name}/libmm-plugin-ublox.so |
6543604b | 209 | %attr(755,root,root) %{_libdir}/%{name}/libmm-plugin-via.so |
b632cd74 JP |
210 | %attr(755,root,root) %{_libdir}/%{name}/libmm-plugin-wavecom.so |
211 | %attr(755,root,root) %{_libdir}/%{name}/libmm-plugin-x22x.so | |
4749311e | 212 | %attr(755,root,root) %{_libdir}/%{name}/libmm-plugin-zte.so |
7ba8154b | 213 | /lib/udev/rules.d/77-mm-cinterion-port-types.rules |
e29cb15c | 214 | /lib/udev/rules.d/77-mm-dell-port-types.rules |
16e59ac6 | 215 | /lib/udev/rules.d/77-mm-ericsson-mbm.rules |
e29cb15c | 216 | /lib/udev/rules.d/77-mm-haier-port-types.rules |
c5ed0433 | 217 | /lib/udev/rules.d/77-mm-huawei-net-port-types.rules |
16e59ac6 | 218 | /lib/udev/rules.d/77-mm-longcheer-port-types.rules |
1870b4f1 | 219 | /lib/udev/rules.d/77-mm-mtk-port-types.rules |
9ede919e | 220 | /lib/udev/rules.d/77-mm-nokia-port-types.rules |
55351b05 | 221 | /lib/udev/rules.d/77-mm-pcmcia-device-blacklist.rules |
42c148f5 | 222 | /lib/udev/rules.d/77-mm-sierra.rules |
55351b05 | 223 | /lib/udev/rules.d/77-mm-simtech-port-types.rules |
1870b4f1 | 224 | /lib/udev/rules.d/77-mm-telit-port-types.rules |
42c148f5 | 225 | /lib/udev/rules.d/77-mm-ublox-port-types.rules |
55351b05 | 226 | /lib/udev/rules.d/77-mm-usb-device-blacklist.rules |
c5ed0433 | 227 | /lib/udev/rules.d/77-mm-usb-serial-adapters-greylist.rules |
b632cd74 | 228 | /lib/udev/rules.d/77-mm-x22x-port-types.rules |
16e59ac6 | 229 | /lib/udev/rules.d/77-mm-zte-port-types.rules |
b632cd74 | 230 | /lib/udev/rules.d/80-mm-candidate.rules |
c5ed0433 MB |
231 | %config(noreplace) %verify(not md5 mtime size) /etc/dbus-1/system.d/org.freedesktop.ModemManager1.conf |
232 | %{_datadir}/dbus-1/interfaces/org.freedesktop.ModemManager1.Bearer.xml | |
e29cb15c | 233 | %{_datadir}/dbus-1/interfaces/org.freedesktop.ModemManager1.Call.xml |
c5ed0433 MB |
234 | %{_datadir}/dbus-1/interfaces/org.freedesktop.ModemManager1.Modem.Firmware.xml |
235 | %{_datadir}/dbus-1/interfaces/org.freedesktop.ModemManager1.Modem.Location.xml | |
236 | %{_datadir}/dbus-1/interfaces/org.freedesktop.ModemManager1.Modem.Messaging.xml | |
237 | %{_datadir}/dbus-1/interfaces/org.freedesktop.ModemManager1.Modem.Modem3gpp.Ussd.xml | |
238 | %{_datadir}/dbus-1/interfaces/org.freedesktop.ModemManager1.Modem.Modem3gpp.xml | |
239 | %{_datadir}/dbus-1/interfaces/org.freedesktop.ModemManager1.Modem.ModemCdma.xml | |
1870b4f1 | 240 | %{_datadir}/dbus-1/interfaces/org.freedesktop.ModemManager1.Modem.Oma.xml |
c5ed0433 | 241 | %{_datadir}/dbus-1/interfaces/org.freedesktop.ModemManager1.Modem.Simple.xml |
1870b4f1 | 242 | %{_datadir}/dbus-1/interfaces/org.freedesktop.ModemManager1.Modem.Signal.xml |
c5ed0433 | 243 | %{_datadir}/dbus-1/interfaces/org.freedesktop.ModemManager1.Modem.Time.xml |
e29cb15c | 244 | %{_datadir}/dbus-1/interfaces/org.freedesktop.ModemManager1.Modem.Voice.xml |
c5ed0433 MB |
245 | %{_datadir}/dbus-1/interfaces/org.freedesktop.ModemManager1.Modem.xml |
246 | %{_datadir}/dbus-1/interfaces/org.freedesktop.ModemManager1.Sim.xml | |
247 | %{_datadir}/dbus-1/interfaces/org.freedesktop.ModemManager1.Sms.xml | |
248 | %{_datadir}/dbus-1/interfaces/org.freedesktop.ModemManager1.xml | |
c5ed0433 MB |
249 | %{_datadir}/dbus-1/system-services/org.freedesktop.ModemManager1.service |
250 | %{_datadir}/polkit-1/actions/org.freedesktop.ModemManager1.policy | |
55351b05 | 251 | %{_iconsdir}/hicolor/*/apps/*.png |
42c148f5 | 252 | %{_mandir}/man1/mmcli.1* |
c5ed0433 | 253 | %{_mandir}/man8/ModemManager.8* |
c5ed0433 MB |
254 | %{systemdunitdir}/ModemManager.service |
255 | ||
e29cb15c JB |
256 | %files -n bash-completion-ModemManager |
257 | %defattr(644,root,root,755) | |
258 | %{bash_compdir}/mmcli | |
259 | ||
c5ed0433 MB |
260 | %files libs |
261 | %defattr(644,root,root,755) | |
262 | %attr(755,root,root) %{_libdir}/libmm-glib.so.*.*.* | |
263 | %attr(755,root,root) %ghost %{_libdir}/libmm-glib.so.0 | |
1870b4f1 | 264 | %{_libdir}/girepository-1.0/ModemManager-1.0.typelib |
30689186 JB |
265 | |
266 | %files devel | |
267 | %defattr(644,root,root,755) | |
c5ed0433 MB |
268 | %attr(755,root,root) %{_libdir}/libmm-glib.so |
269 | %{_includedir}/ModemManager | |
270 | %{_includedir}/libmm-glib | |
271 | %{_pkgconfigdir}/ModemManager.pc | |
272 | %{_pkgconfigdir}/mm-glib.pc | |
1870b4f1 | 273 | %{_datadir}/gir-1.0/ModemManager-1.0.gir |
c5ed0433 MB |
274 | |
275 | %files apidocs | |
276 | %defattr(644,root,root,755) | |
277 | %{_gtkdocdir}/ModemManager | |
278 | %{_gtkdocdir}/libmm-glib | |
1870b4f1 JP |
279 | |
280 | %files -n vala-libmm-glib | |
281 | %defattr(644,root,root,755) | |
282 | %{_datadir}/vala/vapi/libmm-glib.deps | |
283 | %{_datadir}/vala/vapi/libmm-glib.vapi |