2021-06-25 18:19:07 +08:00
|
|
|
%global modname dbusmock
|
|
|
|
|
|
|
|
|
|
Name: python-%{modname}
|
2023-11-21 16:19:23 +08:00
|
|
|
Version: 0.29.1
|
2022-04-13 11:04:58 +08:00
|
|
|
Release: 1
|
2021-06-25 18:19:07 +08:00
|
|
|
Summary: Mock D-Bus objects
|
|
|
|
|
License: LGPLv3+
|
|
|
|
|
URL: https://pypi.python.org/pypi/python-dbusmock
|
2023-11-21 16:19:23 +08:00
|
|
|
Source0: https://files.pythonhosted.org/packages/source/p/%{name}/%{name}-%{version}.tar.gz
|
|
|
|
|
##https://github.com/martinpitt/python-dbusmock/archive/refs/tags/%{version}.tar.gz
|
2021-06-25 18:19:07 +08:00
|
|
|
|
|
|
|
|
BuildArch: noarch
|
2023-11-21 16:19:23 +08:00
|
|
|
BuildRequires: git
|
2021-06-25 18:19:07 +08:00
|
|
|
BuildRequires: python3-dbus
|
|
|
|
|
BuildRequires: python3-devel
|
|
|
|
|
BuildRequires: python3-setuptools
|
|
|
|
|
BuildRequires: python3-gobject
|
|
|
|
|
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
|
2023-11-21 16:19:23 +08:00
|
|
|
%autosetup -n %{name}-%{version} -p1 -S git
|
2021-06-25 18:19:07 +08:00
|
|
|
rm -rf python-%{modname}.egg-info
|
|
|
|
|
|
|
|
|
|
%build
|
|
|
|
|
%py3_build
|
|
|
|
|
|
|
|
|
|
%install
|
|
|
|
|
%py3_install
|
|
|
|
|
|
|
|
|
|
%check
|
|
|
|
|
%{__python3} -m unittest -v
|
|
|
|
|
|
|
|
|
|
%files -n python3-dbusmock
|
2022-04-13 11:04:58 +08:00
|
|
|
%doc README.md COPYING
|
2021-06-25 18:19:07 +08:00
|
|
|
%{python3_sitelib}/*%{modname}*
|
|
|
|
|
|
|
|
|
|
%changelog
|
2023-11-21 16:19:23 +08:00
|
|
|
* Tue Nov 21 2023 lwg <liweiganga@uniontech.com> - 0.29.1-1
|
|
|
|
|
- update to version 0.29.1
|
|
|
|
|
|
2022-04-13 11:04:58 +08:00
|
|
|
* Mon Mar 28 2022 lin zhang <lin.zhang@turbolinux.com.cn> - 0.27.3-1
|
|
|
|
|
- Upgrade to 0.27.3
|
|
|
|
|
|
2021-07-30 23:22:13 +08:00
|
|
|
* Fri Jul 30 2021 chenyanpanHW <chenyanpan@huawei.com> - 0.22.0-2
|
|
|
|
|
- DESC: delete -S git from %autosetup, and delete BuildRequires git
|
|
|
|
|
|
2021-06-25 18:19:07 +08:00
|
|
|
* Fri Jun 25 2021 Wenlong Ding <wenlong.ding@turbolinux.com.cn> - 0.22.0-1
|
|
|
|
|
- initial package
|