From 175ce1294325f29a6c83ae8624a46aa5fb2e13ebdf2f489d5044a36154825c69 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Tom=C3=A1=C5=A1=20Chv=C3=A1tal?= Date: Mon, 7 Jan 2019 10:43:03 +0000 Subject: [PATCH] - Remove test condition - Use %license macro OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-python-dbusmock?expand=0&rev=2 --- python-python-dbusmock.changes | 6 ++++++ python-python-dbusmock.spec | 24 ++++++++++-------------- 2 files changed, 16 insertions(+), 14 deletions(-) diff --git a/python-python-dbusmock.changes b/python-python-dbusmock.changes index 4babe31..954a8bc 100644 --- a/python-python-dbusmock.changes +++ b/python-python-dbusmock.changes @@ -1,3 +1,9 @@ +------------------------------------------------------------------- +Mon Jan 7 10:42:02 UTC 2019 - Tomáš Chvátal + +- Remove test condition +- Use %license macro + ------------------------------------------------------------------- Mon Jan 7 10:12:31 UTC 2019 - bjorn.lie@gmail.com diff --git a/python-python-dbusmock.spec b/python-python-dbusmock.spec index 58173d1..dfa780f 100644 --- a/python-python-dbusmock.spec +++ b/python-python-dbusmock.spec @@ -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