2013-12-03 09:50:56 +01:00
|
|
|
#
|
2014-02-02 07:36:05 +01:00
|
|
|
# spec file for package libqmi
|
2013-12-03 09:50:56 +01:00
|
|
|
#
|
2020-01-06 07:41:49 +01:00
|
|
|
# Copyright (c) 2020 SUSE LLC
|
2013-12-03 09:50:56 +01:00
|
|
|
# Copyright (c) 2012 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.
|
|
|
|
|
2020-01-06 07:41:49 +01:00
|
|
|
# Please submit bugfixes or comments via https://bugs.opensuse.org/
|
2013-12-03 09:50:56 +01:00
|
|
|
#
|
|
|
|
|
2014-02-02 07:36:05 +01:00
|
|
|
|
2016-04-23 23:41:14 +02:00
|
|
|
%define _soname libqmi-glib5
|
2019-11-08 14:13:33 +01:00
|
|
|
|
2017-11-02 12:13:59 +01:00
|
|
|
Name: libqmi
|
Accepting request 874481 from home:polslinux:branches:network
- update to 1.28.0:
* The QmiDevice interfaces to work with the expected data format and the wwan
interface name should now be considered to be specific to QMI devices exposed
by the upstream 'qmi_wwan' kernel driver. If the device is exposed with a
different driver (e.g. PCIe or QRTR) these methods will always fail.
* The QmiDevice now supports configuring the 'pass_through' sysfs setting in
the network interfaces exposed by the 'qmi_wwan' kernel driver, with a new
'qmap-pass-through' expected data format type. In this mode, the network
device will be managed by the rmnet kernel driver. A new method is also
provided to check in runtime whether a given expected data format value is
supported by the kernel or not.
* The QmiDevice now includes methods to list, create and delete links on the
network interface, that can be used to setup QMAP based multiplexing of
different data streams, e.g. connected to different APNs. When using the
'qmi_wwan' kernel driver, the link management logic depends on the configured
expected data format:
** rmnet netlink operations will be used if 'qmap-pass-through' expected
data format is configured.
** add_mux/del_mux operations will be used if 'raw-ip' expected data format
is configured.
* New services:
** New 'SAR' (Specific Absorption Rate) service, with support for the "Set RF
State" and "Get RF State" request/responses.
* New request/response/indications:
** uim: implement "Refresh Register" request/response.
** uim: implement "Refresh Register All" request/response.
** uim: implement "Refresh Complete" request/response.
** uim: implement "Refresh" indication.
** loc: implement "Get Engine Lock" request/response.
** loc: implement "Set Engine Lock" request/response.
** nas: implement "Get DRX" request/response.
** nas: implement "Get PLMN Name" request/response.
** wms: implement "Send Ack" request/response.
** wds: implement "Bind Data Port" request/response.
** wds: implement "Get Max LTE Attach PDN Number" request/response.
** wds: implement "Get LTE Attach PDN List" request/response.
** wds: implement "Set LTE Attach PDN List" request/response.
** wds: implement "Set LTE Attach PDN List" indication.
** wds: implement "Get LTE Attach Parameters" request/response.
** wds: renamed "Get Default Profile Num" to "Get Default Profile Number",
and provided compat symbols to avoid breaking API.
** wds: renamed "Set Default Profile Num" to "Set Default Profile Number",
and provided compat symbols to avoid breaking API.
* New TLVs supported in existing messages:
** nas: added the "Rx Chain 2/3 Info" TLVs in "Get Tx Rx Info".
** nas: added the "LTE Info Timing Advance" TLV in "Get Cell Location Info".
** nas: added the "LTE Voice Domain", "CDMA Registration Zone ID", "GSM
Routing Area Code", "WCDMA Routing Area Code" and "CDMA Resolved MCC"
TLVs in "Get System Info".
* libqmi-glib:
** Added support for 'embedded' and 'pcie' endpoint types.
** Added support for QMAPv5 data aggregation type.
* qmicli:
** When built with QRTR support, the '--device' option now allows QRTR URIs
(e.g. 'qrtr://0').
** New '--link-list', '--link-add', '--link-delete' and '--link-delete-all'
commands.
** New '--uim-monitor-refresh-file' command.
** New '--uim-monitor-refresh-all' command.
** New '--wds-bind-data-port' command.
** New '-loc-get-operation-mode' and '--loc-set-operation-mode' commands.
** New '-loc-get-engine-lock' and '--loc-set-engine-lock' commands.
** New '--wds-get-lte-attach-parameters' command.
** New '--wds-get-max-lte-attach-pdn-num' command.
** New '--wds-get-lte-attach-pdn-list' and '--wds-set-lte-attach-pdn-list'
commands.
** Updated the '--wds-start-network' command with a timeout of 180s.
** Updated the '--wds-stop-network' command with a timeout of 120s.
** Updated the '--dms-set-firmware-preference' command to use a key-value
pair based input instead of predefined fields.
* collections:
** basic: added UIM event registration commands.
** basic: added UIM slot management commands.
** basic: added UIM refresh related commands.
** basic: added WDS bind data port commands.
** basic: added WDS initial LTE bearer management commands.
** basic: added NAS PLMN name commands.
OBS-URL: https://build.opensuse.org/request/show/874481
OBS-URL: https://build.opensuse.org/package/show/network/libqmi?expand=0&rev=38
2021-02-28 19:41:24 +01:00
|
|
|
Version: 1.28.0
|
2013-12-03 09:50:56 +01:00
|
|
|
Release: 0
|
|
|
|
# NOTE: The file headers state LESSER GPL, which is a mistake. The upstream intended license is LIBRARY GPL 2.0+
|
|
|
|
Summary: Library to control QMI devices
|
2020-01-06 07:41:49 +01:00
|
|
|
License: LGPL-2.1-or-later AND GPL-2.0-or-later
|
2016-03-24 10:48:43 +01:00
|
|
|
Group: Hardware/Modem
|
Accepting request 664184 from GNOME:Next
- Update to version 1.22.0:
+ Build now looks for the correct python provider in the system
during configure.
+ New services: New 'QoS' (Quality of Service) service, with some
minimal initial implementation to support flow/network status
querying. Additionally, some Sierra-specific commands are also
implemented that allow querying per-bearer statistics (e.g. if
multiple dedicated and default LTE bearers are used).
+ New request/responses/indications:
- loc: new "Register Events" request/response.
- loc: new "NMEA" indication.
- loc: new "Engine State" indication.
- loc: new "Fix Recurrence Type" indication.
- loc: new "GNSS Sv Info" indication.
- loc: new "Inject Predicted Orbits Data"
request/response/indication.
- loc: new "Get Predicted Orbits Data Source"
request/response/indication.
- loc: new "Set Server" request/response/indication.
- loc: new "Get Server" request/response/indication.
- loc: new "Delete Assistance Data"
request/response/indication.
- loc: new "Set Operation Mode" request/response/indication.
- loc: new "Get Operation Mode" request/response/indication.
- loc: new "Inject XTRA Data" request/response/indication.
- uim: new "Card Status" indication.
- wds: new "Get Default Profile Num" request/response.
- wds: new "Set Default Profile Num" request/response.
- wds: new Sierra-specific "Swi Create Profile Indexed"
request/response.
+ New TLVs supported in existing messages:
- loc: added multiple new TLVs in the "Position Report"
indication, which was a minimal skeleton in previous
releases.
- loc: added 'Fix Recurrence Type' TLV in "Start".
- loc: added 'Minimum Interval between Position Reports' TLV in
"Start".
- nas: added 'Acquisition Order Preference' TLV in "Set System
Selection Preference" and "Get System Selection Preference".
- nas: added 'Phy CA Agg Secondary Cells' TLV in "Get LTE Cphy
CA Info".
- wds: added 'WDS APN Disabled Flag' TLV in "Create Profile",
"Modify Profile" and "Get Profile Settings".
- wds: added 'WDS Roaming Disallowed Flag' TLV in "Create
Profile", "Modify Profile" and "Get Profile Settings".
+ libqmi:
- Assume TLVs < 0x10 are mandatory by default.
- Fixed some missing QmiProtocolErrors and updated some
existing ones.
- Implemented support to allow enabling QMI indications when in
MBIM mode.
- Addded missing QmiNasBandPreference and
QmiDmsLteBandCapability flags.
- Deprecate QMI_CORE_ERROR_TLV_EMPTY, as empty TLVs are allowed
by the protocol and totally valid e.g. in 0-sized string-type
TLVs.
- Moved all deprecated APIs to 'qmi-compat.h' header.
+ qmicli:
- New '--loc-get-position-report' command.
- New '--loc-get-gnss-sv-info' command.
- New '--loc-follow-position-report' command.
- New '--loc-follow-gnss-sv-info' command.
- New '--loc-follow-nmea' command.
- New '--loc-delete-assistance-data' command.
- New '--qos-get-flow-status' command.
- New '--qos-get-network-status' command.
- New '--qos-swi-read-data-stats' command.
- New '--qos-reset' command.
- New '--wds-create-profile' command.
- New '--wds-modify-profile' command.
- New '--wds-delete-profile' command.
- New '--wds-get-default-profile-num' command.
- New '--wds-set-default-profile-num' command.
- New '--wds-swi-create-profile-indexed' command.
- Added support to request acquisition order preference updates
when using '--nas-set-system-selection-preference'.
- Fixed slot indices in '--uim-get-card-status'.
- Fixed '--uim-set-pin-protection', '--uim-verify-pin",
"--uim-unblock-pin", and '--uim-change-pin', so that a dummy
application identifier is always used.
- Updated so that all commands work even through QMI over MBIM,
even if indications are required to complete the command
(e.g. most PDC and LOC commands).
+ qmi-network: Avoid creating invalid --wds-start-network when
APN is not set.
+ Several other minor improvements and fixes.
OBS-URL: https://build.opensuse.org/request/show/664184
OBS-URL: https://build.opensuse.org/package/show/network/libqmi?expand=0&rev=22
2019-01-10 09:21:51 +01:00
|
|
|
URL: https://www.freedesktop.org/wiki/Software/libqmi/
|
|
|
|
Source0: https://www.freedesktop.org/software/libqmi/%{name}-%{version}.tar.xz
|
2013-12-03 09:50:56 +01:00
|
|
|
Source99: libqmi-rpmlintrc
|
2019-03-03 09:41:12 +01:00
|
|
|
|
2017-11-02 12:13:59 +01:00
|
|
|
BuildRequires: pkgconfig
|
2020-01-06 07:41:49 +01:00
|
|
|
BuildRequires: python3-base
|
2013-12-03 09:50:56 +01:00
|
|
|
BuildRequires: pkgconfig(gio-2.0)
|
2018-01-22 11:26:41 +01:00
|
|
|
BuildRequires: pkgconfig(gio-unix-2.0)
|
2017-05-19 10:57:57 +02:00
|
|
|
BuildRequires: pkgconfig(glib-2.0) >= 2.36
|
2013-12-03 09:50:56 +01:00
|
|
|
BuildRequires: pkgconfig(gobject-2.0)
|
2017-05-19 10:57:57 +02:00
|
|
|
BuildRequires: pkgconfig(gudev-1.0) >= 147
|
2016-07-20 09:03:59 +02:00
|
|
|
BuildRequires: pkgconfig(mbim-glib) >= 1.14
|
2013-12-03 09:50:56 +01:00
|
|
|
|
|
|
|
%description
|
2016-03-24 10:48:43 +01:00
|
|
|
libqmi is a glib-based library for talking to WWAN modems and devices
|
|
|
|
which speak the Qualcomm MSM Interface (QMI) protocol.
|
2013-12-03 09:50:56 +01:00
|
|
|
|
|
|
|
%package -n %{_soname}
|
|
|
|
Summary: Library to control QMI devices
|
|
|
|
Group: System/Libraries
|
|
|
|
# The tools are a useful addition
|
|
|
|
Recommends: %{name}-tools
|
|
|
|
|
|
|
|
%description -n %{_soname}
|
2016-03-24 10:48:43 +01:00
|
|
|
libqmi is a glib-based library for talking to WWAN modems and devices
|
|
|
|
which speak the Qualcomm MSM Interface (QMI) protocol.
|
2013-12-03 09:50:56 +01:00
|
|
|
|
|
|
|
%package tools
|
|
|
|
Summary: Helper utilities to control QMI devices
|
|
|
|
Group: Hardware/Modem
|
|
|
|
|
|
|
|
%description tools
|
2016-03-24 10:48:43 +01:00
|
|
|
libqmi is a glib-based library for talking to WWAN modems and devices
|
|
|
|
which speak the Qualcomm MSM Interface (QMI) protocol.
|
2013-12-03 09:50:56 +01:00
|
|
|
|
|
|
|
This package contains command line tools to manage such devices.
|
|
|
|
|
|
|
|
%package devel
|
2018-03-08 11:58:31 +01:00
|
|
|
Summary: Development files for the QMI device control library
|
2013-12-03 09:50:56 +01:00
|
|
|
Group: Development/Languages/C and C++
|
|
|
|
Requires: %{_soname} = %{version}
|
|
|
|
|
|
|
|
%description devel
|
|
|
|
A GLib/GIO based library to control QMI devices
|
|
|
|
|
|
|
|
This package contains files required to link sources against libqmi.
|
|
|
|
|
|
|
|
%prep
|
2019-03-03 09:41:12 +01:00
|
|
|
%autosetup -p1
|
2013-12-03 09:50:56 +01:00
|
|
|
|
|
|
|
%build
|
2017-11-02 12:13:59 +01:00
|
|
|
# Do not rely on env for choosing python
|
|
|
|
sed -i "s|env python|python3|g" build-aux/qmi-codegen/*
|
2013-12-03 09:50:56 +01:00
|
|
|
%configure \
|
2017-11-02 12:13:59 +01:00
|
|
|
--disable-static
|
2019-11-08 14:13:33 +01:00
|
|
|
%make_build
|
2013-12-03 09:50:56 +01:00
|
|
|
|
|
|
|
%install
|
|
|
|
%make_install
|
2017-11-02 12:13:59 +01:00
|
|
|
find %{buildroot} -type f -name "*.la" -delete -print
|
2013-12-03 09:50:56 +01:00
|
|
|
|
2019-12-16 08:55:11 +01:00
|
|
|
%check
|
|
|
|
make %{?_smp_mflags} check
|
|
|
|
|
2013-12-03 09:50:56 +01:00
|
|
|
%post -n %{_soname} -p /sbin/ldconfig
|
|
|
|
%postun -n %{_soname} -p /sbin/ldconfig
|
|
|
|
|
|
|
|
%files tools
|
2018-03-02 15:25:24 +01:00
|
|
|
%license COPYING
|
|
|
|
%doc NEWS
|
2013-12-03 09:50:56 +01:00
|
|
|
%{_bindir}/qmi-network
|
|
|
|
%{_bindir}/qmicli
|
2017-05-19 10:57:57 +02:00
|
|
|
%{_bindir}/qmi-firmware-update
|
2016-04-23 23:41:14 +02:00
|
|
|
# Own dirs to avoid depending on them while building
|
|
|
|
%dir %{_datadir}/bash-completion
|
|
|
|
%dir %{_datadir}/bash-completion/completions
|
|
|
|
%{_datadir}/bash-completion/completions/qmicli
|
2014-02-02 07:36:05 +01:00
|
|
|
%{_libexecdir}/qmi-proxy
|
|
|
|
%{_mandir}/man1/qmi-network.1%{?ext_man}
|
|
|
|
%{_mandir}/man1/qmicli.1%{?ext_man}
|
2017-05-19 10:57:57 +02:00
|
|
|
%{_mandir}/man1/qmi-firmware-update.1%{?ext_man}
|
2013-12-03 09:50:56 +01:00
|
|
|
|
|
|
|
%files -n %{_soname}
|
2018-03-02 15:25:24 +01:00
|
|
|
%license COPYING.LIB
|
|
|
|
|
2013-12-03 09:50:56 +01:00
|
|
|
%{_libdir}/libqmi-glib.so.*
|
|
|
|
|
|
|
|
%files devel
|
2018-01-22 11:26:41 +01:00
|
|
|
%doc AUTHORS README TODO
|
|
|
|
#Own these directories to not depend on gtk-doc
|
|
|
|
%dir %{_datadir}/gtk-doc
|
|
|
|
%dir %{_datadir}/gtk-doc/html
|
|
|
|
%doc %{_datadir}/gtk-doc/html/libqmi-glib/
|
2013-12-03 09:50:56 +01:00
|
|
|
%{_includedir}/libqmi-glib/
|
|
|
|
%{_libdir}/libqmi-glib.so
|
|
|
|
%{_libdir}/pkgconfig/qmi-glib.pc
|
|
|
|
|
|
|
|
%changelog
|