--- /dev/null
+###############################################################################
+# IPFire.org - An Open Source Firewall Solution #
+# Copyright (C) - IPFire Development Team <info@ipfire.org> #
+###############################################################################
+
+name = ModemManager
+version = 1.22.0
+release = 1
+
+groups = System/Tools
+url = https://modemmanager.org/docs/modemmanager/
+license = GPLv2
+summary = Mobile broadband modem management service.
+
+description
+ ModemManager provides a unified high level API for communicating with mobile
+ broadband modems, regardless of the protocol used to communicate with the
+ actual device (Generic AT, vendor-specific AT, QCDM, QMI, MBIM...).
+end
+
+source_dl = https://gitlab.freedesktop.org/mobile-broadband/%{name}/-/archive/%{version}/
+sources = %{thisapp}.tar.gz
+
+build
+ requires
+ bash-completion-devel
+ dbus
+ dbus-devel
+ docbook-xsl
+ gettext-devel
+ gobject-introspection-devel
+ glib2-devel
+ help2man
+ libgudev-devel
+ libmbim-devel
+ libqmi-devel
+ libqrtr-glib-devel
+ libudev-devel
+ meson
+ ninja
+ pkg-config
+ polkit-devel >= 123
+ systemd-devel
+ end
+
+ configure_options =\
+ --buildtype=release \
+ -D udevdir=/usr/lib/udev \
+ -D systemdsystemunitdir=%{unitdir} \
+ -D qmi=true \
+ -D mbim=true \
+ -D qrtr=true \
+ -D polkit=permissive \
+ -D at_command_via_dbus=true \
+ -D bash_completion=true \
+ -D introspection=true \
+ -D man=true \
+ -D gtk_doc=false \
+ -D systemd_suspend_resume=false
+
+ build
+ # Call meson and pass configure options
+ %{meson} %{configure_options}
+
+ # Call ninja to start build
+ %{meson_build}
+ end
+
+ test
+ # Testsuite can not be executed because it requires
+ # a running dbus instance
+ #%{meson_test} || true
+ end
+
+ install
+ # Call meson for install
+ %{meson_install}
+ end
+end
+
+packages
+ package %{name}
+
+ package %{name}-devel
+ template DEVEL
+ end
+
+ package %{name}-debuginfo
+ template DEBUGINFO
+ end
+end