Name: umockdev Version: 0.19.9 Release: 1.20261114114607526440.pr287.17.g496896a%{?dist} Summary: Mock hardware devices License: LGPL-2.1-or-later URL: https://github.com/martinpitt/%{name} Source0: umockdev-0.19.9.17.g496896a.tar.xz BuildRequires: git BuildRequires: meson BuildRequires: gtk-doc BuildRequires: gobject-introspection-devel BuildRequires: glib2-devel BuildRequires: libgudev1-devel systemd-devel BuildRequires: libpcap-devel BuildRequires: vala BuildRequires: chrpath BuildRequires: systemd-udev %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. %package devel Summary: Development packages for %{name} Requires: %{name}%{?_isa} = %{version}-%{release} %description devel The %{name}-devel package contains the libraries to develop using %{name}. %prep %autosetup -S git -n umockdev-0.19.9.17.g496896a %build %meson -Dgtk_doc=true %meson_build %check # don't be too picky about timing; upstream CI and local developer tests # are strict, but many koji arches are emulated and utterly slow export SLOW_TESTBED_FACTOR=10 %meson_test %install %meson_install # Remove rpath chrpath --delete %{buildroot}%{_bindir}/umockdev-record \ %{buildroot}%{_bindir}/umockdev-run chrpath --delete %{buildroot}%{_libdir}/libumockdev.so.* chrpath --delete %{buildroot}%{_libdir}/libumockdev-preload.so.* rm -rf $RPM_BUILD_ROOT/%{_datadir}/doc/umockdev %ldconfig_scriptlets %files %license COPYING %doc README.md %{_bindir}/umockdev-* %{_libdir}/libumockdev.so.* %{_libdir}/libumockdev-preload.so* %{_libdir}/girepository-1.0/UMockdev-1.0.typelib %files devel %doc docs/script-format.txt docs/examples/battery.c docs/examples/battery.py %{_libdir}/libumockdev.so %{_libdir}/pkgconfig/umockdev-1.0.pc %{_datadir}/gir-1.0/UMockdev-1.0.gir %{_includedir}/umockdev-1.0 %{_datadir}/gtk-doc/html/umockdev/ %{_datadir}/vala/vapi/umockdev-1.0.vapi %changelog * Sat Nov 14 2026 Packit - 0.19.9-1.20261114114607526440.pr287.17.g496896a - umockdev-record: Fix recording attributes in nested subdirectories (Martin Pitt) - preload: Write the script log header right away (Martin Pitt) - preload: Don't export internal global variables (Martin Pitt) - preload: Let host devices with their own ioctl handler reach it again (Martin Pitt) - preload: Emulate devices opened with openat() and an absolute path (Martin Pitt) - preload: Block signals before taking the path lock (Martin Pitt) - tests: Cover open() in the ioctl lock signal safety test (Martin Pitt) - preload: Make block-then-lock the only way to take the ioctl lock (Martin Pitt) - preload: Don't leak the ioctl socket and script log into child processes (Martin Pitt) - preload: Don't track failed /dev opens (Martin Pitt) - treewide: Replace tabs with spaces (Martin Pitt) - preload: Keep emulating devices on dup()ed fds (Matthew Kosarek) - preload: Let fd_map_remove() tell whether the data is still in use (Matthew Kosarek) - preload: Wrap fcntl() (Matthew Kosarek) - preload: Hold the ioctl lock when changing ioctl_wrapped_fds (Matthew Kosarek) - preload: Factor out fd_untrack() from close() and fclose() (Matthew Kosarek) - COPYING: Update FSF address (Martin Pitt)