python-python-dbusmock/python-python-dbusmock.spec
Tomáš Chvátal 8fda4d5297 - Update to 0.18.3:
- Fix timeouts for loaded machines and parallel tests
  - Fix tests for Python 3.8

OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-python-dbusmock?expand=0&rev=11
2019-10-21 10:05:48 +00:00

68 lines
2.3 KiB
RPMSpec

#
# spec file for package python-python-dbusmock
#
# Copyright (c) 2019 SUSE LINUX GmbH, Nuernberg, Germany.
#
# All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed
# upon. The license for this file, and modifications and additions to the
# file, is the same license as for the pristine package itself (unless the
# license for the pristine package is not an Open Source License, in which
# case the license is the MIT License). An "Open Source License" is a
# license that conforms to the Open Source Definition (Version 1.9)
# published by the Open Source Initiative.
# Please submit bugfixes or comments via https://bugs.opensuse.org/
#
%{?!python_module:%define python_module() python-%{**} python3-%{**}}
Name: python-python-dbusmock
Version: 0.18.3
Release: 0
Summary: Python library for creating mock D-Bus objects
License: LGPL-3.0-or-later
URL: https://github.com/martinpitt/python-dbusmock
Source: https://files.pythonhosted.org/packages/source/p/python-dbusmock/python-dbusmock-%{version}.tar.gz
BuildRequires: %{python_module dbus-python}
BuildRequires: %{python_module nose}
BuildRequires: %{python_module setuptools}
BuildRequires: fdupes
BuildRequires: pkgconfig
BuildRequires: python-rpm-macros
BuildRequires: pkgconfig(gobject-introspection-1.0)
Requires: dbus-1-python
Requires: dbus-1-x11
Requires: python-gobject
Provides: python-dbusmock = %{version}
BuildArch: noarch
%python_subpackages
%description
With this program/Python library, one can create mock objects on D-Bus.
This is useful for writing tests for software which talks to D-Bus services
such as upower, systemd, logind, gnome-session or others, and it is hard
(or impossible without root privileges) to set the state of the real services
to what one may expect in tests.
%prep
%setup -q -n python-dbusmock-%{version}
%build
%python_build
%install
%python_install
%python_expand %fdupes %{buildroot}%{$python_sitelib}
%check
%python_expand PYTHONPATH=%{buildroot}%{$python_sitelib} nosetests-%{$python_bin_suffix} -v
%files %{python_files}
%license COPYING
%doc NEWS README.rst
%{python_sitelib}/dbusmock/
%{python_sitelib}/python_dbusmock-%{version}-py*.egg-info
%changelog