]>
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 |
b8069edc | 9 | Version: 1.26.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 |
b8069edc | 14 | # Source0-md5: 8893edbfd16e1198c018277cd2ad487e |
8996c755 | 15 | URL: https://www.freedesktop.org/wiki/Software/libmbim |
23428ddc MB |
16 | BuildRequires: autoconf >= 2.68 |
17 | BuildRequires: automake >= 1:1.11 | |
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 |
23428ddc MB |
22 | BuildRequires: libtool >= 2:2.2 |
23 | BuildRequires: pkgconfig | |
b8069edc | 24 | BuildRequires: python3 >= 1:3 |
1c40c429 | 25 | BuildRequires: rpm-build >= 4.6 |
b12ed63f | 26 | BuildRequires: rpmbuild(macros) >= 1.673 |
eb089e1f | 27 | Requires: glib2 >= 1:2.56 |
23428ddc MB |
28 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) |
29 | ||
30 | %description | |
31 | libmbim is a GLib library for talking to WWAN modems and devices which | |
32 | speak the Mobile Interface Broadband Model (MBIM) protocol. | |
33 | ||
a88dd252 JB |
34 | %description -l pl.UTF-8 |
35 | libmbim to biblioteka GLib do komunikacji z modemami i urządzeniami | |
36 | WWAN, obsługującymi protokół MBIM (Mobile Interface Broadband Model). | |
37 | ||
23428ddc MB |
38 | %package devel |
39 | Summary: Header files for libmbim library | |
40 | Summary(pl.UTF-8): Pliki nagłówkowe biblioteki libmbim | |
41 | Group: Development/Libraries | |
42 | Requires: %{name} = %{version}-%{release} | |
eb089e1f | 43 | Requires: glib2-devel >= 1:2.56 |
23428ddc MB |
44 | |
45 | %description devel | |
46 | Header files for libmbim library. | |
47 | ||
48 | %description devel -l pl.UTF-8 | |
49 | Pliki nagłówkowe biblioteki libmbim. | |
50 | ||
51 | %package static | |
52 | Summary: Static libmbim library | |
53 | Summary(pl.UTF-8): Statyczna biblioteka libmbim | |
54 | Group: Development/Libraries | |
55 | Requires: %{name}-devel = %{version}-%{release} | |
56 | ||
57 | %description static | |
58 | Static libmbim library. | |
59 | ||
60 | %description static -l pl.UTF-8 | |
61 | Statyczna biblioteka libmbim. | |
62 | ||
63 | %package apidocs | |
64 | Summary: libmbim API documentation | |
65 | Summary(pl.UTF-8): Dokumentacja API biblioteki libmbim | |
66 | Group: Documentation | |
67 | Requires: gtk-doc-common | |
784e80e4 | 68 | BuildArch: noarch |
23428ddc MB |
69 | |
70 | %description apidocs | |
71 | API documentation for libmbim library. | |
72 | ||
73 | %description apidocs -l pl.UTF-8 | |
74 | Dokumentacja API biblioteki libmbim. | |
75 | ||
b12ed63f JB |
76 | %package -n bash-completion-libmbim |
77 | Summary: Bash completion for libmbim commands | |
78 | Summary(pl.UTF-8): Bashowe dopełnianie składni poleceń libmbim | |
79 | Group: Applications/Shells | |
80 | Requires: %{name} = %{version}-%{release} | |
81 | Requires: bash-completion >= 2.0 | |
82 | ||
83 | %description -n bash-completion-libmbim | |
84 | Bash completion for libmbim commands (mbimcli). | |
85 | ||
86 | %description -n bash-completion-libmbim -l pl.UTF-8 | |
87 | Bashowe dopełnianie składni poleceń libmbim (mbimcli). | |
88 | ||
23428ddc MB |
89 | %prep |
90 | %setup -q | |
91 | ||
92 | %build | |
93 | %{__libtoolize} | |
94 | %{__aclocal} -I m4 | |
95 | %{__autoconf} | |
96 | %{__autoheader} | |
97 | %{__automake} | |
98 | %configure \ | |
b8069edc | 99 | PYTHON=%{__python3} \ |
23428ddc | 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 |
b0a8c42d | 127 | %{_libdir}/girepository-1.0/Mbim-1.0.typelib |
1cd29b37 JB |
128 | %{_mandir}/man1/mbim-network.1* |
129 | %{_mandir}/man1/mbimcli.1* | |
23428ddc MB |
130 | |
131 | %files devel | |
132 | %defattr(644,root,root,755) | |
133 | %attr(755,root,root) %{_libdir}/libmbim-glib.so | |
134 | %{_includedir}/libmbim-glib | |
b0a8c42d | 135 | %{_datadir}/gir-1.0/Mbim-1.0.gir |
23428ddc MB |
136 | %{_pkgconfigdir}/mbim-glib.pc |
137 | ||
138 | %files static | |
139 | %defattr(644,root,root,755) | |
140 | %{_libdir}/libmbim-glib.a | |
141 | ||
142 | %if %{with apidocs} | |
143 | %files apidocs | |
144 | %defattr(644,root,root,755) | |
145 | %{_gtkdocdir}/libmbim-glib | |
146 | %endif | |
b12ed63f JB |
147 | |
148 | %files -n bash-completion-libmbim | |
149 | %defattr(644,root,root,755) | |
150 | %{bash_compdir}/mbimcli |