forked from pool/python-recommonmark
Accepting request 493127 from home:TheBlackCat:branches:devel:languages:python
Fix Provides/Obsoletes. OBS-URL: https://build.opensuse.org/request/show/493127 OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-recommonmark?expand=0&rev=5
This commit is contained in:
@@ -17,6 +17,7 @@
|
||||
|
||||
|
||||
%{?!python_module:%define python_module() python-%{**} python3-%{**}}
|
||||
%define oldpython python
|
||||
Name: python-recommonmark
|
||||
Version: 0.4.0
|
||||
Release: 0
|
||||
@@ -34,8 +35,14 @@ BuildRequires: %{python_module docutils}
|
||||
BuildRequires: %{python_module CommonMark}
|
||||
Requires: python-docutils
|
||||
Requires: python-CommonMark
|
||||
Provides: python-reCommonMark = %{version}
|
||||
Obsoletes: python-reCommonMark < %{version}
|
||||
%ifpython2
|
||||
Obsoletes: %{oldpython}-reCommonMark < %{version}
|
||||
Provides: %{oldpython}-reCommonMark = %{version}
|
||||
%endif
|
||||
%ifpython3
|
||||
Provides: python3-reCommonMark = %{version}
|
||||
Obsoletes: python3-reCommonMark < %{version}
|
||||
%endif
|
||||
Requires(post): update-alternatives
|
||||
Requires(preun): update-alternatives
|
||||
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
||||
|
Reference in New Issue
Block a user