Dirk Mueller
c1959f682f
Find last revision with optimized Packaging options + add missing exclude in rpmlintrc + add BuildRequires for having QMUX over MBIM option - Update to version 1.16.0 + New `--enable-mbim-qmux' option during configure, which enables the support for using an MBIM control device as transport for the QMI messages, only if the MBIM device implements the "QMI service". This setting is automatically enabled if libmbim >= 1.14.0 is found in the system, and can be explicitly disabled with `--disable-mbim-qmux'. + New request/responses: ++ nas: new "Get LTE Cphy CA Info" request/response. ++ nas: new "Force Network Search" request/response. + qmi-network: ++ Fixed several bashisms. The following features which were backported to 1.14.x releases are also present in libqmi 1.16.0: + Added compatibility symbols for some API breaks introduced in 1.14.0: ++ qmi_message_dms_set_service_programming_code_input_get_current was renamed to qmi_message_dms_set_service_programming_code_input_get_current_code. ++ qmi_message_dms_set_service_programming_code_input_get_new was renamed to qmi_message_dms_set_service_programming_code_input_get_new_code. ++ qmi_message_dms_set_service_programming_code_input_set_current was renamed to qmi_message_dms_set_service_programming_code_input_set_current_code. ++ qmi_message_dms_set_service_programming_code_input_set_new was renamed to qmi_message_dms_set_service_programming_code_input_set_new_code. ++ QMI_NAS_SIM_REJECT_STATE_SIM_VAILABLE was renamed to QMI_NAS_SIM_REJECT_STATE_SIM_AVAILABLE. + libqmi-glib: OBS-URL: https://build.opensuse.org/request/show/407856 OBS-URL: https://build.opensuse.org/package/show/network/libqmi?expand=0&rev=14
113 lines
3.4 KiB
RPMSpec
113 lines
3.4 KiB
RPMSpec
#
|
|
# spec file for package libqmi
|
|
#
|
|
# Copyright (c) 2014 SUSE LINUX Products GmbH, Nuernberg, Germany.
|
|
# 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.
|
|
|
|
# Please submit bugfixes or comments via http://bugs.opensuse.org/
|
|
#
|
|
|
|
|
|
Name: libqmi
|
|
%define _soname libqmi-glib5
|
|
Version: 1.16.0
|
|
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
|
|
License: LGPL-2.1+ and GPL-2.0+
|
|
Group: Hardware/Modem
|
|
Url: http://cgit.freedesktop.org/libqmi/
|
|
Source0: http://www.freedesktop.org/software/libqmi/%{name}-%{version}.tar.xz
|
|
Source99: libqmi-rpmlintrc
|
|
BuildRequires: pkgconfig(gio-2.0)
|
|
BuildRequires: pkgconfig(glib-2.0) >= 2.32
|
|
BuildRequires: pkgconfig(gobject-2.0)
|
|
BuildRequires: pkgconfig(mbim-glib) >= 1.14
|
|
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
|
|
|
%description
|
|
libqmi is a glib-based library for talking to WWAN modems and devices
|
|
which speak the Qualcomm MSM Interface (QMI) protocol.
|
|
|
|
%package -n %{_soname}
|
|
Summary: Library to control QMI devices
|
|
Group: System/Libraries
|
|
# The tools are a useful addition
|
|
Recommends: %{name}-tools
|
|
|
|
%description -n %{_soname}
|
|
libqmi is a glib-based library for talking to WWAN modems and devices
|
|
which speak the Qualcomm MSM Interface (QMI) protocol.
|
|
|
|
%package tools
|
|
Summary: Helper utilities to control QMI devices
|
|
Group: Hardware/Modem
|
|
|
|
%description tools
|
|
libqmi is a glib-based library for talking to WWAN modems and devices
|
|
which speak the Qualcomm MSM Interface (QMI) protocol.
|
|
|
|
This package contains command line tools to manage such devices.
|
|
|
|
%package devel
|
|
Summary: Library to control QMI devices -- Development files
|
|
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
|
|
%setup -q
|
|
|
|
%build
|
|
%configure \
|
|
--disable-static
|
|
make %{?_smp_mflags}
|
|
|
|
%install
|
|
%make_install
|
|
find %{buildroot}%{_libdir} -type f -name '*.la' -delete -print
|
|
|
|
%post -n %{_soname} -p /sbin/ldconfig
|
|
|
|
%postun -n %{_soname} -p /sbin/ldconfig
|
|
|
|
%files tools
|
|
%defattr(-,root,root)
|
|
%doc COPYING
|
|
%{_bindir}/qmi-network
|
|
%{_bindir}/qmicli
|
|
# Own dirs to avoid depending on them while building
|
|
%dir %{_datadir}/bash-completion
|
|
%dir %{_datadir}/bash-completion/completions
|
|
%{_datadir}/bash-completion/completions/qmicli
|
|
%{_libexecdir}/qmi-proxy
|
|
%{_mandir}/man1/qmi-network.1%{?ext_man}
|
|
%{_mandir}/man1/qmicli.1%{?ext_man}
|
|
|
|
%files -n %{_soname}
|
|
%defattr(-,root,root)
|
|
%doc COPYING.LIB
|
|
%{_libdir}/libqmi-glib.so.*
|
|
|
|
%files devel
|
|
%defattr(-,root,root)
|
|
%{_datadir}/gtk-doc/html/libqmi-glib/
|
|
%{_includedir}/libqmi-glib/
|
|
%{_libdir}/libqmi-glib.so
|
|
%{_libdir}/pkgconfig/qmi-glib.pc
|
|
|
|
%changelog
|