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