%global modname dbusmock Name: python-%{modname} Version: 0.32.2 Release: 1.20241106132957028177.pr223.9.ge151219%{?dist} Summary: Mock D-Bus objects License: LGPL-3.0-or-later URL: https://pypi.python.org/pypi/python-dbusmock Source0: python-dbusmock-0.32.2.post9+ge151219.tar.gz BuildArch: noarch BuildRequires: git BuildRequires: python3-dbus BuildRequires: python3-devel BuildRequires: python3-setuptools 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.32.2.post9+ge151219 rm -rf python-%{modname}.egg-info %build %py3_build %install %py3_install %check %{__python3} -m unittest -v %files -n python3-dbusmock %doc README.md COPYING %{python3_sitelib}/*%{modname}* %changelog * Wed Nov 06 2024 Packit - 0.32.2-1.20241106132957028177.pr223.9.ge151219 - Add gsd-rfkill mock (Guido Günther) - pylint: Disable too-many-positional-arguments rule (Martin Pitt) - tests: Robustify bluetoothctl parsing (Martin Pitt) - tests: fix test_monitor on musl (Alyssa Ross) - tests: fix bluez test when no /etc/os-release (Alyssa Ross) - Drop Python <= 3.7 support (Tomasz Kłoczko) - pyproject: Update requires-python to >= 3.8 (Tomasz Kłoczko) - mockobject: Allow adding objects derived from DBusMockObject (Sebastian Wick) - pylint: Disable too-many-arguments (Martin Pitt)