]> git.ipfire.org Git - people/stevee/ipfire-3.x.git/commitdiff
libgudev: New package
authorStefan Schantl <stefan.schantl@ipfire.org>
Sun, 12 Jan 2025 13:59:58 +0000 (14:59 +0100)
committerStefan Schantl <stefan.schantl@ipfire.org>
Sun, 12 Jan 2025 13:59:58 +0000 (14:59 +0100)
Signed-off-by: Stefan Schantl <stefan.schantl@ipfire.org>
libgudev/libgudev.nm [new file with mode: 0644]

diff --git a/libgudev/libgudev.nm b/libgudev/libgudev.nm
new file mode 100644 (file)
index 0000000..bc2f05d
--- /dev/null
@@ -0,0 +1,70 @@
+###############################################################################
+# IPFire.org    - An Open Source Firewall Solution                            #
+# Copyright (C) - IPFire Development Team <info@ipfire.org>                   #
+###############################################################################
+
+name       = libgudev
+version    = 238
+release    = 1
+
+groups     = System/Libraries
+url        = https://gitlab.gnome.org/GNOME/libgudev/
+license    = LGPLv2.1
+summary    = GObject bindings for libudev.
+
+description
+       This library provides GObject bindings for libudev.
+end
+
+source_dl  = https://download.gnome.org/sources/%{name}/%{version}/
+sources = %{thisapp}.tar.xz
+
+build
+       requires
+               glib2-devel
+               gobject-introspection-devel
+               libudev-devel
+               meson
+               ninja
+               pkg-config
+               umockdev-devel
+               vala = 0.56.17
+       end
+
+       configure_options =\
+               --buildtype=release \
+               -D introspection=enabled
+       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 and install
+               %{meson_install}
+       end
+end
+
+packages
+       package %{name}
+
+       package %{name}-devel
+               template DEVEL
+
+               requires
+                       pkgconfig(libudev)
+               end
+       end
+
+       package %{name}-debuginfo
+               template DEBUGINFO
+       end
+end