Dominique Leuenberger
b413ca9076
- update to 1.26.2: * The GUdev optional build/runtime requirement is now fully dropped, it's no longer used. * Implemented new link management operations, exclusively for the cdc_mbim driver for now. These new operations allow creating or deleting VLAN network interfaces in order to run multiplexed data sessions over one single physical network interface. * Added support for the Microsoft-defined SAR service, including the following operations: ** MBIM_CID_MS_SAR_CONFIG ** MBIM_CID_MS_SAR_TRANSMISSION_STATUS * libmbim-glib: ** Logic updated to make sure full packets are written at once, instead of writing them in chunks. ** Updated the "LTE attach status" APIs in order to avoid creating unneeded struct types in the interface. The older methods have been deprecated and maintained in the library for compatibility purposes only. * Bugfixes OBS-URL: https://build.opensuse.org/request/show/941711 OBS-URL: https://build.opensuse.org/package/show/network/libmbim?expand=0&rev=60
137 lines
4.1 KiB
RPMSpec
137 lines
4.1 KiB
RPMSpec
#
|
|
# spec file for package libmbim
|
|
#
|
|
# Copyright (c) 2021 SUSE LLC
|
|
# Copyright (c) 2013 Dominique Leuenberger, Amsterdam, The Netherlands
|
|
#
|
|
# All modifications and additions to the file contributed by third parties
|
|
# remain the property of their copyright owners, unless otherwise agreed
|
|
# upon. The license for this file, and modifications and additions to the
|
|
# file, is the same license as for the pristine package itself (unless the
|
|
# license for the pristine package is not an Open Source License, in which
|
|
# case the license is the MIT License). An "Open Source License" is a
|
|
# license that conforms to the Open Source Definition (Version 1.9)
|
|
# published by the Open Source Initiative.
|
|
|
|
# Please submit bugfixes or comments via https://bugs.opensuse.org/
|
|
#
|
|
|
|
|
|
Name: libmbim
|
|
Version: 1.26.2
|
|
Release: 0
|
|
Summary: Mobile Broadband Interface Model (MBIM) protocol
|
|
License: GPL-2.0-or-later AND LGPL-2.0-or-later
|
|
Group: Productivity/Networking/System
|
|
URL: https://www.freedesktop.org/wiki/Software/libmbim/
|
|
Source: https://www.freedesktop.org/software/libmbim/%{name}-%{version}.tar.xz
|
|
|
|
BuildRequires: pkgconfig
|
|
BuildRequires: python3-base
|
|
BuildRequires: pkgconfig(gio-2.0)
|
|
BuildRequires: pkgconfig(gio-unix-2.0)
|
|
BuildRequires: pkgconfig(glib-2.0) >= 2.48
|
|
BuildRequires: pkgconfig(gobject-2.0)
|
|
BuildRequires: pkgconfig(gobject-introspection-1.0)
|
|
|
|
%description
|
|
libmbim is a glib-based library for talking to WWAN modems and devices
|
|
which speak the Mobile Broadband Interface Model (MBIM) protocol.
|
|
|
|
%package -n libmbim-glib4
|
|
Summary: Mobile Broadband Interface Model (MBIM) protocol
|
|
License: LGPL-2.1-or-later
|
|
Group: System/Libraries
|
|
|
|
%description -n libmbim-glib4
|
|
libmbim is a glib-based library for talking to WWAN modems and devices
|
|
which speak the Mobile Broadband Interface Model (MBIM) protocol.
|
|
|
|
%package devel
|
|
Summary: Mobile Broadband Interface Model (MBIM) protocol - Development files
|
|
License: LGPL-2.1-or-later
|
|
Group: Development/Languages/C and C++
|
|
Requires: libmbim-glib4 = %{version}
|
|
|
|
%description devel
|
|
libmbim is a glib-based library for talking to WWAN modems and devices
|
|
which speak the Mobile Broadband Interface Model (MBIM) protocol.
|
|
|
|
%package -n mbimcli-bash-completion
|
|
Summary: Bash completion for mbimcli
|
|
License: GPL-2.0-or-later AND LGPL-2.0-or-later
|
|
Group: Productivity/Networking/System
|
|
BuildRequires: bash-completion
|
|
Requires: bash-completion
|
|
Supplements: packageand(%{name}:bash-completion)
|
|
|
|
%description -n mbimcli-bash-completion
|
|
This package contain de bash completion command for mbimcli tools.
|
|
|
|
%package -n typelib-1_0-Mbim-1_0
|
|
Summary: Introspection bindings for libmbim
|
|
License: GPL-2.0-or-later AND LGPL-2.0-or-later
|
|
Group: System/Libraries
|
|
|
|
%description -n typelib-1_0-Mbim-1_0
|
|
libmbim is a glib-based library for talking to WWAN modems and devices
|
|
which speak the Mobile Broadband Interface Model (MBIM) protocol.
|
|
|
|
This package provides the GObject Introspection bindings for libmbim.
|
|
|
|
%prep
|
|
%autosetup -p1
|
|
|
|
%build
|
|
# Do not rely on env for choosing python
|
|
sed -i "s|env python|python3|g" build-aux/mbim-codegen/*
|
|
%configure \
|
|
--with-udev \
|
|
--disable-static \
|
|
--enable-introspection=yes \
|
|
%{nil}
|
|
%make_build
|
|
|
|
%install
|
|
%make_install
|
|
find %{buildroot} -type f -name "*.la" -delete -print
|
|
|
|
%check
|
|
%make_build check
|
|
|
|
%post -n libmbim-glib4 -p /sbin/ldconfig
|
|
%postun -n libmbim-glib4 -p /sbin/ldconfig
|
|
|
|
%files
|
|
%license COPYING
|
|
%doc NEWS
|
|
%{_bindir}/mbim-network
|
|
%{_bindir}/mbimcli
|
|
%{_libexecdir}/mbim-proxy
|
|
%{_mandir}/man1/mbim-network.1%{?ext_man}
|
|
%{_mandir}/man1/mbimcli.1%{?ext_man}
|
|
|
|
%files -n libmbim-glib4
|
|
%license COPYING.LIB
|
|
|
|
%{_libdir}/libmbim-glib.so.*
|
|
|
|
%files devel
|
|
%doc AUTHORS README
|
|
# Own these directories to not depend on gtk-doc
|
|
%dir %{_datadir}/gtk-doc
|
|
%dir %{_datadir}/gtk-doc/html
|
|
%doc %{_datadir}/gtk-doc/html/libmbim-glib/
|
|
%{_datadir}/gir-1.0/*.gir
|
|
%{_includedir}/libmbim-glib/
|
|
%{_libdir}/libmbim-glib.so
|
|
%{_libdir}/pkgconfig/mbim-glib.pc
|
|
|
|
%files -n mbimcli-bash-completion
|
|
%{_datadir}/bash-completion/completions/mbimcli
|
|
|
|
%files -n typelib-1_0-Mbim-1_0
|
|
%{_libdir}/girepository-1.0/Mbim-1.0.typelib
|
|
|
|
%changelog
|