%global modname dbusmock Name: python-%{modname} Version: 0.38.1 Release: 1.20261014103511018994.pr251.5.g94f6c10%{?dist} Summary: Mock D-Bus objects License: LGPL-3.0-or-later URL: https://pypi.python.org/pypi/python-dbusmock Source0: python_dbusmock-0.38.1.post5+g94f6c105d.tar.gz BuildArch: noarch BuildRequires: git BuildRequires: python3-devel BuildRequires: python3-gobject BuildRequires: python3-pytest BuildRequires: dbus-x11 BuildRequires: upower %global _description\ With this program/Python library you can easily create mock objects on\ D-Bus. This is useful for writing tests for software which talks to\ D-Bus services such as upower, systemd, ConsoleKit, gnome-session or\ others, and it is hard (or impossible without root privileges) to set\ the state of the real services to what you expect in your tests. %description %_description %package -n python3-dbusmock Summary: %summary (Python3) Requires: python3-dbus, python3-gobject, dbus-x11 %description -n python3-dbusmock %_description %prep %autosetup -n python_dbusmock-0.38.1.post5+g94f6c105d rm -rf python-%{modname}.egg-info %generate_buildrequires %pyproject_buildrequires %build %pyproject_wheel %install %pyproject_install %pyproject_save_files -l dbusmock %check %{__python3} -m unittest -v %files -n python3-dbusmock -f %{pyproject_files} %doc README.md COPYING %changelog * Wed Oct 14 2026 Packit - 0.38.1-1.20261014103511018994.pr251.5.g94f6c10 - Document testing notifications and actions on a private bus (AC) - tests: Disable openh264 Fedora repo (Martin Pitt) - Reformat code with black 26 (Martin Pitt) - Move ruff overrides to ruff specific comments (Martin Pitt) - tests: Move from `su` to `runuser` (Martin Pitt)