Require specific python version
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-ipaddr?expand=0&rev=8
This commit is contained in:
parent
067d84a1f1
commit
9a7d9fd057
@ -9,15 +9,23 @@ License: Apache 2.0
|
||||
URL: http://code.google.com/p/ipaddr-py/
|
||||
Source0: http://ipaddr-py.googlecode.com/files/ipaddr-%{version}.tar.gz
|
||||
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-build
|
||||
%if 0%{?suse_version}
|
||||
Requires: python-base = %py_ver
|
||||
%else
|
||||
Requires: python
|
||||
%endif
|
||||
BuildRequires: python-devel python-setuptools
|
||||
%if 0%{?suse_version} > 1010
|
||||
BuildRequires: fdupes
|
||||
%endif
|
||||
%if (0%{?suse_version} > 0)
|
||||
%if (0%{?suse_version} < 1130)
|
||||
%if (0%{?suse_version} > 0) && (0%{?suse_version} < 1130)
|
||||
# py_requires is no longer needed since 11.3
|
||||
%{py_requires}
|
||||
%else
|
||||
%if 0%{?suse_version}
|
||||
Requires: python-base = %py_ver
|
||||
%else
|
||||
Requires: python
|
||||
%endif
|
||||
%endif
|
||||
Autoreqprov: on
|
||||
|
Loading…
Reference in New Issue
Block a user