diff --git a/.fmf/version b/.fmf/version deleted file mode 100644 index d00491f..0000000 --- a/.fmf/version +++ /dev/null @@ -1 +0,0 @@ -1 diff --git a/.gitignore b/.gitignore index 72f3671..f9700b8 100644 --- a/.gitignore +++ b/.gitignore @@ -5,50 +5,4 @@ /0.9.2.tar.gz /0.10.tar.gz /0.11.tar.gz -/0.11.1.tar.gz -/0.11.2.tar.gz /0.11.3.tar.gz -/0.12.1.tar.gz -/0.13.1.tar.gz -/0.13.2.tar.gz -/0.14.tar.gz -/0.14.1.tar.gz -/0.14.2.tar.gz -/0.14.3.tar.gz -/0.14.4.tar.gz -/0.15.1.tar.gz -/0.15.3.tar.gz -/0.15.4.tar.gz -/umockdev-0.15.5.tar.xz -/umockdev-0.16.0.tar.xz -/umockdev-0.16.1.tar.xz -/umockdev-0.16.2.tar.xz -/umockdev-0.16.3.tar.xz -/umockdev-0.17.0.tar.xz -/umockdev-0.17.1.tar.xz -/umockdev-0.17.2.tar.xz -/umockdev-0.17.5.tar.xz -/umockdev-0.17.6.tar.xz -/umockdev-0.17.7.tar.xz -/umockdev-0.17.8.tar.xz -/umockdev-0.17.9.tar.xz -/umockdev-0.17.10.tar.xz -/umockdev-0.17.12.tar.xz -/umockdev-0.17.13.tar.xz -/umockdev-0.17.15.tar.xz -/umockdev-0.17.16.tar.xz -/umockdev-0.17.17.tar.xz -/umockdev-0.17.18.tar.xz -/umockdev-0.18.0.tar.xz -/umockdev-0.18.1.tar.xz -/umockdev-0.18.2.tar.xz -/umockdev-0.18.3.tar.xz -/umockdev-0.18.4.tar.xz -/umockdev-0.19.0.tar.xz -/umockdev-0.19.1.tar.xz -/umockdev-0.19.2.tar.xz -/umockdev-0.19.3.tar.xz -/umockdev-0.19.4.tar.xz -/umockdev-0.19.5.tar.xz -/umockdev-0.19.6.tar.xz -/umockdev-0.19.8.tar.xz diff --git a/README.packit b/README.packit deleted file mode 100644 index dd0af79..0000000 --- a/README.packit +++ /dev/null @@ -1,3 +0,0 @@ -This repository is maintained by packit. -https://packit.dev/ -The file was generated using packit 1.16.1. diff --git a/gating.yaml b/gating.yaml deleted file mode 100644 index 5a2cf7d..0000000 --- a/gating.yaml +++ /dev/null @@ -1,14 +0,0 @@ ---- !Policy -product_versions: - - fedora-* -decision_context: bodhi_update_push_stable -rules: - - !PassingTestCaseRule {test_case_name: fedora-ci.koji-build.tier0.functional} - ---- !Policy -product_versions: - - rhel-8 - - rhel-9 -decision_context: osci_compose_gate -rules: - - !PassingTestCaseRule {test_case_name: osci.brew-build.tier0.functional} diff --git a/packit.yaml b/packit.yaml deleted file mode 100644 index f90dd72..0000000 --- a/packit.yaml +++ /dev/null @@ -1,89 +0,0 @@ -# See the documentation for more information: -# https://packit.dev/docs/configuration/ -upstream_project_url: https://github.com/martinpitt/umockdev -issue_repository: https://github.com/martinpitt/umockdev -copy_upstream_release_description: true -upstream_package_name: umockdev -downstream_package_name: umockdev - -actions: - create-archive: - - meson tmp/dist - # ignore local spec changes from packit - - meson dist -C tmp/dist --no-tests --allow-dirty - - sh -ec 'mv tmp/dist/meson-dist/umockdev-*.tar.xz packaging/; ls packaging/umockdev-*.tar.xz' - -srpm_build_deps: - - meson - - gcc - - vala - - libpcap-devel - - glib2-devel - - systemd-devel - -packages: - umockdev-fedora: - specfile_path: packaging/umockdev.spec - umockdev-centos: - specfile_path: packaging/umockdev.spec - pkg_tool: centpkg - -jobs: - - job: copr_build - trigger: pull_request - packages: [umockdev-fedora] - targets: - - fedora-development-x86_64 - - fedora-development-i386 - - fedora-development-aarch64 - - fedora-development-ppc64le - - fedora-development-s390x - # needed for tests - - fedora-latest - - - job: copr_build - trigger: pull_request - packages: [umockdev-centos] - targets: - - centos-stream-9-x86_64 - - centos-stream-10-x86_64 - - - job: tests - trigger: pull_request - packages: [umockdev-fedora] - targets: - - fedora-latest - - - job: tests - trigger: pull_request - packages: [umockdev-centos] - targets: - - centos-stream-9-x86_64 - - centos-stream-10-x86_64 - - - job: propose_downstream - trigger: release - packages: [umockdev-fedora] - dist_git_branches: - - fedora-development - - fedora-stable - - - job: propose_downstream - trigger: release - packages: [umockdev-centos] - dist_git_branches: - - c9s - - c10s - - - job: koji_build - trigger: commit - packages: [umockdev-fedora] - dist_git_branches: - - fedora-all - - - job: bodhi_update - trigger: commit - packages: [umockdev-fedora] - dist_git_branches: - # rawhide updates are created automatically - - fedora-branched diff --git a/plans/upstream.fmf b/plans/upstream.fmf deleted file mode 100644 index 33cf4ee..0000000 --- a/plans/upstream.fmf +++ /dev/null @@ -1,7 +0,0 @@ -discover: - how: fmf - dist-git-source: true - # tmt 1.32 now runs `rpmbuild -bp` - dist-git-install-builddeps: true -execute: - how: tmt diff --git a/sources b/sources index 2114801..35984a8 100644 --- a/sources +++ b/sources @@ -1 +1 @@ -SHA512 (umockdev-0.19.8.tar.xz) = 165517e36324ad0a10e5cc63b6bfd85c7d62853e0d970c06568d9aff49642f0ff6a66830d43c1b9deb10a49b53b1cc89eb8cbe70b2400b1db6019bc4aaa3ded4 +SHA512 (0.11.3.tar.gz) = 3278b5546327c76f196c0fdfce4c14a06ca7f7be8bba69a7b425ab6d26de36b2699f980bac476a731304a504b80a362bb0ac7b3940f8bec34908ac7699fbe10a diff --git a/umockdev.spec b/umockdev.spec index 860e5d0..801e248 100644 --- a/umockdev.spec +++ b/umockdev.spec @@ -1,22 +1,23 @@ Name: umockdev -Version: 0.19.8 -Release: 2%{?dist} +Version: 0.11.3 +Release: 1%{?dist} Summary: Mock hardware devices -License: LGPL-2.1-or-later +Group: Development/Libraries +License: LGPLv2+ URL: https://github.com/martinpitt/%{name} -Source0: https://github.com/martinpitt/%{name}/releases/download/%{version}/%{name}-%{version}.tar.xz +Source0: https://github.com/martinpitt/%{name}/archive/%{version}.tar.gz -BuildRequires: git -BuildRequires: meson +BuildRequires: autoconf automake libtool 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 +# Required for tests +BuildRequires: gphoto2 +BuildRequires: python3 %description With this program and libraries you can easily create mock udev objects. @@ -25,6 +26,7 @@ hardware devices. %package devel Summary: Development packages for %{name} +Group: Development/Libraries Requires: %{name}%{?_isa} = %{version}-%{release} %description devel @@ -32,20 +34,20 @@ The %{name}-devel package contains the libraries to develop using %{name}. %prep -%autosetup -S git -n %{name}-%{version} +%setup -q -n %{name}-%{version} %build -%meson -Dgtk_doc=true -%meson_build +NOCONFIGURE=1 ./autogen.sh +%configure --disable-static --enable-gtk-doc -%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 +make %{?_smp_mflags} %install -%meson_install + +make install DESTDIR=$RPM_BUILD_ROOT INSTALL="install -p" + +#nuke the .la file(s) +find $RPM_BUILD_ROOT -name '*.la' -exec rm -f {} ';' # Remove rpath chrpath --delete %{buildroot}%{_bindir}/umockdev-record \ @@ -55,14 +57,22 @@ chrpath --delete %{buildroot}%{_libdir}/libumockdev-preload.so.* rm -rf $RPM_BUILD_ROOT/%{_datadir}/doc/umockdev -%ldconfig_scriptlets +%check + +# Disabled for now, as the Xorg tests don't pass +# https://github.com/martinpitt/umockdev/issues/47 +# make check + +%post -p /sbin/ldconfig + +%postun -p /sbin/ldconfig %files %license COPYING -%doc README.md +%doc README.rst %{_bindir}/umockdev-* %{_libdir}/libumockdev.so.* -%{_libdir}/libumockdev-preload.so* +%{_libdir}/libumockdev-preload.so.* %{_libdir}/girepository-1.0/UMockdev-1.0.typelib %files devel @@ -75,286 +85,10 @@ rm -rf $RPM_BUILD_ROOT/%{_datadir}/doc/umockdev %{_datadir}/vala/vapi/umockdev-1.0.vapi %changelog -* Fri Jul 17 2026 Fedora Release Engineering - 0.19.8-2 -- Rebuilt for https://fedoraproject.org/wiki/Fedora_45_Mass_Rebuild - -* Mon Jul 06 2026 Packit - 0.19.8-1 -- preload: Fix libc name on alpha architecture (Thanks Michael Cree!) -- preload: Check dlopen(libc) failure -- ioctl: Fix array.resize(0) to work with gcc 16 static analyzer -- tests: Fix Gentoo tests, re-enable them in CI - -* Sun Mar 22 2026 Packit - 0.19.6-1 -- preload: Reinitialize mutexes after forking. (Thanks Daniel van Vugt) (LP: #2144723) - - -* Sat Feb 21 2026 Packit - 0.19.5-1 -- ioctl: Forward standard termios calls to real pty (fixes tests with Rust coreutils) -- ioctl: Implement POSIX-compliant errno handling - - -* Sat Jan 17 2026 Fedora Release Engineering - 0.19.4-2 -- Rebuilt for https://fedoraproject.org/wiki/Fedora_44_Mass_Rebuild - -* Sun Oct 12 2025 Packit - 0.19.4-1 -- preload: Hide sticky bit from emulated block dev stat -- preload: Wrap listxattr() -- uevent-sender: Retry udev_device_new_from_syspath() on failure -- uevent_sender: Retry sendmsg() on EAGAIN -- tests: Adjust for evtest 1.36 - - -* Fri Aug 01 2025 Packit - 0.19.3-1 -- preload: Wrap __fstat64_time64() - -* Wed Jul 30 2025 Packit - 0.19.2-1 -- preload: Trap dirfd access to /dev, fstat(), and open_tree() - -* Fri Jul 25 2025 Fedora Release Engineering - 0.19.1-3 -- Rebuilt for https://fedoraproject.org/wiki/Fedora_43_Mass_Rebuild - -* Sun Jan 19 2025 Fedora Release Engineering - 0.19.1-2 -- Rebuilt for https://fedoraproject.org/wiki/Fedora_42_Mass_Rebuild - -* Thu Jan 02 2025 Packit - 0.19.1-1 -- preload: Restore errno in ioctl_emulate_open() -- preload: Only emulate ioctls on emulated devices -- Fix ioctl_tree_execute() ret type and initialization (thanks Helge Deller) -- tests: Disable spidev on big-endian 32-bit platforms (thanks Helge Deller) - -* Fri Dec 27 2024 Packit - 0.19.0-1 -- API: Add UMockdev.Testbed.wait_script() to sync to scripts/evemu replays -- API: UMockdev.Testbed.load_script_from_string() -- API: UMockdev.Testbed.load_evemu_events_from_string() -- Make uevent synthesis thread-safe (thanks Bob Henz) -- Handle "connection refused" when sending a uevent (thanks Bob Henz) - -* Wed Sep 04 2024 Packit - 0.18.4-1 -- Add ioctls for Chromium OS EC devices (thanks Abhinav Baid) -- Generate "remove" uevent in umockdev_testbed_remove_device() (thanks Bob Henz) -- Recursively remove children with uevents (thanks Bob Henz) -- preload: Fix sigmask block and restore race (thanks barath) - -* Sat Jul 20 2024 Fedora Release Engineering - 0.18.3-2 -- Rebuilt for https://fedoraproject.org/wiki/Fedora_41_Mass_Rebuild - -* Thu May 23 2024 Packit - 0.18.3-1 -- preload: Re-fix time64 redirects for glibc < 2.39.9 - -* Tue May 21 2024 Packit - 0.18.2-1 -- preload: Fix time64 redirect for glibc 2.39.9 - -* Sun Mar 24 2024 Packit - 0.18.1-1 -- preload: Provide wrappers for functions specific to 64-bit time_t (thanks Steve Langasek) -- preload: Fix building with _FILE_OFFSET_BITS (thanks Zixing Liu and Steve Langasek) - -* Sun Mar 03 2024 Packit - 0.18.0-1 -- Record and restore SELinux context for mocked /dev nodes -- preload: wrap fstatfs() and statfs() on musl -- Fix build with meson 1.4 - -* Sat Jan 27 2024 Fedora Release Engineering - 0.17.18-2 -- Rebuilt for https://fedoraproject.org/wiki/Fedora_40_Mass_Rebuild - -* Wed Jul 26 2023 Packit - 0.17.18-1 -- preload: Don't read udev cache data from system (thanks Bastien Nocera) -- spec: Update License: to SPDX format -- Various test fixes - -* Sat Jul 22 2023 Fedora Release Engineering - 0.17.17-2 -- Rebuilt for https://fedoraproject.org/wiki/Fedora_39_Mass_Rebuild - -* Sun Apr 16 2023 Packit - 0.17.17-1 -- Fix race with worker thread accessing $UMOCKDEV_DIR -- Disable -Wincompatible-function-pointer-types for clang - -* Sun Jan 29 2023 Packit - 0.17.16-1 - - - -
    -
  • preload: Wrap __getcwd_chk()
  • -
  • uevent_sender: Fix fd leak in sendmsg_one
  • -
  • Fix gcc -fanalyzer complaints
  • -
