- Remove test condition

- Use %license macro

OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-python-dbusmock?expand=0&rev=2
This commit is contained in:
Tomáš Chvátal 2019-01-07 10:43:03 +00:00 committed by Git OBS Bridge
parent 6464a5ccd8
commit 175ce12943
2 changed files with 16 additions and 14 deletions

View File

@ -1,3 +1,9 @@
-------------------------------------------------------------------
Mon Jan 7 10:42:02 UTC 2019 - Tomáš Chvátal <tchvatal@suse.com>
- Remove test condition
- Use %license macro
-------------------------------------------------------------------
Mon Jan 7 10:12:31 UTC 2019 - bjorn.lie@gmail.com

View File

@ -1,7 +1,7 @@
#
# spec file for package python-python-dbusmock
#
# Copyright (c) 2017 SUSE LINUX GmbH, Nuernberg, Germany.
# 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
@ -12,34 +12,32 @@
# license that conforms to the Open Source Definition (Version 1.9)
# published by the Open Source Initiative.
# Please submit bugfixes or comments via http://bugs.opensuse.org/
# Please submit bugfixes or comments via https://bugs.opensuse.org/
#
%{?!python_module:%define python_module() python-%{**} python3-%{**}}
%bcond_without test
Name: python-python-dbusmock
Version: 0.18.1
Release: 0
License: LGPL-3.0+
Summary: Mock D-Bus objects
Url: https://launchpad.net/python-dbusmock
License: LGPL-3.0-or-later
Group: Development/Languages/Python
URL: https://launchpad.net/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 devel}
BuildRequires: %{python_module nose}
BuildRequires: %{python_module setuptools}
BuildRequires: fdupes
BuildRequires: pkgconfig
BuildRequires: python-rpm-macros
BuildRequires: pkgconfig(gobject-introspection-1.0)
%if %{with test}
BuildRequires: %{python_module nose}
BuildRequires: %{python_module dbus-python}
%endif
Requires: dbus-1-python
Requires: dbus-1-x11
Requires: python-gobject
Provides: python-dbusmock = %{version}
BuildArch: noarch
%python_subpackages
%description
@ -91,14 +89,12 @@ D-Bus launch API that way.
%python_install
%python_expand %fdupes %{buildroot}%{$python_sitelib}
%if %{with test}
%check
%python_exec setup.py test
%endif
%files %{python_files}
%defattr(-,root,root,-)
%doc COPYING NEWS README.rst
%license COPYING
%doc NEWS README.rst
%{python_sitelib}/dbusmock/
%{python_sitelib}/python_dbusmock-%{version}-py*.egg-info