]> git.ipfire.org Git - people/stevee/ipfire-3.x.git/commitdiff
libqmi: New package
authorStefan Schantl <stefan.schantl@ipfire.org>
Sun, 12 Jan 2025 14:44:30 +0000 (15:44 +0100)
committerStefan Schantl <stefan.schantl@ipfire.org>
Sun, 12 Jan 2025 14:44:30 +0000 (15:44 +0100)
libqmi/libqmi.nm [new file with mode: 0644]

diff --git a/libqmi/libqmi.nm b/libqmi/libqmi.nm
new file mode 100644 (file)
index 0000000..0f38c93
--- /dev/null
@@ -0,0 +1,96 @@
+###############################################################################
+# IPFire.org    - An Open Source Firewall Solution                            #
+# Copyright (C) - IPFire Development Team <info@ipfire.org>                   #
+###############################################################################
+
+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