From: Stefan Schantl Date: Sun, 12 Jan 2025 14:44:30 +0000 (+0100) Subject: libqmi: New package X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=f0e6bce8cf879cfe6fb614103804132e7c807393;p=people%2Fstevee%2Fipfire-3.x.git libqmi: New package --- diff --git a/libqmi/libqmi.nm b/libqmi/libqmi.nm new file mode 100644 index 000000000..0f38c9339 --- /dev/null +++ b/libqmi/libqmi.nm @@ -0,0 +1,96 @@ +############################################################################### +# IPFire.org - An Open Source Firewall Solution # +# Copyright (C) - IPFire Development Team # +############################################################################### + +name = libqmi +version = 1.34.0 +release = 1 + +groups = System/Libraries +url = https://www.freedesktop.org/wiki/Software/libqmi/ +license = GPL2.0+ +summary = QMI modem protocol helper library. + +description + libqmi is a glib-based library for talking to WWAN modems and devices + which speak the Qualcomm MSM Interface (QMI) protocol. +end + +source_dl = https://gitlab.freedesktop.org/mobile-broadband/%{name}/-/archive/%{version}/ +sources = %{thisapp}.tar.gz + +build + requires + bash-completion-devel + help2man + glib2-devel + gobject-introspection-devel + libgudev-devel + libmbim-devel + libqrtr-glib-devel + meson + ninja + pkg-config + end + + configure_options =\ + --prefix=%{prefix} \ + --libdir=%{libdir} \ + --buildtype=release \ + -Dcollection=full \ + -Dmbim_qmux=true \ + -Dqrtr=true \ + -Dgtk_doc=false \ + -Dintrospection=true \ + -Dbash_completion=true + + build + # Call meson and pass configure options. + %{meson} %{configure_options} + + # Call ninja to start build + %{meson_build} + end + + test + # Run the testsuite. + %{meson_test} || true + end + + install + # Install libqmi. + %{meson_install} + end +end + +packages + package %{name} + + package %{name}-utils + summary = Utilities to use the QMI protocol from the command line. + description + This package contains the utilities that make it easier to use QMI + functionality from the command line. + end + + requires + %{name} = %{thisver} + end + + files + %{bindir}/qmi* + %{prefix}/lib/qmi-proxy + %{mandir}/man1/qmi* + %{datadir}/bash-completion + end + end + + package %{name}-devel + template DEVEL + end + + package %{name}-debuginfo + template DEBUGINFO + end +end