From c47803e816e52b6d60c837bd57fad78a5c1e272ea54709fa8921e1418516139f Mon Sep 17 00:00:00 2001 From: Sascha Peilicke Date: Mon, 12 Mar 2012 21:04:30 +0000 Subject: [PATCH] OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-paramiko?expand=0&rev=19 --- python-paramiko.spec | 11 ++++------- 1 file changed, 4 insertions(+), 7 deletions(-) diff --git a/python-paramiko.spec b/python-paramiko.spec index 5236073..956d4d7 100644 --- a/python-paramiko.spec +++ b/python-paramiko.spec @@ -1,7 +1,7 @@ # # spec file for package python-paramiko # -# Copyright (c) 2011 SUSE LINUX Products GmbH, Nuernberg, Germany. +# Copyright (c) 2012 SUSE LINUX Products GmbH, Nuernberg, Germany. # # All modifications and additions to the file contributed by third parties # remain the property of their copyright owners, unless otherwise agreed @@ -16,7 +16,6 @@ # - Name: python-paramiko Version: 1.7.7.1 Release: 0 @@ -29,13 +28,11 @@ BuildRoot: %{_tmppath}/%{name}-%{version}-build BuildRequires: python-devel BuildRequires: unzip Requires: python-pycrypto >= 2.1 -%if 0%{?suse_version} -%py_requires -%if 0%{?suse_version} > 1110 +%if 0%{?suse_version} && 0%{?suse_version} <= 1110 +%{!?python_sitelib: %global python_sitelib %(python -c "from distutils.sysconfig import get_python_lib; print get_python_lib()")} +%else BuildArch: noarch %endif -%endif -%{!?python_sitelib: %global python_sitelib %(%{__python} -c "from distutils.sysconfig import get_python_lib; print get_python_lib()")} %description This is a library for making SSH2 connections (client or server).