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:
Claudio Freire 2011-07-19 09:10:50 +00:00 committed by Git OBS Bridge
parent 067d84a1f1
commit 9a7d9fd057

View File

@ -9,15 +9,23 @@ License: Apache 2.0
URL: http://code.google.com/p/ipaddr-py/ URL: http://code.google.com/p/ipaddr-py/
Source0: http://ipaddr-py.googlecode.com/files/ipaddr-%{version}.tar.gz Source0: http://ipaddr-py.googlecode.com/files/ipaddr-%{version}.tar.gz
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-build BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-build
%if 0%{?suse_version}
Requires: python-base = %py_ver
%else
Requires: python Requires: python
%endif
BuildRequires: python-devel python-setuptools BuildRequires: python-devel python-setuptools
%if 0%{?suse_version} > 1010 %if 0%{?suse_version} > 1010
BuildRequires: fdupes BuildRequires: fdupes
%endif %endif
%if (0%{?suse_version} > 0) %if (0%{?suse_version} > 0) && (0%{?suse_version} < 1130)
%if (0%{?suse_version} < 1130)
# py_requires is no longer needed since 11.3 # py_requires is no longer needed since 11.3
%{py_requires} %{py_requires}
%else
%if 0%{?suse_version}
Requires: python-base = %py_ver
%else
Requires: python
%endif %endif
%endif %endif
Autoreqprov: on Autoreqprov: on