]>
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 |
45b5457c | 9 | Version: 1.22.2 |
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 |
45b5457c | 14 | # Source0-md5: 3fd831c1b0de4a4432be628432a960ff |
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 |
31684a65 MB |
48 | |
49 | %description devel | |
50 | Header files for libqmi library. | |
51 | ||
52 | %description devel -l pl.UTF-8 | |
53 | Pliki nagłówkowe biblioteki libqmi. | |
54 | ||
55 | %package static | |
56 | Summary: Static libqmi library | |
57 | Summary(pl.UTF-8): Statyczna biblioteka libqmi | |
58 | Group: Development/Libraries | |
59 | Requires: %{name}-devel = %{version}-%{release} | |
60 | ||
61 | %description static | |
62 | Static libqmi library. | |
63 | ||
64 | %description static -l pl.UTF-8 | |
65 | Statyczna biblioteka libqmi. | |
66 | ||
67 | %package apidocs | |
68 | Summary: libqmi API documentation | |
69 | Summary(pl.UTF-8): Dokumentacja API biblioteki libqmi | |
70 | Group: Documentation | |
71 | Requires: gtk-doc-common | |
b6022e9d ER |
72 | %if "%{_rpmversion}" >= "5" |
73 | BuildArch: noarch | |
74 | %endif | |
31684a65 MB |
75 | |
76 | %description apidocs | |
77 | API documentation for libqmi library. | |
78 | ||
79 | %description apidocs -l pl.UTF-8 | |
80 | Dokumentacja API biblioteki libqmi. | |
81 | ||
ada57c90 JB |
82 | %package -n bash-completion-libqmi |
83 | Summary: Bash completion for qmictl command | |
84 | Summary(pl.UTF-8): Bashowe dopełnianie składni polecenia qmictl | |
85 | Group: Applications/Shells | |
86 | Requires: %{name} = %{version}-%{release} | |
87 | Requires: bash-completion >= 2.0 | |
88 | ||
89 | %description -n bash-completion-libqmi | |
90 | Bash completion for qmictl command. | |
91 | ||
92 | %description -n bash-completion-libqmi -l pl.UTF-8 | |
93 | Bashowe dopełnianie składni polecenia qmictl. | |
94 | ||
31684a65 MB |
95 | %prep |
96 | %setup -q | |
97 | ||
98 | %build | |
99 | %{__libtoolize} | |
100 | %{__aclocal} -I m4 | |
101 | %{__autoconf} | |
102 | %{__autoheader} | |
103 | %{__automake} | |
104 | %configure \ | |
105 | %{__enable_disable apidocs gtk-doc} \ | |
106 | --disable-silent-rules \ | |
107 | --with-html-dir=%{_gtkdocdir} | |
e9d31181 JB |
108 | |
109 | LC_ALL=C.UTF-8 \ | |
31684a65 MB |
110 | %{__make} |
111 | ||
112 | %install | |
113 | rm -rf $RPM_BUILD_ROOT | |
114 | ||
115 | %{__make} install \ | |
116 | DESTDIR=$RPM_BUILD_ROOT | |
117 | ||
118 | %{__rm} $RPM_BUILD_ROOT%{_libdir}/*.la | |
119 | ||
120 | %clean | |
121 | rm -rf $RPM_BUILD_ROOT | |
122 | ||
123 | %post -p /sbin/ldconfig | |
124 | %postun -p /sbin/ldconfig | |
125 | ||
126 | %files | |
127 | %defattr(644,root,root,755) | |
128 | %doc AUTHORS NEWS README TODO | |
0591cd27 | 129 | %attr(755,root,root) %{_bindir}/qmi-firmware-update |
31684a65 MB |
130 | %attr(755,root,root) %{_bindir}/qmi-network |
131 | %attr(755,root,root) %{_bindir}/qmicli | |
132 | %attr(755,root,root) %{_libdir}/libqmi-glib.so.*.*.* | |
ada57c90 | 133 | %attr(755,root,root) %ghost %{_libdir}/libqmi-glib.so.5 |
ead32970 | 134 | %attr(755,root,root) %{_libexecdir}/qmi-proxy |
0591cd27 | 135 | %{_mandir}/man1/qmi-firmware-update.1* |
ead32970 | 136 | %{_mandir}/man1/qmi-network.1* |
3a90b4e7 | 137 | %{_mandir}/man1/qmicli.1* |
31684a65 MB |
138 | |
139 | %files devel | |
140 | %defattr(644,root,root,755) | |
141 | %attr(755,root,root) %{_libdir}/libqmi-glib.so | |
142 | %{_includedir}/libqmi-glib | |
143 | %{_pkgconfigdir}/qmi-glib.pc | |
144 | ||
145 | %files static | |
146 | %defattr(644,root,root,755) | |
147 | %{_libdir}/libqmi-glib.a | |
148 | ||
149 | %if %{with apidocs} | |
150 | %files apidocs | |
151 | %defattr(644,root,root,755) | |
152 | %{_gtkdocdir}/libqmi-glib | |
153 | %endif | |
ada57c90 JB |
154 | |
155 | %files -n bash-completion-libqmi | |
156 | %defattr(644,root,root,755) | |
157 | %{bash_compdir}/qmicli |