forked from pool/python-CommonMark
- Fix build without python2
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-CommonMark?expand=0&rev=21
This commit is contained in:
committed by
Git OBS Bridge
parent
fbbbbe08f3
commit
253d10cde6
@@ -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>
|
||||
|
||||
|
||||
@@ -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}
|
||||
|
||||
Reference in New Issue
Block a user