]>
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 |
1bf74393 JB |
9 | Version: 1.12.8 |
10 | Release: 1 | |
edccb50c | 11 | License: LGPL v2+ |
31684a65 | 12 | Group: Libraries |
1bf74393 JB |
13 | Source0: https://www.freedesktop.org/software/libqmi/%{name}-%{version}.tar.xz |
14 | # Source0-md5: fcad1a581ee9df8de5a753616dc27adf | |
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 |
31684a65 MB |
21 | BuildRequires: libtool >= 2:2.2 |
22 | BuildRequires: pkgconfig | |
edccb50c | 23 | Requires: glib2 >= 1:2.32.0 |
31684a65 MB |
24 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) |
25 | ||
26 | %description | |
27 | libqmi is a GLib library for talking to WWAN modems and devices which | |
28 | speak the Qualcomm MSM Interface (QMI) protocol. | |
29 | ||
edccb50c JB |
30 | %description -l pl.UTF-8 |
31 | libqmi to biblioteka GLib do komunikacji z modemami i urządzeniami | |
32 | WWAN, obsługującymi protokół QMI (Qualcomm MSM Interface). | |
33 | ||
31684a65 MB |
34 | %package devel |
35 | Summary: Header files for libqmi library | |
36 | Summary(pl.UTF-8): Pliki nagłówkowe biblioteki libqmi | |
37 | Group: Development/Libraries | |
38 | Requires: %{name} = %{version}-%{release} | |
39 | Requires: glib2-devel >= 1:2.32.0 | |
40 | ||
41 | %description devel | |
42 | Header files for libqmi library. | |
43 | ||
44 | %description devel -l pl.UTF-8 | |
45 | Pliki nagłówkowe biblioteki libqmi. | |
46 | ||
47 | %package static | |
48 | Summary: Static libqmi library | |
49 | Summary(pl.UTF-8): Statyczna biblioteka libqmi | |
50 | Group: Development/Libraries | |
51 | Requires: %{name}-devel = %{version}-%{release} | |
52 | ||
53 | %description static | |
54 | Static libqmi library. | |
55 | ||
56 | %description static -l pl.UTF-8 | |
57 | Statyczna biblioteka libqmi. | |
58 | ||
59 | %package apidocs | |
60 | Summary: libqmi API documentation | |
61 | Summary(pl.UTF-8): Dokumentacja API biblioteki libqmi | |
62 | Group: Documentation | |
63 | Requires: gtk-doc-common | |
b6022e9d ER |
64 | %if "%{_rpmversion}" >= "5" |
65 | BuildArch: noarch | |
66 | %endif | |
31684a65 MB |
67 | |
68 | %description apidocs | |
69 | API documentation for libqmi library. | |
70 | ||
71 | %description apidocs -l pl.UTF-8 | |
72 | Dokumentacja API biblioteki libqmi. | |
73 | ||
74 | %prep | |
75 | %setup -q | |
76 | ||
77 | %build | |
78 | %{__libtoolize} | |
79 | %{__aclocal} -I m4 | |
80 | %{__autoconf} | |
81 | %{__autoheader} | |
82 | %{__automake} | |
83 | %configure \ | |
84 | %{__enable_disable apidocs gtk-doc} \ | |
85 | --disable-silent-rules \ | |
86 | --with-html-dir=%{_gtkdocdir} | |
87 | %{__make} | |
88 | ||
89 | %install | |
90 | rm -rf $RPM_BUILD_ROOT | |
91 | ||
92 | %{__make} install \ | |
93 | DESTDIR=$RPM_BUILD_ROOT | |
94 | ||
95 | %{__rm} $RPM_BUILD_ROOT%{_libdir}/*.la | |
96 | ||
97 | %clean | |
98 | rm -rf $RPM_BUILD_ROOT | |
99 | ||
100 | %post -p /sbin/ldconfig | |
101 | %postun -p /sbin/ldconfig | |
102 | ||
103 | %files | |
104 | %defattr(644,root,root,755) | |
105 | %doc AUTHORS NEWS README TODO | |
106 | %attr(755,root,root) %{_bindir}/qmi-network | |
107 | %attr(755,root,root) %{_bindir}/qmicli | |
108 | %attr(755,root,root) %{_libdir}/libqmi-glib.so.*.*.* | |
3a90b4e7 | 109 | %attr(755,root,root) %ghost %{_libdir}/libqmi-glib.so.1 |
ead32970 JB |
110 | %attr(755,root,root) %{_libexecdir}/qmi-proxy |
111 | %{_mandir}/man1/qmi-network.1* | |
3a90b4e7 | 112 | %{_mandir}/man1/qmicli.1* |
31684a65 MB |
113 | |
114 | %files devel | |
115 | %defattr(644,root,root,755) | |
116 | %attr(755,root,root) %{_libdir}/libqmi-glib.so | |
117 | %{_includedir}/libqmi-glib | |
118 | %{_pkgconfigdir}/qmi-glib.pc | |
119 | ||
120 | %files static | |
121 | %defattr(644,root,root,755) | |
122 | %{_libdir}/libqmi-glib.a | |
123 | ||
124 | %if %{with apidocs} | |
125 | %files apidocs | |
126 | %defattr(644,root,root,755) | |
127 | %{_gtkdocdir}/libqmi-glib | |
128 | %endif |