]>
Commit | Line | Data |
---|---|---|
d02f5177 | 1 | # TODO: -Dqmi_username=??? |
31684a65 MB |
2 | # |
3 | # Conditional build: | |
d02f5177 | 4 | %bcond_without apidocs # (gtk-doc based) API documentation |
b6022e9d | 5 | |
31684a65 | 6 | Summary: GLib library for talking to WWAN modems and devices using QMI protocol |
edccb50c | 7 | Summary(pl.UTF-8): Biblioteka GLib do komunikacji z modemami i urządzeniami WWAN z użyciem protokołu QMI |
31684a65 | 8 | Name: libqmi |
d02f5177 | 9 | Version: 1.32.4 |
1bf74393 | 10 | Release: 1 |
edccb50c | 11 | License: LGPL v2+ |
31684a65 | 12 | Group: Libraries |
d02f5177 JB |
13 | #Source0Download: https://gitlab.freedesktop.org/mobile-broadband/libqmi/-/tags |
14 | Source0: https://gitlab.freedesktop.org/mobile-broadband/libqmi/-/archive/%{version}/%{name}-%{version}.tar.bz2 | |
15 | # Source0-md5: c062cba26c2fca75d0a49ba48557f198 | |
1bf74393 | 16 | URL: https://www.freedesktop.org/wiki/Software/libqmi/ |
8be72b4e | 17 | BuildRequires: glib2-devel >= 1:2.56 |
9c0a267f | 18 | %if %(locale -a | grep -q '^C\.utf8$'; echo $?) |
e9d31181 JB |
19 | BuildRequires: glibc-localedb-all |
20 | %endif | |
ec0732e2 | 21 | BuildRequires: gobject-introspection-devel >= 0.9.6 |
edccb50c | 22 | BuildRequires: gtk-doc >= 1.0 |
487ab4a4 | 23 | BuildRequires: help2man |
8be72b4e | 24 | BuildRequires: libgudev-devel >= 232 |
9c0a267f | 25 | BuildRequires: libmbim-devel >= 1.18.0 |
99a846c4 | 26 | BuildRequires: libqrtr-glib-devel >= 1.0.0 |
ec0732e2 | 27 | BuildRequires: linux-libc-headers >= 7:4.15 |
d02f5177 JB |
28 | BuildRequires: meson >= 0.53.0 |
29 | BuildRequires: ninja >= 1.5 | |
31684a65 | 30 | BuildRequires: pkgconfig |
99a846c4 | 31 | BuildRequires: rpm-build >= 4.6 |
06071242 | 32 | BuildRequires: rpmbuild(macros) >= 1.752 |
8be72b4e JB |
33 | Requires: glib2 >= 1:2.56 |
34 | Requires: libgudev >= 232 | |
9c0a267f | 35 | Requires: libmbim >= 1.18.0 |
99a846c4 | 36 | Requires: libqrtr-glib >= 1.0.0 |
31684a65 MB |
37 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) |
38 | ||
39 | %description | |
40 | libqmi is a GLib library for talking to WWAN modems and devices which | |
41 | speak the Qualcomm MSM Interface (QMI) protocol. | |
42 | ||
edccb50c JB |
43 | %description -l pl.UTF-8 |
44 | libqmi to biblioteka GLib do komunikacji z modemami i urządzeniami | |
45 | WWAN, obsługującymi protokół QMI (Qualcomm MSM Interface). | |
46 | ||
31684a65 MB |
47 | %package devel |
48 | Summary: Header files for libqmi library | |
49 | Summary(pl.UTF-8): Pliki nagłówkowe biblioteki libqmi | |
50 | Group: Development/Libraries | |
51 | Requires: %{name} = %{version}-%{release} | |
8be72b4e | 52 | Requires: glib2-devel >= 1:2.56 |
1816a22b | 53 | Requires: libmbim-devel >= 1.18.0 |
99a846c4 | 54 | Requires: libqrtr-glib-devel >= 1.0.0 |
31684a65 MB |
55 | |
56 | %description devel | |
57 | Header files for libqmi library. | |
58 | ||
59 | %description devel -l pl.UTF-8 | |
60 | Pliki nagłówkowe biblioteki libqmi. | |
61 | ||
62 | %package static | |
63 | Summary: Static libqmi library | |
64 | Summary(pl.UTF-8): Statyczna biblioteka libqmi | |
65 | Group: Development/Libraries | |
66 | Requires: %{name}-devel = %{version}-%{release} | |
67 | ||
68 | %description static | |
69 | Static libqmi library. | |
70 | ||
71 | %description static -l pl.UTF-8 | |
72 | Statyczna biblioteka libqmi. | |
73 | ||
74 | %package apidocs | |
75 | Summary: libqmi API documentation | |
76 | Summary(pl.UTF-8): Dokumentacja API biblioteki libqmi | |
77 | Group: Documentation | |
78 | Requires: gtk-doc-common | |
5a246856 | 79 | BuildArch: noarch |
31684a65 MB |
80 | |
81 | %description apidocs | |
82 | API documentation for libqmi library. | |
83 | ||
84 | %description apidocs -l pl.UTF-8 | |
85 | Dokumentacja API biblioteki libqmi. | |
86 | ||
ada57c90 JB |
87 | %package -n bash-completion-libqmi |
88 | Summary: Bash completion for qmictl command | |
89 | Summary(pl.UTF-8): Bashowe dopełnianie składni polecenia qmictl | |
90 | Group: Applications/Shells | |
91 | Requires: %{name} = %{version}-%{release} | |
d02f5177 | 92 | Requires: bash-completion >= 1:2.0 |
5a246856 | 93 | BuildArch: noarch |
ada57c90 JB |
94 | |
95 | %description -n bash-completion-libqmi | |
96 | Bash completion for qmictl command. | |
97 | ||
98 | %description -n bash-completion-libqmi -l pl.UTF-8 | |
99 | Bashowe dopełnianie składni polecenia qmictl. | |
100 | ||
31684a65 MB |
101 | %prep |
102 | %setup -q | |
103 | ||
104 | %build | |
d02f5177 JB |
105 | %meson build \ |
106 | %{?with_apidocs:-Dgtk_doc=true} | |
107 | ||
108 | %ninja_build -C build | |
31684a65 MB |
109 | |
110 | %install | |
111 | rm -rf $RPM_BUILD_ROOT | |
112 | ||
d02f5177 | 113 | %ninja_install -C build |
31684a65 MB |
114 | |
115 | %clean | |
116 | rm -rf $RPM_BUILD_ROOT | |
117 | ||
118 | %post -p /sbin/ldconfig | |
119 | %postun -p /sbin/ldconfig | |
120 | ||
121 | %files | |
122 | %defattr(644,root,root,755) | |
d02f5177 | 123 | %doc AUTHORS NEWS README.md TODO |
0591cd27 | 124 | %attr(755,root,root) %{_bindir}/qmi-firmware-update |
31684a65 MB |
125 | %attr(755,root,root) %{_bindir}/qmi-network |
126 | %attr(755,root,root) %{_bindir}/qmicli | |
127 | %attr(755,root,root) %{_libdir}/libqmi-glib.so.*.*.* | |
ada57c90 | 128 | %attr(755,root,root) %ghost %{_libdir}/libqmi-glib.so.5 |
ec0732e2 | 129 | %{_libdir}/girepository-1.0/Qmi-1.0.typelib |
ead32970 | 130 | %attr(755,root,root) %{_libexecdir}/qmi-proxy |
0591cd27 | 131 | %{_mandir}/man1/qmi-firmware-update.1* |
ead32970 | 132 | %{_mandir}/man1/qmi-network.1* |
3a90b4e7 | 133 | %{_mandir}/man1/qmicli.1* |
31684a65 MB |
134 | |
135 | %files devel | |
136 | %defattr(644,root,root,755) | |
137 | %attr(755,root,root) %{_libdir}/libqmi-glib.so | |
138 | %{_includedir}/libqmi-glib | |
ec0732e2 | 139 | %{_datadir}/gir-1.0/Qmi-1.0.gir |
31684a65 MB |
140 | %{_pkgconfigdir}/qmi-glib.pc |
141 | ||
142 | %files static | |
143 | %defattr(644,root,root,755) | |
144 | %{_libdir}/libqmi-glib.a | |
145 | ||
146 | %if %{with apidocs} | |
147 | %files apidocs | |
148 | %defattr(644,root,root,755) | |
149 | %{_gtkdocdir}/libqmi-glib | |
150 | %endif | |
ada57c90 JB |
151 | |
152 | %files -n bash-completion-libqmi | |
153 | %defattr(644,root,root,755) | |
154 | %{bash_compdir}/qmicli |