]>
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 | |
784e80e4 | 5 | |
23428ddc | 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 |
fbd091ad | 9 | Version: 1.18.2 |
b12ed63f | 10 | Release: 1 |
23428ddc MB |
11 | License: LGPL v2 |
12 | Group: Libraries | |
8996c755 | 13 | Source0: https://www.freedesktop.org/software/libmbim/%{name}-%{version}.tar.xz |
fbd091ad | 14 | # Source0-md5: 7f7da7fa4bf37e64e44822fa00d42d6b |
8996c755 | 15 | URL: https://www.freedesktop.org/wiki/Software/libmbim |
23428ddc MB |
16 | BuildRequires: autoconf >= 2.68 |
17 | BuildRequires: automake >= 1:1.11 | |
41e2e625 | 18 | BuildRequires: glib2-devel >= 1:2.36 |
1cd29b37 | 19 | BuildRequires: gtk-doc >= 1.0 |
819b40f9 | 20 | BuildRequires: help2man |
23428ddc MB |
21 | BuildRequires: libtool >= 2:2.2 |
22 | BuildRequires: pkgconfig | |
b12ed63f | 23 | BuildRequires: rpmbuild(macros) >= 1.673 |
819b40f9 | 24 | BuildRequires: udev-glib-devel >= 1:147 |
41e2e625 | 25 | Requires: glib2 >= 1:2.36 |
819b40f9 | 26 | Requires: udev-glib >= 1:147 |
23428ddc MB |
27 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) |
28 | ||
29 | %description | |
30 | libmbim is a GLib library for talking to WWAN modems and devices which | |
31 | speak the Mobile Interface Broadband Model (MBIM) protocol. | |
32 | ||
a88dd252 JB |
33 | %description -l pl.UTF-8 |
34 | libmbim to biblioteka GLib do komunikacji z modemami i urządzeniami | |
35 | WWAN, obsługującymi protokół MBIM (Mobile Interface Broadband Model). | |
36 | ||
23428ddc MB |
37 | %package devel |
38 | Summary: Header files for libmbim library | |
39 | Summary(pl.UTF-8): Pliki nagłówkowe biblioteki libmbim | |
40 | Group: Development/Libraries | |
41 | Requires: %{name} = %{version}-%{release} | |
41e2e625 | 42 | Requires: glib2-devel >= 1:2.36 |
23428ddc MB |
43 | |
44 | %description devel | |
45 | Header files for libmbim library. | |
46 | ||
47 | %description devel -l pl.UTF-8 | |
48 | Pliki nagłówkowe biblioteki libmbim. | |
49 | ||
50 | %package static | |
51 | Summary: Static libmbim library | |
52 | Summary(pl.UTF-8): Statyczna biblioteka libmbim | |
53 | Group: Development/Libraries | |
54 | Requires: %{name}-devel = %{version}-%{release} | |
55 | ||
56 | %description static | |
57 | Static libmbim library. | |
58 | ||
59 | %description static -l pl.UTF-8 | |
60 | Statyczna biblioteka libmbim. | |
61 | ||
62 | %package apidocs | |
63 | Summary: libmbim API documentation | |
64 | Summary(pl.UTF-8): Dokumentacja API biblioteki libmbim | |
65 | Group: Documentation | |
66 | Requires: gtk-doc-common | |
784e80e4 ER |
67 | %if "%{_rpmversion}" >= "5" |
68 | BuildArch: noarch | |
69 | %endif | |
23428ddc MB |
70 | |
71 | %description apidocs | |
72 | API documentation for libmbim library. | |
73 | ||
74 | %description apidocs -l pl.UTF-8 | |
75 | Dokumentacja API biblioteki libmbim. | |
76 | ||
b12ed63f JB |
77 | %package -n bash-completion-libmbim |
78 | Summary: Bash completion for libmbim commands | |
79 | Summary(pl.UTF-8): Bashowe dopełnianie składni poleceń libmbim | |
80 | Group: Applications/Shells | |
81 | Requires: %{name} = %{version}-%{release} | |
82 | Requires: bash-completion >= 2.0 | |
83 | ||
84 | %description -n bash-completion-libmbim | |
85 | Bash completion for libmbim commands (mbimcli). | |
86 | ||
87 | %description -n bash-completion-libmbim -l pl.UTF-8 | |
88 | Bashowe dopełnianie składni poleceń libmbim (mbimcli). | |
89 | ||
23428ddc MB |
90 | %prep |
91 | %setup -q | |
92 | ||
93 | %build | |
94 | %{__libtoolize} | |
95 | %{__aclocal} -I m4 | |
96 | %{__autoconf} | |
97 | %{__autoheader} | |
98 | %{__automake} | |
99 | %configure \ | |
100 | %{__enable_disable apidocs gtk-doc} \ | |
a88dd252 | 101 | --disable-silent-rules \ |
23428ddc MB |
102 | --with-html-dir=%{_gtkdocdir} |
103 | %{__make} | |
104 | ||
105 | %install | |
106 | rm -rf $RPM_BUILD_ROOT | |
107 | ||
108 | %{__make} install \ | |
109 | DESTDIR=$RPM_BUILD_ROOT | |
110 | ||
111 | %{__rm} $RPM_BUILD_ROOT%{_libdir}/*.la | |
112 | ||
113 | %clean | |
114 | rm -rf $RPM_BUILD_ROOT | |
115 | ||
116 | %post -p /sbin/ldconfig | |
117 | %postun -p /sbin/ldconfig | |
118 | ||
119 | %files | |
120 | %defattr(644,root,root,755) | |
121 | %doc AUTHORS NEWS README | |
122 | %attr(755,root,root) %{_bindir}/mbim-network | |
123 | %attr(755,root,root) %{_bindir}/mbimcli | |
650314ab | 124 | %attr(755,root,root) %{_libexecdir}/mbim-proxy |
23428ddc | 125 | %attr(755,root,root) %{_libdir}/libmbim-glib.so.*.*.* |
650314ab | 126 | %attr(755,root,root) %ghost %{_libdir}/libmbim-glib.so.4 |
1cd29b37 JB |
127 | %{_mandir}/man1/mbim-network.1* |
128 | %{_mandir}/man1/mbimcli.1* | |
23428ddc MB |
129 | |
130 | %files devel | |
131 | %defattr(644,root,root,755) | |
132 | %attr(755,root,root) %{_libdir}/libmbim-glib.so | |
133 | %{_includedir}/libmbim-glib | |
134 | %{_pkgconfigdir}/mbim-glib.pc | |
135 | ||
136 | %files static | |
137 | %defattr(644,root,root,755) | |
138 | %{_libdir}/libmbim-glib.a | |
139 | ||
140 | %if %{with apidocs} | |
141 | %files apidocs | |
142 | %defattr(644,root,root,755) | |
143 | %{_gtkdocdir}/libmbim-glib | |
144 | %endif | |
b12ed63f JB |
145 | |
146 | %files -n bash-completion-libmbim | |
147 | %defattr(644,root,root,755) | |
148 | %{bash_compdir}/mbimcli |