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