Accepting request 209059 from GNOME:Factory

New package - for the ModemManager stack

OBS-URL: https://build.opensuse.org/request/show/209059
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/libqmi?expand=0&rev=1
This commit is contained in:
Stephan Kulow
2013-12-03 08:50:56 +00:00
committed by Git OBS Bridge
commit 758b82afe0
6 changed files with 130 additions and 0 deletions

96
libqmi.spec Normal file
View File

@@ -0,0 +1,96 @@
#
# spec file for package
#
# 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-glib0
Version: 1.0
Release: 0
# NOTE: The file headers state LESSER GPL, which is a mistake. The upstream intended license is LIBRARY GPL 2.0+
License: LGPL-2.0+
Summary: Library to control QMI devices
Url: http://cgit.freedesktop.org/libqmi/
Group: System/Libraries
Source0: http://ftp.gnome.org/pub/GNOME/sources/libqmi/1.0/%{name}-%{version}.tar.xz
Source99: libqmi-rpmlintrc
BuildRequires: pkgconfig(gio-2.0)
BuildRequires: pkgconfig(glib-2.0) >= 2.32
BuildRequires: pkgconfig(gobject-2.0)
BuildRoot: %{_tmppath}/%{name}-%{version}-build
%description
A GLib/GIO based library to control QMI devices
%package -n %{_soname}
Summary: Library to control QMI devices
Group: System/Libraries
# The tools are a useful addition
Recommends: %{name}-tools
%description -n %{_soname}
A GLib/GIO based library to control QMI devices
%package tools
Summary: Helper utilities to control QMI devices
Group: Hardware/Modem
%description tools
A GLib/GIO based library to control QMI devices.
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)
%{_bindir}/qmi-network
%{_bindir}/qmicli
%files -n %{_soname}
%defattr(-,root,root)
%{_libdir}/libqmi-glib.so.*
%files devel
%defattr(-,root,root)
%{_includedir}/libqmi-glib/
%{_libdir}/libqmi-glib.so
%{_libdir}/pkgconfig/qmi-glib.pc
%changelog