forked from pool/python-pyasn1
Accepting request 493144 from home:TheBlackCat:branches:devel:languages:python
Fix Provides/Obsoletes. OBS-URL: https://build.opensuse.org/request/show/493144 OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-pyasn1?expand=0&rev=52
This commit is contained in:
@@ -17,6 +17,7 @@
|
||||
|
||||
|
||||
%{?!python_module:%define python_module() python-%{**} python3-%{**}}
|
||||
%define oldpython python
|
||||
Name: python-pyasn1
|
||||
Version: 0.2.3
|
||||
Release: 0
|
||||
@@ -28,8 +29,10 @@ Source: https://pypi.io/packages/source/p/pyasn1/pyasn1-%{version}.tar.g
|
||||
BuildRequires: %{python_module pytest}
|
||||
BuildRequires: %{python_module setuptools}
|
||||
BuildRequires: python-rpm-macros
|
||||
Provides: python-asn1 = %{version}
|
||||
Obsoletes: python-asn1 < 0.1.2
|
||||
%ifpython2
|
||||
Obsoletes: %{oldpython}-asn1 < 0.1.2
|
||||
Provides: %{oldpython}-asn1 = %{version}
|
||||
%endif
|
||||
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
||||
BuildArch: noarch
|
||||
|
||||
|
Reference in New Issue
Block a user