]> git.pld-linux.org Git - packages/ModemManager.git/blame - ModemManager.spec
- up to 1.2.0
[packages/ModemManager.git] / ModemManager.spec
CommitLineData
c5ed0433
MB
1#
2# Conditional build:
3%bcond_without apidocs # don't build API documentation
4#
16e59ac6 5Summary: Mobile broadband modem management service
30689186 6Summary(pl.UTF-8): Usługa zarządzająca szerokopasmowymi modemami komórkowymi
16e59ac6 7Name: ModemManager
1870b4f1
JP
8Version: 1.2.0
9Release: 1
30689186 10License: GPL v2+
16e59ac6 11Group: Networking
c5ed0433 12Source0: http://www.freedesktop.org/software/ModemManager/%{name}-%{version}.tar.xz
1870b4f1 13# Source0-md5: 6e70ab7c5f96aa6a4d5612c1d5ae5bb3
c5ed0433
MB
14URL: http://www.freedesktop.org/wiki/Software/ModemManager
15BuildRequires: autoconf >= 2.63
16e59ac6 16BuildRequires: automake >= 1:1.9
e00e2a46 17BuildRequires: gettext-devel >= 0.17
c5ed0433 18BuildRequires: glib2-devel >= 1:2.32.0
1870b4f1 19BuildRequires: gobject-introspection-devel >= 0.9.6
c5ed0433
MB
20BuildRequires: gtk-doc
21BuildRequires: intltool >= 0.40.0
22BuildRequires: libmbim-devel >= 1.4
23BuildRequires: libqmi-devel >= 1.4
30689186 24BuildRequires: libtool >= 2:2.2
16e59ac6 25BuildRequires: pkgconfig
c5ed0433 26BuildRequires: polkit-devel >= 0.97
db905a16 27BuildRequires: ppp-plugin-devel >= 3:2.4.5
9ede919e 28BuildRequires: tar >= 1:1.22
e00e2a46 29BuildRequires: udev-glib-devel >= 1:147
1870b4f1 30BuildRequires: vala >= 2:0.18.0
9ede919e 31BuildRequires: xz
c5ed0433
MB
32Requires(post,preun,postun): systemd-units
33Requires: %{name}-libs = %{version}-%{release}
34Requires: glib2 >= 1:2.32.0
9ede919e 35Requires: hicolor-icon-theme
e00e2a46
JB
36Requires: libmbim >= 1.4
37Requires: libqmi >= 1.4
c5ed0433 38Requires: polkit >= 0.97
e00e2a46 39Requires: udev-glib >= 1:147
16e59ac6
MB
40BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
41
42%description
43The ModemManager service provides a consistent API to operate many
44different modems, including mobile broadband (3G) devices.
45
30689186
JB
46%description -l pl.UTF-8
47Usługa ModemManager zapewnia spójne API do obsługi wielu różnych
48modemów, w tym szerokopasmowych modemów komórkowych (3G).
49
c5ed0433
MB
50%package libs
51Summary: Library to control and monitor the ModemManager
52Summary(pl.UTF-8): Biblioteka do sterowania i monitorowania ModemManagera
53Group: Libraries
54Requires: glib2 >= 1:2.32.0
55
56%description libs
57This package provides library to control and monitor the ModemManager.
58
59%description libs -l pl.UTF-8
60Ten pakiet dostarcza bibliotekę do sterowania i monitorowania
61ModemManagera.
62
30689186
JB
63%package devel
64Summary: Header file defining ModemManager D-Bus interface
65Summary(pl.UTF-8): Plik nagłówkowy opisujący interfejs D-Bus ModemManagera
66Group: Development/Libraries
c5ed0433
MB
67Requires: %{name}-libs = %{version}-%{release}
68Requires: glib2-devel >= 1:2.32.0
30689186
JB
69
70%description devel
71Header file defining ModemManager D-Bus interface.
72
73%description devel -l pl.UTF-8
74Plik nagłówkowy opisujący interfejs D-Bus ModemManagera.
75
c5ed0433
MB
76%package apidocs
77Summary: API documentation for ModemManager
78Summary(pl.UTF-8): Dokumentacja API ModemManagera
79Group: Documentation
80Requires: gtk-doc-common
81
82%description apidocs
83API documentation for ModemManager.
84
85%description apidocs -l pl.UTF-8
86Dokumentacja API biblioteki ModemManagera.
87
1870b4f1
JP
88%package -n vala-libmm-glib
89Summary: libmm-glib API for Vala language
90Summary(pl.UTF-8): API libmm-glib dla języka Vala
91Group: Development/Libraries
92Requires: %{name}-devel = %{version}-%{release}
93Requires: vala >= 2:0.18.0
94
95%description -n vala-libmm-glib
96libmm-glib API for Vala language.
97
98%description -n vala-libmm-glib -l pl.UTF-8
99API libmm-glib dla języka Vala.
100
16e59ac6
MB
101%prep
102%setup -q
103
104%build
105%{__libtoolize}
55351b05 106%{__aclocal} -I m4
16e59ac6
MB
107%{__autoconf}
108%{__autoheader}
109%{__automake}
bac17c7e 110%configure \
c5ed0433 111 %{__enable_disable apidocs gtk-doc} \
30689186
JB
112 --disable-silent-rules \
113 --disable-static \
114 --enable-more-warnings \
1870b4f1 115 --enable-vala \
c5ed0433
MB
116 --with-html-dir=%{_gtkdocdir} \
117 --with-polkit
16e59ac6
MB
118%{__make}
119
120%install
121rm -rf $RPM_BUILD_ROOT
122
123%{__make} install \
124 DESTDIR=$RPM_BUILD_ROOT
125
c5ed0433 126%{__rm} $RPM_BUILD_ROOT%{_libdir}/*.la
30689186 127%{__rm} $RPM_BUILD_ROOT%{_libdir}/%{name}/*.la
16e59ac6
MB
128
129%clean
130rm -rf $RPM_BUILD_ROOT
131
9ede919e
MB
132%post
133%update_icon_cache hicolor
c5ed0433
MB
134%systemd_service_enable ModemManager.service
135
136%preun
137%systemd_preun ModemManager.service
9ede919e
MB
138
139%postun
140%update_icon_cache hicolor
c5ed0433
MB
141%systemd_reload
142
143%post libs -p /sbin/ldconfig
144%postun libs -p /sbin/ldconfig
9ede919e 145
16e59ac6
MB
146%files
147%defattr(644,root,root,755)
148%doc AUTHORS ChangeLog NEWS README
c5ed0433
MB
149%attr(755,root,root) %{_bindir}/mmcli
150%attr(755,root,root) %{_sbindir}/ModemManager
16e59ac6 151%dir %{_libdir}/ModemManager
c5ed0433 152%attr(755,root,root) %{_libdir}/%{name}/libmm-plugin-altair-lte.so
4749311e 153%attr(755,root,root) %{_libdir}/%{name}/libmm-plugin-anydata.so
618d8cda 154%attr(755,root,root) %{_libdir}/%{name}/libmm-plugin-cinterion.so
4749311e
ER
155%attr(755,root,root) %{_libdir}/%{name}/libmm-plugin-generic.so
156%attr(755,root,root) %{_libdir}/%{name}/libmm-plugin-gobi.so
157%attr(755,root,root) %{_libdir}/%{name}/libmm-plugin-hso.so
158%attr(755,root,root) %{_libdir}/%{name}/libmm-plugin-huawei.so
618d8cda 159%attr(755,root,root) %{_libdir}/%{name}/libmm-plugin-iridium.so
b632cd74 160%attr(755,root,root) %{_libdir}/%{name}/libmm-plugin-linktop.so
4749311e
ER
161%attr(755,root,root) %{_libdir}/%{name}/libmm-plugin-longcheer.so
162%attr(755,root,root) %{_libdir}/%{name}/libmm-plugin-mbm.so
1870b4f1 163%attr(755,root,root) %{_libdir}/%{name}/libmm-plugin-mtk.so
c5ed0433
MB
164%attr(755,root,root) %{_libdir}/%{name}/libmm-plugin-motorola.so
165%attr(755,root,root) %{_libdir}/%{name}/libmm-plugin-nokia-icera.so
4749311e 166%attr(755,root,root) %{_libdir}/%{name}/libmm-plugin-nokia.so
c5ed0433 167%attr(755,root,root) %{_libdir}/%{name}/libmm-plugin-novatel-lte.so
4749311e
ER
168%attr(755,root,root) %{_libdir}/%{name}/libmm-plugin-novatel.so
169%attr(755,root,root) %{_libdir}/%{name}/libmm-plugin-option.so
c5ed0433 170%attr(755,root,root) %{_libdir}/%{name}/libmm-plugin-pantech.so
b632cd74 171%attr(755,root,root) %{_libdir}/%{name}/libmm-plugin-samsung.so
4749311e
ER
172%attr(755,root,root) %{_libdir}/%{name}/libmm-plugin-sierra.so
173%attr(755,root,root) %{_libdir}/%{name}/libmm-plugin-simtech.so
c5ed0433 174%attr(755,root,root) %{_libdir}/%{name}/libmm-plugin-telit.so
6543604b 175%attr(755,root,root) %{_libdir}/%{name}/libmm-plugin-via.so
b632cd74
JP
176%attr(755,root,root) %{_libdir}/%{name}/libmm-plugin-wavecom.so
177%attr(755,root,root) %{_libdir}/%{name}/libmm-plugin-x22x.so
4749311e 178%attr(755,root,root) %{_libdir}/%{name}/libmm-plugin-zte.so
16e59ac6 179/lib/udev/rules.d/77-mm-ericsson-mbm.rules
c5ed0433 180/lib/udev/rules.d/77-mm-huawei-net-port-types.rules
16e59ac6 181/lib/udev/rules.d/77-mm-longcheer-port-types.rules
1870b4f1 182/lib/udev/rules.d/77-mm-mtk-port-types.rules
9ede919e 183/lib/udev/rules.d/77-mm-nokia-port-types.rules
55351b05
MB
184/lib/udev/rules.d/77-mm-pcmcia-device-blacklist.rules
185/lib/udev/rules.d/77-mm-platform-serial-whitelist.rules
186/lib/udev/rules.d/77-mm-simtech-port-types.rules
1870b4f1 187/lib/udev/rules.d/77-mm-telit-port-types.rules
55351b05 188/lib/udev/rules.d/77-mm-usb-device-blacklist.rules
c5ed0433 189/lib/udev/rules.d/77-mm-usb-serial-adapters-greylist.rules
b632cd74 190/lib/udev/rules.d/77-mm-x22x-port-types.rules
16e59ac6 191/lib/udev/rules.d/77-mm-zte-port-types.rules
b632cd74 192/lib/udev/rules.d/80-mm-candidate.rules
c5ed0433
MB
193%config(noreplace) %verify(not md5 mtime size) /etc/dbus-1/system.d/org.freedesktop.ModemManager1.conf
194%{_datadir}/dbus-1/interfaces/org.freedesktop.ModemManager1.Bearer.xml
195%{_datadir}/dbus-1/interfaces/org.freedesktop.ModemManager1.Modem.Firmware.xml
196%{_datadir}/dbus-1/interfaces/org.freedesktop.ModemManager1.Modem.Location.xml
197%{_datadir}/dbus-1/interfaces/org.freedesktop.ModemManager1.Modem.Messaging.xml
198%{_datadir}/dbus-1/interfaces/org.freedesktop.ModemManager1.Modem.Modem3gpp.Ussd.xml
199%{_datadir}/dbus-1/interfaces/org.freedesktop.ModemManager1.Modem.Modem3gpp.xml
200%{_datadir}/dbus-1/interfaces/org.freedesktop.ModemManager1.Modem.ModemCdma.xml
1870b4f1 201%{_datadir}/dbus-1/interfaces/org.freedesktop.ModemManager1.Modem.Oma.xml
c5ed0433 202%{_datadir}/dbus-1/interfaces/org.freedesktop.ModemManager1.Modem.Simple.xml
1870b4f1 203%{_datadir}/dbus-1/interfaces/org.freedesktop.ModemManager1.Modem.Signal.xml
c5ed0433
MB
204%{_datadir}/dbus-1/interfaces/org.freedesktop.ModemManager1.Modem.Time.xml
205%{_datadir}/dbus-1/interfaces/org.freedesktop.ModemManager1.Modem.xml
206%{_datadir}/dbus-1/interfaces/org.freedesktop.ModemManager1.Sim.xml
207%{_datadir}/dbus-1/interfaces/org.freedesktop.ModemManager1.Sms.xml
208%{_datadir}/dbus-1/interfaces/org.freedesktop.ModemManager1.xml
209%{_datadir}/dbus-1/interfaces/wip-org.freedesktop.ModemManager1.Modem.Contacts.xml
210%{_datadir}/dbus-1/system-services/org.freedesktop.ModemManager1.service
211%{_datadir}/polkit-1/actions/org.freedesktop.ModemManager1.policy
55351b05 212%{_iconsdir}/hicolor/*/apps/*.png
c5ed0433
MB
213%{_mandir}/man8/ModemManager.8*
214%{_mandir}/man8/mmcli.8*
215%{systemdunitdir}/ModemManager.service
216
217%files libs
218%defattr(644,root,root,755)
219%attr(755,root,root) %{_libdir}/libmm-glib.so.*.*.*
220%attr(755,root,root) %ghost %{_libdir}/libmm-glib.so.0
1870b4f1 221%{_libdir}/girepository-1.0/ModemManager-1.0.typelib
30689186
JB
222
223%files devel
224%defattr(644,root,root,755)
c5ed0433
MB
225%attr(755,root,root) %{_libdir}/libmm-glib.so
226%{_includedir}/ModemManager
227%{_includedir}/libmm-glib
228%{_pkgconfigdir}/ModemManager.pc
229%{_pkgconfigdir}/mm-glib.pc
1870b4f1 230%{_datadir}/gir-1.0/ModemManager-1.0.gir
c5ed0433
MB
231
232%files apidocs
233%defattr(644,root,root,755)
234%{_gtkdocdir}/ModemManager
235%{_gtkdocdir}/libmm-glib
1870b4f1
JP
236
237%files -n vala-libmm-glib
238%defattr(644,root,root,755)
239%{_datadir}/vala/vapi/libmm-glib.deps
240%{_datadir}/vala/vapi/libmm-glib.vapi
This page took 1.406768 seconds and 4 git commands to generate.