15
0
Tomáš Chvátal
2020-03-16 10:26:57 +00:00
committed by Git OBS Bridge
parent fbbbbe08f3
commit 253d10cde6
2 changed files with 10 additions and 3 deletions

View File

@@ -1,3 +1,8 @@
-------------------------------------------------------------------
Mon Mar 16 10:26:20 UTC 2020 - Tomáš Chvátal <tchvatal@suse.com>
- Fix build without python2
-------------------------------------------------------------------
Mon Oct 7 13:31:14 UTC 2019 - Tomáš Chvátal <tchvatal@suse.com>

View File

@@ -1,7 +1,7 @@
#
# spec file for package python-CommonMark
#
# 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
@@ -18,22 +18,24 @@
%{?!python_module:%define python_module() python-%{**} python3-%{**}}
%define oldpython python
%bcond_without python2
Name: python-CommonMark
Version: 0.9.1
Release: 0
Summary: Python parser for the CommonMark Markdown spec
License: BSD-3-Clause
Group: Development/Languages/Python
URL: https://github.com/rtfd/CommonMark-py
Source: https://files.pythonhosted.org/packages/source/c/commonmark/commonmark-%{version}.tar.gz
BuildRequires: %{python_module setuptools}
BuildRequires: fdupes
BuildRequires: python-future >= 0.14.0
BuildRequires: python-rpm-macros
Requires: python-setuptools
Provides: python-commonmark = %{version}
Obsoletes: python-commonmark < %{version}
BuildArch: noarch
%if %{with python2}
BuildRequires: python-future >= 0.14.0
%endif
%ifpython2
Requires: python-future >= 0.14.0
Obsoletes: %{oldpython}-commonmark < %{version}