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

diff --git a/umockdev/umockdev.nm b/umockdev/umockdev.nm
new file mode 100644 (file)
index 0000000..54dd6e7
--- /dev/null
@@ -0,0 +1,66 @@
+###############################################################################
+# IPFire.org    - An Open Source Firewall Solution                            #
+# Copyright (C) - IPFire Development Team <info@ipfire.org>                   #
+###############################################################################
+
+name       = umockdev
+version    = 0.19.1
+release    = 1
+
+groups     = System/Tools
+url        = https://github.com/martinpitt/umockdev
+license    = LGPL2.1+
+summary    = Mock hardware devices.
+
+description
+       With this program and libraries you can easily create mock udev objects.
+       This is useful for writing tests for software which talks to
+       hardware devices.
+end
+
+source_dl  = https://github.com/martinpitt/%{name}/releases/download/%{version}/
+sources = %{thisapp}.tar.xz
+
+build
+       requires
+               glib2-devel
+               gobject-introspection-devel
+               libpcap-devel
+               libudev-devel
+               meson
+               ninja
+               pkg-config
+               vala = 0.56.17
+               strace
+               elfutils
+       end
+
+       configure_options =\
+               --buildtype=release
+
+       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}-debuginfo
+               template DEBUGINFO
+       end
+end