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