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