From f90e216038dda3b5909a15ba0145b244619386cf Mon Sep 17 00:00:00 2001 From: Stefan Schantl Date: Sun, 12 Jan 2025 14:56:53 +0100 Subject: [PATCH] umockdev: New package Signed-off-by: Stefan Schantl --- umockdev/umockdev.nm | 66 ++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 66 insertions(+) create mode 100644 umockdev/umockdev.nm diff --git a/umockdev/umockdev.nm b/umockdev/umockdev.nm new file mode 100644 index 000000000..54dd6e7f2 --- /dev/null +++ b/umockdev/umockdev.nm @@ -0,0 +1,66 @@ +############################################################################### +# IPFire.org - An Open Source Firewall Solution # +# Copyright (C) - IPFire Development Team # +############################################################################### + +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 -- 2.47.3