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