]> git.ipfire.org Git - people/stevee/ipfire-3.x.git/commitdiff
libmbim: New package
authorStefan Schantl <stefan.schantl@ipfire.org>
Thu, 9 Jan 2025 18:51:00 +0000 (19:51 +0100)
committerStefan Schantl <stefan.schantl@ipfire.org>
Thu, 9 Jan 2025 18:51:00 +0000 (19:51 +0100)
Signed-off-by: Stefan Schantl <stefan.schantl@ipfire.org>
libmbim/libmbim.nm [new file with mode: 0644]

diff --git a/libmbim/libmbim.nm b/libmbim/libmbim.nm
new file mode 100644 (file)
index 0000000..3f1c833
--- /dev/null
@@ -0,0 +1,88 @@
+###############################################################################
+# 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