commit 758b82afe08c8a2aacab14124f66c8b5a4dc698887e9f575af538b493f962969 Author: Stephan Kulow Date: Tue Dec 3 08:50:56 2013 +0000 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 diff --git a/.gitattributes b/.gitattributes new file mode 100644 index 0000000..9b03811 --- /dev/null +++ b/.gitattributes @@ -0,0 +1,23 @@ +## Default LFS +*.7z filter=lfs diff=lfs merge=lfs -text +*.bsp filter=lfs diff=lfs merge=lfs -text +*.bz2 filter=lfs diff=lfs merge=lfs -text +*.gem filter=lfs diff=lfs merge=lfs -text +*.gz filter=lfs diff=lfs merge=lfs -text +*.jar filter=lfs diff=lfs merge=lfs -text +*.lz filter=lfs diff=lfs merge=lfs -text +*.lzma filter=lfs diff=lfs merge=lfs -text +*.obscpio filter=lfs diff=lfs merge=lfs -text +*.oxt filter=lfs diff=lfs merge=lfs -text +*.pdf filter=lfs diff=lfs merge=lfs -text +*.png filter=lfs diff=lfs merge=lfs -text +*.rpm filter=lfs diff=lfs merge=lfs -text +*.tbz filter=lfs diff=lfs merge=lfs -text +*.tbz2 filter=lfs diff=lfs merge=lfs -text +*.tgz filter=lfs diff=lfs merge=lfs -text +*.ttf filter=lfs diff=lfs merge=lfs -text +*.txz filter=lfs diff=lfs merge=lfs -text +*.whl filter=lfs diff=lfs merge=lfs -text +*.xz filter=lfs diff=lfs merge=lfs -text +*.zip filter=lfs diff=lfs merge=lfs -text +*.zst filter=lfs diff=lfs merge=lfs -text diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..57affb6 --- /dev/null +++ b/.gitignore @@ -0,0 +1 @@ +.osc diff --git a/libqmi-1.0.tar.xz b/libqmi-1.0.tar.xz new file mode 100644 index 0000000..279574d --- /dev/null +++ b/libqmi-1.0.tar.xz @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:a1ad00fee1f730a9172934de1e506995cf0cba1b213a3d6076e35c18ed698c70 +size 545860 diff --git a/libqmi-rpmlintrc b/libqmi-rpmlintrc new file mode 100644 index 0000000..72ae515 --- /dev/null +++ b/libqmi-rpmlintrc @@ -0,0 +1,2 @@ +# The main package is called libqmi but is not shared lib.. elimintate false warning. +addFilter("libqmi-tools\..*: W: shlib-policy-missing-lib"); diff --git a/libqmi.changes b/libqmi.changes new file mode 100644 index 0000000..77597b3 --- /dev/null +++ b/libqmi.changes @@ -0,0 +1,5 @@ +------------------------------------------------------------------- +Mon Dec 10 17:23:34 UTC 2012 - dimstar@opensuse.org + +- Initial package, release 1.0. + diff --git a/libqmi.spec b/libqmi.spec new file mode 100644 index 0000000..a563a4f --- /dev/null +++ b/libqmi.spec @@ -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