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