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