From 55c874e672d4ff9f1a5a7f34d4937eb86e20b10a9a9057ad63ea836ebb2b53fd Mon Sep 17 00:00:00 2001 From: Antoine Belvire Date: Sun, 2 Jul 2017 09:13:37 +0000 Subject: [PATCH] - Fix build for Leap 42.3, which does not have a singlespec version of python-dbus (boo#1046811). OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-notify2?expand=0&rev=7 --- python-notify2.changes | 6 ++++++ python-notify2.spec | 5 +++++ 2 files changed, 11 insertions(+) diff --git a/python-notify2.changes b/python-notify2.changes index 5308f28..13041d7 100644 --- a/python-notify2.changes +++ b/python-notify2.changes @@ -1,3 +1,9 @@ +------------------------------------------------------------------- +Sun Jul 2 09:11:09 UTC 2017 - antoine.belvire@opensuse.org + +- Fix build for Leap 42.3, which does not have a singlespec version + of python-dbus (boo#1046811). + ------------------------------------------------------------------- Sat May 6 11:32:19 UTC 2017 - antoine.belvire@opensuse.org diff --git a/python-notify2.spec b/python-notify2.spec index 8250b45..685f586 100644 --- a/python-notify2.spec +++ b/python-notify2.spec @@ -25,7 +25,12 @@ License: BSD-2-Clause Group: Development/Languages/Python Url: https://pypi.python.org/pypi/notify2/ Source: https://pypi.io/packages/source/n/notify2/notify2-%{version}.tar.gz +%if 0%{suse_version} <= 1315 +BuildRequires: dbus-1-python +BuildRequires: dbus-1-python3 +%else BuildRequires: %{python_module dbus-python} +%endif BuildRequires: %{python_module setuptools} BuildRequires: fdupes BuildRequires: python-rpm-macros