]>
Commit | Line | Data |
---|---|---|
31684a65 MB |
1 | # |
2 | # Conditional build: | |
3 | %bcond_without apidocs # do not build and package API docs | |
4 | # | |
5 | Summary: GLib library for talking to WWAN modems and devices using QMI protocol | |
6 | Name: libqmi | |
7 | Version: 1.4.0 | |
8 | Release: 1 | |
9 | License: LGPL v2 | |
10 | Group: Libraries | |
11 | Source0: http://www.freedesktop.org/software/libqmi/%{name}-%{version}.tar.xz | |
12 | # Source0-md5: f8e2c17240c21c7d48d5df4ab04c77e7 | |
13 | URL: http://www.freedesktop.org/wiki/Software/libqmi/ | |
14 | BuildRequires: autoconf >= 2.68 | |
15 | BuildRequires: automake >= 1:1.11 | |
16 | BuildRequires: glib2-devel >= 1:2.32.0 | |
17 | BuildRequires: libtool >= 2:2.2 | |
18 | BuildRequires: pkgconfig | |
19 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) | |
20 | ||
21 | %description | |
22 | libqmi is a GLib library for talking to WWAN modems and devices which | |
23 | speak the Qualcomm MSM Interface (QMI) protocol. | |
24 | ||
25 | %package devel | |
26 | Summary: Header files for libqmi library | |
27 | Summary(pl.UTF-8): Pliki nagłówkowe biblioteki libqmi | |
28 | Group: Development/Libraries | |
29 | Requires: %{name} = %{version}-%{release} | |
30 | Requires: glib2-devel >= 1:2.32.0 | |
31 | ||
32 | %description devel | |
33 | Header files for libqmi library. | |
34 | ||
35 | %description devel -l pl.UTF-8 | |
36 | Pliki nagłówkowe biblioteki libqmi. | |
37 | ||
38 | %package static | |
39 | Summary: Static libqmi library | |
40 | Summary(pl.UTF-8): Statyczna biblioteka libqmi | |
41 | Group: Development/Libraries | |
42 | Requires: %{name}-devel = %{version}-%{release} | |
43 | ||
44 | %description static | |
45 | Static libqmi library. | |
46 | ||
47 | %description static -l pl.UTF-8 | |
48 | Statyczna biblioteka libqmi. | |
49 | ||
50 | %package apidocs | |
51 | Summary: libqmi API documentation | |
52 | Summary(pl.UTF-8): Dokumentacja API biblioteki libqmi | |
53 | Group: Documentation | |
54 | Requires: gtk-doc-common | |
55 | ||
56 | %description apidocs | |
57 | API documentation for libqmi library. | |
58 | ||
59 | %description apidocs -l pl.UTF-8 | |
60 | Dokumentacja API biblioteki libqmi. | |
61 | ||
62 | %prep | |
63 | %setup -q | |
64 | ||
65 | %build | |
66 | %{__libtoolize} | |
67 | %{__aclocal} -I m4 | |
68 | %{__autoconf} | |
69 | %{__autoheader} | |
70 | %{__automake} | |
71 | %configure \ | |
72 | %{__enable_disable apidocs gtk-doc} \ | |
73 | --disable-silent-rules \ | |
74 | --with-html-dir=%{_gtkdocdir} | |
75 | %{__make} | |
76 | ||
77 | %install | |
78 | rm -rf $RPM_BUILD_ROOT | |
79 | ||
80 | %{__make} install \ | |
81 | DESTDIR=$RPM_BUILD_ROOT | |
82 | ||
83 | %{__rm} $RPM_BUILD_ROOT%{_libdir}/*.la | |
84 | ||
85 | %clean | |
86 | rm -rf $RPM_BUILD_ROOT | |
87 | ||
88 | %post -p /sbin/ldconfig | |
89 | %postun -p /sbin/ldconfig | |
90 | ||
91 | %files | |
92 | %defattr(644,root,root,755) | |
93 | %doc AUTHORS NEWS README TODO | |
94 | %attr(755,root,root) %{_bindir}/qmi-network | |
95 | %attr(755,root,root) %{_bindir}/qmicli | |
96 | %attr(755,root,root) %{_libdir}/libqmi-glib.so.*.*.* | |
97 | %attr(755,root,root) %ghost %{_libdir}/libqmi-glib.so.0 | |
98 | ||
99 | %files devel | |
100 | %defattr(644,root,root,755) | |
101 | %attr(755,root,root) %{_libdir}/libqmi-glib.so | |
102 | %{_includedir}/libqmi-glib | |
103 | %{_pkgconfigdir}/qmi-glib.pc | |
104 | ||
105 | %files static | |
106 | %defattr(644,root,root,755) | |
107 | %{_libdir}/libqmi-glib.a | |
108 | ||
109 | %if %{with apidocs} | |
110 | %files apidocs | |
111 | %defattr(644,root,root,755) | |
112 | %{_gtkdocdir}/libqmi-glib | |
113 | %endif |