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
|
|
|
#
|
2018-01-22 11:26:41 +01:00
|
|
|
# Copyright (c) 2018 SUSE LINUX GmbH, Nuernberg, Germany.
|
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.
|
|
|
|
|
|
|
|
# Please submit bugfixes or comments via http://bugs.opensuse.org/
|
|
|
|
#
|
|
|
|
|
2014-02-02 07:36:05 +01:00
|
|
|
|
2016-04-23 23:41:14 +02:00
|
|
|
%define _soname libqmi-glib5
|
2018-01-22 11:26:41 +01:00
|
|
|
|
2017-11-02 12:13:59 +01:00
|
|
|
Name: libqmi
|
2018-01-22 11:26:41 +01:00
|
|
|
Version: 1.20.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
|
2017-11-02 12:13:59 +01:00
|
|
|
License: LGPL-2.1+ AND GPL-2.0+
|
2016-03-24 10:48:43 +01:00
|
|
|
Group: Hardware/Modem
|
2017-11-02 12:13:59 +01:00
|
|
|
URL: http://cgit.freedesktop.org/libqmi/
|
2014-02-02 07:36:05 +01:00
|
|
|
Source0: http://www.freedesktop.org/software/libqmi/%{name}-%{version}.tar.xz
|
2013-12-03 09:50:56 +01:00
|
|
|
Source99: libqmi-rpmlintrc
|
2017-11-02 12:13:59 +01:00
|
|
|
BuildRequires: python3
|
|
|
|
BuildRequires: pkgconfig
|
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
|
|
|
|
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
|
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
|
2013-12-03 09:50:56 +01:00
|
|
|
make %{?_smp_mflags}
|
|
|
|
|
|
|
|
%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
|
|
|
|
|
|
|
%post -n %{_soname} -p /sbin/ldconfig
|
|
|
|
%postun -n %{_soname} -p /sbin/ldconfig
|
|
|
|
|
|
|
|
%files tools
|
2018-01-22 11:26:41 +01:00
|
|
|
%doc COPYING 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}
|
2015-02-26 08:45:20 +01:00
|
|
|
%doc 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
|