]>
Commit | Line | Data |
---|---|---|
4791ee5d | 1 | # TODO: -Dmbim_username=??? |
23428ddc MB |
2 | # |
3 | # Conditional build: | |
4791ee5d | 4 | %bcond_without apidocs # (gtk-doc based) API documentation |
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 |
4791ee5d | 9 | Version: 1.28.4 |
b12ed63f | 10 | Release: 1 |
23428ddc MB |
11 | License: LGPL v2 |
12 | Group: Libraries | |
4791ee5d JB |
13 | #Source0Download: https://gitlab.freedesktop.org/mobile-broadband/libmbim/-/tags |
14 | Source0: https://gitlab.freedesktop.org/mobile-broadband/libmbim/-/archive/%{version}/%{name}-%{version}.tar.bz2 | |
15 | # Source0-md5: b04f563cf883cd1168bcb20c367ae8da | |
8996c755 | 16 | URL: https://www.freedesktop.org/wiki/Software/libmbim |
1a263d45 | 17 | BuildRequires: bash-completion-devel |
eb089e1f | 18 | BuildRequires: glib2-devel >= 1:2.56 |
b0a8c42d | 19 | BuildRequires: gobject-introspection-devel >= 0.9.6 |
1cd29b37 | 20 | BuildRequires: gtk-doc >= 1.0 |
819b40f9 | 21 | BuildRequires: help2man |
4791ee5d JB |
22 | BuildRequires: meson >= 0.53.0 |
23 | BuildRequires: ninja >= 1.5 | |
23428ddc | 24 | BuildRequires: pkgconfig |
b8069edc | 25 | BuildRequires: python3 >= 1:3 |
1c40c429 | 26 | BuildRequires: rpm-build >= 4.6 |
4791ee5d | 27 | BuildRequires: rpmbuild(macros) >= 1.736 |
eb089e1f | 28 | Requires: glib2 >= 1:2.56 |
23428ddc MB |
29 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) |
30 | ||
31 | %description | |
32 | libmbim is a GLib library for talking to WWAN modems and devices which | |
33 | speak the Mobile Interface Broadband Model (MBIM) protocol. | |
34 | ||
a88dd252 JB |
35 | %description -l pl.UTF-8 |
36 | libmbim to biblioteka GLib do komunikacji z modemami i urządzeniami | |
37 | WWAN, obsługującymi protokół MBIM (Mobile Interface Broadband Model). | |
38 | ||
23428ddc MB |
39 | %package devel |
40 | Summary: Header files for libmbim library | |
41 | Summary(pl.UTF-8): Pliki nagłówkowe biblioteki libmbim | |
42 | Group: Development/Libraries | |
43 | Requires: %{name} = %{version}-%{release} | |
eb089e1f | 44 | Requires: glib2-devel >= 1:2.56 |
23428ddc MB |
45 | |
46 | %description devel | |
47 | Header files for libmbim library. | |
48 | ||
49 | %description devel -l pl.UTF-8 | |
50 | Pliki nagłówkowe biblioteki libmbim. | |
51 | ||
52 | %package static | |
53 | Summary: Static libmbim library | |
54 | Summary(pl.UTF-8): Statyczna biblioteka libmbim | |
55 | Group: Development/Libraries | |
56 | Requires: %{name}-devel = %{version}-%{release} | |
57 | ||
58 | %description static | |
59 | Static libmbim library. | |
60 | ||
61 | %description static -l pl.UTF-8 | |
62 | Statyczna biblioteka libmbim. | |
63 | ||
64 | %package apidocs | |
65 | Summary: libmbim API documentation | |
66 | Summary(pl.UTF-8): Dokumentacja API biblioteki libmbim | |
67 | Group: Documentation | |
68 | Requires: gtk-doc-common | |
784e80e4 | 69 | BuildArch: noarch |
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} | |
4791ee5d | 82 | Requires: bash-completion >= 1:2.0 |
6920ae44 | 83 | BuildArch: noarch |
b12ed63f JB |
84 | |
85 | %description -n bash-completion-libmbim | |
86 | Bash completion for libmbim commands (mbimcli). | |
87 | ||
88 | %description -n bash-completion-libmbim -l pl.UTF-8 | |
89 | Bashowe dopełnianie składni poleceń libmbim (mbimcli). | |
90 | ||
23428ddc MB |
91 | %prep |
92 | %setup -q | |
93 | ||
94 | %build | |
4791ee5d JB |
95 | %meson build \ |
96 | %{?with_apidocs:-Dgtk_doc=true} | |
97 | ||
98 | %ninja_build -C build | |
23428ddc MB |
99 | |
100 | %install | |
101 | rm -rf $RPM_BUILD_ROOT | |
102 | ||
4791ee5d | 103 | %ninja_install -C build |
23428ddc MB |
104 | |
105 | %clean | |
106 | rm -rf $RPM_BUILD_ROOT | |
107 | ||
108 | %post -p /sbin/ldconfig | |
109 | %postun -p /sbin/ldconfig | |
110 | ||
111 | %files | |
112 | %defattr(644,root,root,755) | |
4791ee5d | 113 | %doc AUTHORS NEWS README.md |
23428ddc MB |
114 | %attr(755,root,root) %{_bindir}/mbim-network |
115 | %attr(755,root,root) %{_bindir}/mbimcli | |
650314ab | 116 | %attr(755,root,root) %{_libexecdir}/mbim-proxy |
23428ddc | 117 | %attr(755,root,root) %{_libdir}/libmbim-glib.so.*.*.* |
650314ab | 118 | %attr(755,root,root) %ghost %{_libdir}/libmbim-glib.so.4 |
b0a8c42d | 119 | %{_libdir}/girepository-1.0/Mbim-1.0.typelib |
1cd29b37 JB |
120 | %{_mandir}/man1/mbim-network.1* |
121 | %{_mandir}/man1/mbimcli.1* | |
23428ddc MB |
122 | |
123 | %files devel | |
124 | %defattr(644,root,root,755) | |
125 | %attr(755,root,root) %{_libdir}/libmbim-glib.so | |
126 | %{_includedir}/libmbim-glib | |
b0a8c42d | 127 | %{_datadir}/gir-1.0/Mbim-1.0.gir |
23428ddc MB |
128 | %{_pkgconfigdir}/mbim-glib.pc |
129 | ||
130 | %files static | |
131 | %defattr(644,root,root,755) | |
132 | %{_libdir}/libmbim-glib.a | |
133 | ||
134 | %if %{with apidocs} | |
135 | %files apidocs | |
136 | %defattr(644,root,root,755) | |
137 | %{_gtkdocdir}/libmbim-glib | |
138 | %endif | |
b12ed63f JB |
139 | |
140 | %files -n bash-completion-libmbim | |
141 | %defattr(644,root,root,755) | |
142 | %{bash_compdir}/mbimcli |