--- /dev/null
+###############################################################################
+# IPFire.org - An Open Source Firewall Solution #
+# Copyright (C) - IPFire Development Team <info@ipfire.org> #
+###############################################################################
+
+name = libmbim
+version = 1.30.0
+release = 1
+
+groups = System/Libraries
+url = https://modemmanager.org/docs/libmbim/
+license = LGPL2.1+
+summary = Support library for the Mobile Broadband Interface Model protocol.
+
+description
+ This package contains the libraries that make it easier to use MBIM
+ functionality from applications that use glib.
+end
+
+source_dl = https://gitlab.freedesktop.org/mobile-broadband/%{name}/-/archive/%{version}/
+sources = %{thisapp}.tar.gz
+
+build
+ requires
+ bash-completion-devel
+ gobject-introspection-devel
+ glib2-devel
+ help2man
+ meson
+ ninja
+ pkg-config
+ end
+
+ configure_options =\
+ --buildtype=release \
+ -D bash_completion=true \
+ -D introspection=true \
+ -D gtk_doc=false
+
+ 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
+ # Call meson for install
+ %{meson_install}
+ end
+end
+
+packages
+ package %{name}
+
+ package %{name}-utils
+ summary = Utilities to use the MBIM protocol from the command line.
+ description
+ This package contains the utilities that make it easier to use MBIM
+ functionality from the command line.
+ end
+
+ requires
+ %{name} = %{thisver}
+ end
+
+ files
+ %{bindir}/mbim*
+ %{prefix}/lib/mbim-proxy
+ %{mandir}/man1/mbim*
+ %{datadir}/bash-completion
+ end
+ end
+
+ package %{name}-devel
+ template DEVEL
+ end
+
+ package %{name}-debuginfo
+ template DEBUGINFO
+ end
+end