--- /dev/null
+###############################################################################
+# 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