- -* Sat Jan 21 2023 Fedora Release Engineering - 0.17.15-2 -- Rebuilt for https://fedoraproject.org/wiki/Fedora_38_Mass_Rebuild - -* Thu Nov 24 2022 Packit - 0.17.15-1 - - - -
    -
  • test fixes
  • -
- - -* Sat Jul 23 2022 Fedora Release Engineering - 0.17.13-2 -- Rebuilt for https://fedoraproject.org/wiki/Fedora_37_Mass_Rebuild - -* Mon May 30 2022 Packit - 0.17.13-1 -- preload: Wrap fstatfs(), to work with systemd 251 also with Python tests -- Fix tests in Gentoo sandbox build - - -* Thu May 19 2022 Packit - 0.17.12-1 -- Work around packit propose_downstream bug - - -* Tue May 10 2022 Packit - 0.17.10-1 -- Adjust to systemd 251-rc2: Set $SYSTEMD_DEVICE_VERIFY_SYSFS, parse new udevadm format, update tests - - -* Sun Apr 10 2022 Packit - 0.17.9-1 -- preload: Wrap fortified version of readlinkat (thanks Martin Liska) - - -* Wed Mar 23 2022 Packit Service - 0.17.8-1 -- Fix some potential crashes spotted by Coverity -- Enable Fedora builds and bodhi updates via packit - - -* Tue Mar 01 2022 Packit Service - 0.17.7-1 -- Fix uevent race condition in umockdev_testbed_add_from_string() - - -* Fri Jan 21 2022 Packit Service - 0.17.6-1 -- Increase uevent buffer size (#167) -- Skip /umockdev-testbed-vala/detects_running_outside_testbed during normal - builds for the time being, as it is brittle on several architectures (#169) - - -* Tue Jan 18 2022 Packit Service - 0.17.5-1 -- Relax overzealous stat nlink unit test - - -* Mon Jan 10 2022 Packit Service - 0.17.2-1 -- preload: Wrap statx() and fstatat(), to fix `ls` and other tools on - recent glibc versions. (#160) - - -* Tue Dec 14 2021 Packit Service - 0.17.1-1 -- Fix /sys/dev/* symlinks; regression from 0.15.3 (#155) - - -* Sat Dec 11 2021 Packit Service - 0.17.0-1 -- Add ioctls necessary to record/replay hidraw devices (thanks Daiki Ueno) -- meson: Respect includedir option (thanks Florentin Dubois) -- tests: Fix for Fedora koji emulated architectures s390x and arm -- Enable automatic Fedora package updates with packit - - -* Wed Sep 15 2021 Bastien Nocera - 0.16.3-1 -+ umockdev-0.16.3-1 -- Update to 0.16.3 - -* Mon Aug 30 2021 Bastien Nocera - 0.16.2-2 -+ umockdev-0.16.2-2 -- Better build fix patch - -* Wed Aug 25 2021 Bastien Nocera - 0.16.2-1 -+ umockdev-0.16.2-1 -- Update to 0.16.2 - -* Fri Jul 23 2021 Fedora Release Engineering - 0.16.1-2 -- Rebuilt for https://fedoraproject.org/wiki/Fedora_35_Mass_Rebuild - -* Fri Jul 02 2021 Bastien Nocera - 0.16.1-1 -+ umockdev-0.16.1-1 -- Update to 0.16.1 - -* Thu Jul 01 2021 Bastien Nocera - 0.16.0-1 -+ umockdev-0.16.0-1 -- Update to 0.16.0 - -* Thu May 20 2021 Martin Pitt - 0.15.5-2 -- Drop gphoto2 build dependency (rhbz#1962633) - -* Tue May 04 2021 Bastien Nocera - 0.15.5-1 -+ umockdev-0.15.5-1 -- Update to 0.15.5 - -* Wed Jan 27 2021 Fedora Release Engineering - 0.15.4-2 -- Rebuilt for https://fedoraproject.org/wiki/Fedora_34_Mass_Rebuild - -* Sun Jan 03 2021 Fedora Release Monitoring - 0.15.4-1 -- Update to 0.15.4 (#1901619) - -* Sun Dec 27 2020 Fedora Release Monitoring - 0.15.3-1 -- Update to 0.15.3 (#1901619) - -* Tue Nov 17 2020 Bastien Nocera - 0.15.1-1 -+ umockdev-0.15.1-1 -- Update to 0.15.1 - -* Fri Oct 23 2020 Bastien Nocera - 0.14.4-1 -+ umockdev-0.14.4-1 -- Update to 0.14.4 - -* Thu Oct 22 2020 Bastien Nocera - 0.14.3-2 -+ umockdev-0.14.3-2 -- Better debug for missing functions - -* Mon Aug 24 2020 Bastien Nocera - 0.14.3-1 -+ umockdev-0.14.3-1 -- Update to 0.14.3 - -* Fri Jul 31 2020 Bastien Nocera - 0.14.2-1 -+ umockdev-0.14.2-1 -- Update to 0.14.2 (#1861973) - -* Wed Jul 29 2020 Fedora Release Engineering - 0.14.1-2 -- Rebuilt for https://fedoraproject.org/wiki/Fedora_33_Mass_Rebuild - -* Wed Feb 12 2020 Fedora Release Monitoring - 0.14.1-1 -- Update to 0.14.1 (#1802194) - -* Sun Feb 09 2020 Bastien Nocera - 0.14-1 -+ umockdev-0.14-1 -- Fix FTBS (#1800217) - -* Fri Jan 31 2020 Fedora Release Engineering - 0.13.2-2 -- Rebuilt for https://fedoraproject.org/wiki/Fedora_32_Mass_Rebuild - -* Mon Sep 02 2019 Bastien Nocera - 0.13.2-1 -+ umockdev-0.13.2-1 -- Update to 0.13.2 (#1747088) - -* Mon Aug 19 2019 Bastien Nocera - 0.13.1-1 -+ umockdev-0.13.1-1 -- Update to 0.13.1 (#1742178) - -* Sat Jul 27 2019 Fedora Release Engineering - 0.12.1-2 -- Rebuilt for https://fedoraproject.org/wiki/Fedora_31_Mass_Rebuild - -* Wed May 29 2019 Christian Kellner - 0.12.1-1 -- Update to umockdev-0.12.1 - -* Sun Feb 03 2019 Fedora Release Engineering - 0.11.3-3 -- Rebuilt for https://fedoraproject.org/wiki/Fedora_30_Mass_Rebuild - -* Sat Jul 14 2018 Fedora Release Engineering - 0.11.3-2 -- Rebuilt for https://fedoraproject.org/wiki/Fedora_29_Mass_Rebuild - -* Wed Jun 06 2018 Bastien Nocera - 0.11.3-1 +* Wed Jun 20 2018 Bastien Nocera - 0.11.3-1 + umockdev-0.11.3-1 - Update to 0.11.3 (#1550306) -* Wed Mar 28 2018 Bastien Nocera - 0.11.2-1 -+ umockdev-0.11.2-1 -- Update to 0.11.2 (#1550306) - -* Thu Mar 01 2018 Bastien Nocera - 0.11.1-1 -+ umockdev-0.11.1-1 -- Update to 0.11.1 - * Mon Feb 12 2018 Bastien Nocera - 0.11-1 + umockdev-0.11-1 - Update to 0.11 (#1544128)