]>
Commit | Line | Data |
---|---|---|
487ab4a4 | 1 | # TODO: --enable-qmi-username=??? |
31684a65 MB |
2 | # |
3 | # Conditional build: | |
4 | %bcond_without apidocs # do not build and package API docs | |
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 |
89744307 | 9 | Version: 1.24.4 |
1bf74393 | 10 | Release: 1 |
edccb50c | 11 | License: LGPL v2+ |
31684a65 | 12 | Group: Libraries |
1bf74393 | 13 | Source0: https://www.freedesktop.org/software/libqmi/%{name}-%{version}.tar.xz |
89744307 | 14 | # Source0-md5: be6539fde54fec1fc9d852db201c8560 |
1bf74393 | 15 | URL: https://www.freedesktop.org/wiki/Software/libqmi/ |
31684a65 MB |
16 | BuildRequires: autoconf >= 2.68 |
17 | BuildRequires: automake >= 1:1.11 | |
0591cd27 | 18 | BuildRequires: glib2-devel >= 1:2.36 |
9c0a267f | 19 | %if %(locale -a | grep -q '^C\.utf8$'; echo $?) |
e9d31181 JB |
20 | BuildRequires: glibc-localedb-all |
21 | %endif | |
edccb50c | 22 | BuildRequires: gtk-doc >= 1.0 |
487ab4a4 | 23 | BuildRequires: help2man |
9c0a267f | 24 | BuildRequires: libmbim-devel >= 1.18.0 |
31684a65 MB |
25 | BuildRequires: libtool >= 2:2.2 |
26 | BuildRequires: pkgconfig | |
ada57c90 | 27 | BuildRequires: rpmbuild(macros) >= 1.673 |
0591cd27 JB |
28 | BuildRequires: udev-glib-devel >= 1:147 |
29 | Requires: glib2 >= 1:2.36 | |
9c0a267f | 30 | Requires: libmbim >= 1.18.0 |
0591cd27 | 31 | Requires: udev-glib >= 1:147 |
31684a65 MB |
32 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) |
33 | ||
34 | %description | |
35 | libqmi is a GLib library for talking to WWAN modems and devices which | |
36 | speak the Qualcomm MSM Interface (QMI) protocol. | |
37 | ||
edccb50c JB |
38 | %description -l pl.UTF-8 |
39 | libqmi to biblioteka GLib do komunikacji z modemami i urządzeniami | |
40 | WWAN, obsługującymi protokół QMI (Qualcomm MSM Interface). | |
41 | ||
31684a65 MB |
42 | %package devel |
43 | Summary: Header files for libqmi library | |
44 | Summary(pl.UTF-8): Pliki nagłówkowe biblioteki libqmi | |
45 | Group: Development/Libraries | |
46 | Requires: %{name} = %{version}-%{release} | |
0591cd27 | 47 | Requires: glib2-devel >= 1:2.36 |
1816a22b | 48 | Requires: libmbim-devel >= 1.18.0 |
31684a65 MB |
49 | |
50 | %description devel | |
51 | Header files for libqmi library. | |
52 | ||
53 | %description devel -l pl.UTF-8 | |
54 | Pliki nagłówkowe biblioteki libqmi. | |
55 | ||
56 | %package static | |
57 | Summary: Static libqmi library | |
58 | Summary(pl.UTF-8): Statyczna biblioteka libqmi | |
59 | Group: Development/Libraries | |
60 | Requires: %{name}-devel = %{version}-%{release} | |
61 | ||
62 | %description static | |
63 | Static libqmi library. | |
64 | ||
65 | %description static -l pl.UTF-8 | |
66 | Statyczna biblioteka libqmi. | |
67 | ||
68 | %package apidocs | |
69 | Summary: libqmi API documentation | |
70 | Summary(pl.UTF-8): Dokumentacja API biblioteki libqmi | |
71 | Group: Documentation | |
72 | Requires: gtk-doc-common | |
b6022e9d ER |
73 | %if "%{_rpmversion}" >= "5" |
74 | BuildArch: noarch | |
75 | %endif | |
31684a65 MB |
76 | |
77 | %description apidocs | |
78 | API documentation for libqmi library. | |
79 | ||
80 | %description apidocs -l pl.UTF-8 | |
81 | Dokumentacja API biblioteki libqmi. | |
82 | ||
ada57c90 JB |
83 | %package -n bash-completion-libqmi |
84 | Summary: Bash completion for qmictl command | |
85 | Summary(pl.UTF-8): Bashowe dopełnianie składni polecenia qmictl | |
86 | Group: Applications/Shells | |
87 | Requires: %{name} = %{version}-%{release} | |
88 | Requires: bash-completion >= 2.0 | |
89 | ||
90 | %description -n bash-completion-libqmi | |
91 | Bash completion for qmictl command. | |
92 | ||
93 | %description -n bash-completion-libqmi -l pl.UTF-8 | |
94 | Bashowe dopełnianie składni polecenia qmictl. | |
95 | ||
31684a65 MB |
96 | %prep |
97 | %setup -q | |
98 | ||
99 | %build | |
100 | %{__libtoolize} | |
101 | %{__aclocal} -I m4 | |
102 | %{__autoconf} | |
103 | %{__autoheader} | |
104 | %{__automake} | |
105 | %configure \ | |
106 | %{__enable_disable apidocs gtk-doc} \ | |
107 | --disable-silent-rules \ | |
108 | --with-html-dir=%{_gtkdocdir} | |
e9d31181 JB |
109 | |
110 | LC_ALL=C.UTF-8 \ | |
31684a65 MB |
111 | %{__make} |
112 | ||
113 | %install | |
114 | rm -rf $RPM_BUILD_ROOT | |
115 | ||
116 | %{__make} install \ | |
117 | DESTDIR=$RPM_BUILD_ROOT | |
118 | ||
119 | %{__rm} $RPM_BUILD_ROOT%{_libdir}/*.la | |
120 | ||
121 | %clean | |
122 | rm -rf $RPM_BUILD_ROOT | |
123 | ||
124 | %post -p /sbin/ldconfig | |
125 | %postun -p /sbin/ldconfig | |
126 | ||
127 | %files | |
128 | %defattr(644,root,root,755) | |
129 | %doc AUTHORS NEWS README TODO | |
0591cd27 | 130 | %attr(755,root,root) %{_bindir}/qmi-firmware-update |
31684a65 MB |
131 | %attr(755,root,root) %{_bindir}/qmi-network |
132 | %attr(755,root,root) %{_bindir}/qmicli | |
133 | %attr(755,root,root) %{_libdir}/libqmi-glib.so.*.*.* | |
ada57c90 | 134 | %attr(755,root,root) %ghost %{_libdir}/libqmi-glib.so.5 |
ead32970 | 135 | %attr(755,root,root) %{_libexecdir}/qmi-proxy |
0591cd27 | 136 | %{_mandir}/man1/qmi-firmware-update.1* |
ead32970 | 137 | %{_mandir}/man1/qmi-network.1* |
3a90b4e7 | 138 | %{_mandir}/man1/qmicli.1* |
31684a65 MB |
139 | |
140 | %files devel | |
141 | %defattr(644,root,root,755) | |
142 | %attr(755,root,root) %{_libdir}/libqmi-glib.so | |
143 | %{_includedir}/libqmi-glib | |
144 | %{_pkgconfigdir}/qmi-glib.pc | |
145 | ||
146 | %files static | |
147 | %defattr(644,root,root,755) | |
148 | %{_libdir}/libqmi-glib.a | |
149 | ||
150 | %if %{with apidocs} | |
151 | %files apidocs | |
152 | %defattr(644,root,root,755) | |
153 | %{_gtkdocdir}/libqmi-glib | |
154 | %endif | |
ada57c90 JB |
155 | |
156 | %files -n bash-completion-libqmi | |
157 | %defattr(644,root,root,755) | |
158 | %{bash_compdir}/qmicli |