libmbim/libmbim.spec

119 lines
3.6 KiB
RPMSpec
Raw Normal View History

#
# spec file for package libmbim
#
# Copyright (c) 2019 SUSE LINUX GmbH, Nuernberg, Germany.
# 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.18.0
Release: 0
Summary: Mobile Interface Broadband Model (MBIM) protocol
License: GPL-2.0-or-later AND LGPL-2.0-or-later
Group: Productivity/Networking/System
URL: http://www.freedesktop.org/wiki/Software/libmbim/
Source: http://www.freedesktop.org/software/libmbim/%{name}-%{version}.tar.xz
BuildRequires: pkgconfig
BuildRequires: python3
BuildRequires: pkgconfig(gio-2.0)
BuildRequires: pkgconfig(gio-unix-2.0)
BuildRequires: pkgconfig(glib-2.0) >= 2.36
BuildRequires: pkgconfig(gobject-2.0)
BuildRequires: pkgconfig(gudev-1.0) >= 147
%description
libmbim is a glib-based library for talking to WWAN modems and devices
which speak the Mobile Interface Broadband Model (MBIM) protocol.
Accepting request 261389 from GNOME:Next - Update to version 1.10.0: + API break: Flag values in 'MbimRegistrationFlag' were updated to match the ones in the MBIM documentation. + Implemented a new 'mbim-proxy', which allows sharing a single MBIM control port among different processes. The usage of the proxy is optional, and can be requested by specifying the MBIM_DEVICE_OPEN_FLAGS_PROXY flag in the new mbim_device_open_full() method. The 'mbimcli' command line tool was also extended with a new '--device-open-proxy,-p' option, to allow requesting the use of the proxy process. + New 'removed' signal added to the MbimDevice, to notify when the underlying connection to the device is lost (e.g. lost connection to the mbim-proxy, or lost access to the MBIM control port). + Added support for registering and using custom services. + Added additional GMM cause codes to MbimNwError. + Transactions are now matched not only by ID but also by type. + Several other minor improvements and fixes. - Changes from version 1.8.0: + Added support for additional MBIM messages: - MBIM_CID_MS_FIRMWARE_ID_GET - MBIM_CID_MS_HOST_SHUTDOWN_NOTIFY + Updated mbimcli with new commands: - --set-radio-state - --ms-query-firmware-id - --ms-notify-host-shutdown - --dss-connect - --dss-disconnect + Several enums and functions were renamed, and marked as deprecated. A small layer is given to provide backwards OBS-URL: https://build.opensuse.org/request/show/261389 OBS-URL: https://build.opensuse.org/package/show/network/libmbim?expand=0&rev=7
2014-11-13 18:25:10 +01:00
%package -n libmbim-glib4
Summary: Mobile Interface Broadband Model (MBIM) protocol
License: LGPL-2.1-or-later
Group: System/Libraries
Accepting request 261389 from GNOME:Next - Update to version 1.10.0: + API break: Flag values in 'MbimRegistrationFlag' were updated to match the ones in the MBIM documentation. + Implemented a new 'mbim-proxy', which allows sharing a single MBIM control port among different processes. The usage of the proxy is optional, and can be requested by specifying the MBIM_DEVICE_OPEN_FLAGS_PROXY flag in the new mbim_device_open_full() method. The 'mbimcli' command line tool was also extended with a new '--device-open-proxy,-p' option, to allow requesting the use of the proxy process. + New 'removed' signal added to the MbimDevice, to notify when the underlying connection to the device is lost (e.g. lost connection to the mbim-proxy, or lost access to the MBIM control port). + Added support for registering and using custom services. + Added additional GMM cause codes to MbimNwError. + Transactions are now matched not only by ID but also by type. + Several other minor improvements and fixes. - Changes from version 1.8.0: + Added support for additional MBIM messages: - MBIM_CID_MS_FIRMWARE_ID_GET - MBIM_CID_MS_HOST_SHUTDOWN_NOTIFY + Updated mbimcli with new commands: - --set-radio-state - --ms-query-firmware-id - --ms-notify-host-shutdown - --dss-connect - --dss-disconnect + Several enums and functions were renamed, and marked as deprecated. A small layer is given to provide backwards OBS-URL: https://build.opensuse.org/request/show/261389 OBS-URL: https://build.opensuse.org/package/show/network/libmbim?expand=0&rev=7
2014-11-13 18:25:10 +01:00
%description -n libmbim-glib4
libmbim is a glib-based library for talking to WWAN modems and devices
which speak the Mobile Interface Broadband Model (MBIM) protocol.
%package devel
Summary: Mobile Interface Broadband Model (MBIM) protocol - Development files
License: LGPL-2.1-or-later
Group: Development/Languages/C and C++
Accepting request 261389 from GNOME:Next - Update to version 1.10.0: + API break: Flag values in 'MbimRegistrationFlag' were updated to match the ones in the MBIM documentation. + Implemented a new 'mbim-proxy', which allows sharing a single MBIM control port among different processes. The usage of the proxy is optional, and can be requested by specifying the MBIM_DEVICE_OPEN_FLAGS_PROXY flag in the new mbim_device_open_full() method. The 'mbimcli' command line tool was also extended with a new '--device-open-proxy,-p' option, to allow requesting the use of the proxy process. + New 'removed' signal added to the MbimDevice, to notify when the underlying connection to the device is lost (e.g. lost connection to the mbim-proxy, or lost access to the MBIM control port). + Added support for registering and using custom services. + Added additional GMM cause codes to MbimNwError. + Transactions are now matched not only by ID but also by type. + Several other minor improvements and fixes. - Changes from version 1.8.0: + Added support for additional MBIM messages: - MBIM_CID_MS_FIRMWARE_ID_GET - MBIM_CID_MS_HOST_SHUTDOWN_NOTIFY + Updated mbimcli with new commands: - --set-radio-state - --ms-query-firmware-id - --ms-notify-host-shutdown - --dss-connect - --dss-disconnect + Several enums and functions were renamed, and marked as deprecated. A small layer is given to provide backwards OBS-URL: https://build.opensuse.org/request/show/261389 OBS-URL: https://build.opensuse.org/package/show/network/libmbim?expand=0&rev=7
2014-11-13 18:25:10 +01:00
Requires: libmbim-glib4 = %{version}
%description devel
libmbim is a glib-based library for talking to WWAN modems and devices
which speak the Mobile Interface Broadband Model (MBIM) protocol.
Accepting request 407815 from home:bruno_friedmann:branches:network Find the last update of libmbim to version 1.14. It will be needed to have the final new ModemManager 1.6 submitted for TW. + New support for the 'QMI over MBIM' service, so that clients can use libqmi to build messages and libmbim to transport them. + The GUDev library, which we use to read the max message size from the USB descriptor, is now optional. When configuring, it will be used by default only if it's found. It can also be explicitly disabled using the new configure switch '--without-udev' or explicitly enabled using '--with-udev'. If GUDev isn't used, libmbim-glib will rely on sysfs directly. + libmbim-glib updates: Added support for building messages of custom services. + mbim-network updates: Added support for loading profiles from different paths using the new '--profile' option. This makes it possible to use mbim-network with multiple devices running in the same system. Added support to allow specifying APN user (APN_USER), password (APN_PASS) and authentication type (APN_AUTH) in the profile. Added support to allow using the mbim-proxy setup by configuring it in the profile file (PROXY=yes). + Several other minor improvements and fixes. The following features which were backported to 1.12.x releases are also present in libmbim 1.14.0: + mbimcli updates: Updated '--connect' arguments to allow specifying "key=value" pairs. The old legacy "[(APN),(PAP|CHAP|MSCHAPV2),(Username) ,(Password)]" format is kept as valid for backwards compatibility, although it should be assumed deprecated. Longer timeouts for connect/register operations. Report IP configuration when connected. Allow specifying session ids. OBS-URL: https://build.opensuse.org/request/show/407815 OBS-URL: https://build.opensuse.org/package/show/network/libmbim?expand=0&rev=16
2016-07-20 13:40:44 +02:00
%package -n mbimcli-bash-completion
Summary: Bash completion for mbimcli
License: GPL-2.0-or-later AND LGPL-2.0-or-later
Accepting request 407815 from home:bruno_friedmann:branches:network Find the last update of libmbim to version 1.14. It will be needed to have the final new ModemManager 1.6 submitted for TW. + New support for the 'QMI over MBIM' service, so that clients can use libqmi to build messages and libmbim to transport them. + The GUDev library, which we use to read the max message size from the USB descriptor, is now optional. When configuring, it will be used by default only if it's found. It can also be explicitly disabled using the new configure switch '--without-udev' or explicitly enabled using '--with-udev'. If GUDev isn't used, libmbim-glib will rely on sysfs directly. + libmbim-glib updates: Added support for building messages of custom services. + mbim-network updates: Added support for loading profiles from different paths using the new '--profile' option. This makes it possible to use mbim-network with multiple devices running in the same system. Added support to allow specifying APN user (APN_USER), password (APN_PASS) and authentication type (APN_AUTH) in the profile. Added support to allow using the mbim-proxy setup by configuring it in the profile file (PROXY=yes). + Several other minor improvements and fixes. The following features which were backported to 1.12.x releases are also present in libmbim 1.14.0: + mbimcli updates: Updated '--connect' arguments to allow specifying "key=value" pairs. The old legacy "[(APN),(PAP|CHAP|MSCHAPV2),(Username) ,(Password)]" format is kept as valid for backwards compatibility, although it should be assumed deprecated. Longer timeouts for connect/register operations. Report IP configuration when connected. Allow specifying session ids. OBS-URL: https://build.opensuse.org/request/show/407815 OBS-URL: https://build.opensuse.org/package/show/network/libmbim?expand=0&rev=16
2016-07-20 13:40:44 +02:00
Group: Productivity/Networking/System
BuildRequires: bash-completion
Requires: bash-completion
Supplements: packageand(%{name}:bash-completion)
Accepting request 407815 from home:bruno_friedmann:branches:network Find the last update of libmbim to version 1.14. It will be needed to have the final new ModemManager 1.6 submitted for TW. + New support for the 'QMI over MBIM' service, so that clients can use libqmi to build messages and libmbim to transport them. + The GUDev library, which we use to read the max message size from the USB descriptor, is now optional. When configuring, it will be used by default only if it's found. It can also be explicitly disabled using the new configure switch '--without-udev' or explicitly enabled using '--with-udev'. If GUDev isn't used, libmbim-glib will rely on sysfs directly. + libmbim-glib updates: Added support for building messages of custom services. + mbim-network updates: Added support for loading profiles from different paths using the new '--profile' option. This makes it possible to use mbim-network with multiple devices running in the same system. Added support to allow specifying APN user (APN_USER), password (APN_PASS) and authentication type (APN_AUTH) in the profile. Added support to allow using the mbim-proxy setup by configuring it in the profile file (PROXY=yes). + Several other minor improvements and fixes. The following features which were backported to 1.12.x releases are also present in libmbim 1.14.0: + mbimcli updates: Updated '--connect' arguments to allow specifying "key=value" pairs. The old legacy "[(APN),(PAP|CHAP|MSCHAPV2),(Username) ,(Password)]" format is kept as valid for backwards compatibility, although it should be assumed deprecated. Longer timeouts for connect/register operations. Report IP configuration when connected. Allow specifying session ids. OBS-URL: https://build.opensuse.org/request/show/407815 OBS-URL: https://build.opensuse.org/package/show/network/libmbim?expand=0&rev=16
2016-07-20 13:40:44 +02:00
%description -n mbimcli-bash-completion
This package contain de bash completion command for mbimcli tools.
%prep
%setup -q
%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
make %{?_smp_mflags}
%install
%make_install
find %{buildroot} -type f -name "*.la" -delete -print
%check
make %{?_smp_mflags} check
%post -n libmbim-glib4 -p /sbin/ldconfig
Accepting request 261389 from GNOME:Next - Update to version 1.10.0: + API break: Flag values in 'MbimRegistrationFlag' were updated to match the ones in the MBIM documentation. + Implemented a new 'mbim-proxy', which allows sharing a single MBIM control port among different processes. The usage of the proxy is optional, and can be requested by specifying the MBIM_DEVICE_OPEN_FLAGS_PROXY flag in the new mbim_device_open_full() method. The 'mbimcli' command line tool was also extended with a new '--device-open-proxy,-p' option, to allow requesting the use of the proxy process. + New 'removed' signal added to the MbimDevice, to notify when the underlying connection to the device is lost (e.g. lost connection to the mbim-proxy, or lost access to the MBIM control port). + Added support for registering and using custom services. + Added additional GMM cause codes to MbimNwError. + Transactions are now matched not only by ID but also by type. + Several other minor improvements and fixes. - Changes from version 1.8.0: + Added support for additional MBIM messages: - MBIM_CID_MS_FIRMWARE_ID_GET - MBIM_CID_MS_HOST_SHUTDOWN_NOTIFY + Updated mbimcli with new commands: - --set-radio-state - --ms-query-firmware-id - --ms-notify-host-shutdown - --dss-connect - --dss-disconnect + Several enums and functions were renamed, and marked as deprecated. A small layer is given to provide backwards OBS-URL: https://build.opensuse.org/request/show/261389 OBS-URL: https://build.opensuse.org/package/show/network/libmbim?expand=0&rev=7
2014-11-13 18:25:10 +01:00
%postun -n libmbim-glib4 -p /sbin/ldconfig
%files
%license COPYING
%doc NEWS
%{_bindir}/mbim-network
%{_bindir}/mbimcli
Accepting request 261389 from GNOME:Next - Update to version 1.10.0: + API break: Flag values in 'MbimRegistrationFlag' were updated to match the ones in the MBIM documentation. + Implemented a new 'mbim-proxy', which allows sharing a single MBIM control port among different processes. The usage of the proxy is optional, and can be requested by specifying the MBIM_DEVICE_OPEN_FLAGS_PROXY flag in the new mbim_device_open_full() method. The 'mbimcli' command line tool was also extended with a new '--device-open-proxy,-p' option, to allow requesting the use of the proxy process. + New 'removed' signal added to the MbimDevice, to notify when the underlying connection to the device is lost (e.g. lost connection to the mbim-proxy, or lost access to the MBIM control port). + Added support for registering and using custom services. + Added additional GMM cause codes to MbimNwError. + Transactions are now matched not only by ID but also by type. + Several other minor improvements and fixes. - Changes from version 1.8.0: + Added support for additional MBIM messages: - MBIM_CID_MS_FIRMWARE_ID_GET - MBIM_CID_MS_HOST_SHUTDOWN_NOTIFY + Updated mbimcli with new commands: - --set-radio-state - --ms-query-firmware-id - --ms-notify-host-shutdown - --dss-connect - --dss-disconnect + Several enums and functions were renamed, and marked as deprecated. A small layer is given to provide backwards OBS-URL: https://build.opensuse.org/request/show/261389 OBS-URL: https://build.opensuse.org/package/show/network/libmbim?expand=0&rev=7
2014-11-13 18:25:10 +01:00
%{_libexecdir}/mbim-proxy
%{_mandir}/man1/mbim-network.1%{?ext_man}
%{_mandir}/man1/mbimcli.1%{?ext_man}
Accepting request 261389 from GNOME:Next - Update to version 1.10.0: + API break: Flag values in 'MbimRegistrationFlag' were updated to match the ones in the MBIM documentation. + Implemented a new 'mbim-proxy', which allows sharing a single MBIM control port among different processes. The usage of the proxy is optional, and can be requested by specifying the MBIM_DEVICE_OPEN_FLAGS_PROXY flag in the new mbim_device_open_full() method. The 'mbimcli' command line tool was also extended with a new '--device-open-proxy,-p' option, to allow requesting the use of the proxy process. + New 'removed' signal added to the MbimDevice, to notify when the underlying connection to the device is lost (e.g. lost connection to the mbim-proxy, or lost access to the MBIM control port). + Added support for registering and using custom services. + Added additional GMM cause codes to MbimNwError. + Transactions are now matched not only by ID but also by type. + Several other minor improvements and fixes. - Changes from version 1.8.0: + Added support for additional MBIM messages: - MBIM_CID_MS_FIRMWARE_ID_GET - MBIM_CID_MS_HOST_SHUTDOWN_NOTIFY + Updated mbimcli with new commands: - --set-radio-state - --ms-query-firmware-id - --ms-notify-host-shutdown - --dss-connect - --dss-disconnect + Several enums and functions were renamed, and marked as deprecated. A small layer is given to provide backwards OBS-URL: https://build.opensuse.org/request/show/261389 OBS-URL: https://build.opensuse.org/package/show/network/libmbim?expand=0&rev=7
2014-11-13 18:25:10 +01:00
%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/
%{_includedir}/libmbim-glib/
%{_libdir}/libmbim-glib.so
%{_libdir}/pkgconfig/mbim-glib.pc
Accepting request 407815 from home:bruno_friedmann:branches:network Find the last update of libmbim to version 1.14. It will be needed to have the final new ModemManager 1.6 submitted for TW. + New support for the 'QMI over MBIM' service, so that clients can use libqmi to build messages and libmbim to transport them. + The GUDev library, which we use to read the max message size from the USB descriptor, is now optional. When configuring, it will be used by default only if it's found. It can also be explicitly disabled using the new configure switch '--without-udev' or explicitly enabled using '--with-udev'. If GUDev isn't used, libmbim-glib will rely on sysfs directly. + libmbim-glib updates: Added support for building messages of custom services. + mbim-network updates: Added support for loading profiles from different paths using the new '--profile' option. This makes it possible to use mbim-network with multiple devices running in the same system. Added support to allow specifying APN user (APN_USER), password (APN_PASS) and authentication type (APN_AUTH) in the profile. Added support to allow using the mbim-proxy setup by configuring it in the profile file (PROXY=yes). + Several other minor improvements and fixes. The following features which were backported to 1.12.x releases are also present in libmbim 1.14.0: + mbimcli updates: Updated '--connect' arguments to allow specifying "key=value" pairs. The old legacy "[(APN),(PAP|CHAP|MSCHAPV2),(Username) ,(Password)]" format is kept as valid for backwards compatibility, although it should be assumed deprecated. Longer timeouts for connect/register operations. Report IP configuration when connected. Allow specifying session ids. OBS-URL: https://build.opensuse.org/request/show/407815 OBS-URL: https://build.opensuse.org/package/show/network/libmbim?expand=0&rev=16
2016-07-20 13:40:44 +02:00
%files -n mbimcli-bash-completion
%{_datadir}/bash-completion/completions/mbimcli
%changelog