From 2733805dad82428582b320478d1b23b85d15747e99ff04196a836959333ee583 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Tom=C3=A1=C5=A1=20Chv=C3=A1tal?= Date: Fri, 13 Mar 2020 13:01:37 +0000 Subject: [PATCH] - Fix build without python2 OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-sphinx-issues?expand=0&rev=11 --- python-sphinx-issues.changes | 5 +++++ python-sphinx-issues.spec | 8 +++++--- 2 files changed, 10 insertions(+), 3 deletions(-) diff --git a/python-sphinx-issues.changes b/python-sphinx-issues.changes index a4a62b0..091b07f 100644 --- a/python-sphinx-issues.changes +++ b/python-sphinx-issues.changes @@ -1,3 +1,8 @@ +------------------------------------------------------------------- +Fri Mar 13 13:01:25 UTC 2020 - Tomáš Chvátal + +- Fix build without python2 + ------------------------------------------------------------------- Thu Jun 6 14:23:35 UTC 2019 - Tomáš Chvátal diff --git a/python-sphinx-issues.spec b/python-sphinx-issues.spec index 11add43..9152175 100644 --- a/python-sphinx-issues.spec +++ b/python-sphinx-issues.spec @@ -1,7 +1,7 @@ # # spec file for package python-sphinx-issues # -# Copyright (c) 2019 SUSE LINUX GmbH, Nuernberg, Germany. +# Copyright (c) 2020 SUSE LLC # # All modifications and additions to the file contributed by third parties # remain the property of their copyright owners, unless otherwise agreed @@ -17,22 +17,24 @@ %{?!python_module:%define python_module() python-%{**} python3-%{**}} +%bcond_without python2 Name: python-sphinx-issues Version: 1.2.0 Release: 0 Summary: A Sphinx extension for linking to a project's issue tracker License: MIT -Group: Development/Languages/Python URL: https://github.com/sloria/sphinx-issues Source: https://github.com/sloria/sphinx-issues/archive/%{version}.tar.gz BuildRequires: %{python_module Sphinx} BuildRequires: %{python_module pytest} BuildRequires: %{python_module setuptools} BuildRequires: fdupes -BuildRequires: python-mock BuildRequires: python-rpm-macros Requires: python-Sphinx BuildArch: noarch +%if %{with python2} +BuildRequires: python-mock +%endif %python_subpackages %description