|
|
@ -1,10 +1,4 @@
|
|
|
|
%global __python26 /usr/bin/python2.6
|
|
|
|
|
|
|
|
%if 0%{?fedora} < 13 || 0%{?rhel} < 6
|
|
|
|
|
|
|
|
%define python26_sitelib %(%{__python26} -c "from distutils.sysconfig import get_python_lib; print get_python_lib(1)")
|
|
|
|
|
|
|
|
%global __os_install_post %{__python26_os_install_post}
|
|
|
|
|
|
|
|
%else
|
|
|
|
|
|
|
|
%{!?python_sitelib: %global python_sitelib %(%{__python} -c "from distutils.sysconfig import get_python_lib; print get_python_lib()")}
|
|
|
|
%{!?python_sitelib: %global python_sitelib %(%{__python} -c "from distutils.sysconfig import get_python_lib; print get_python_lib()")}
|
|
|
|
%endif
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
%global tarball_name apache-libcloud
|
|
|
|
%global tarball_name apache-libcloud
|
|
|
|
|
|
|
|
|
|
|
@ -23,15 +17,7 @@ BuildArch: noarch
|
|
|
|
|
|
|
|
|
|
|
|
BuildRequires: python-setuptools
|
|
|
|
BuildRequires: python-setuptools
|
|
|
|
|
|
|
|
|
|
|
|
%if 0%{?fedora} < 13 || 0%{?rhel} < 6
|
|
|
|
|
|
|
|
BuildRequires: python26-devel
|
|
|
|
|
|
|
|
%else
|
|
|
|
|
|
|
|
BuildRequires: python2-devel
|
|
|
|
BuildRequires: python2-devel
|
|
|
|
%endif
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
%if 0%{?fedora} < 13 || 0%{?rhel} < 6
|
|
|
|
|
|
|
|
Requires: python26
|
|
|
|
|
|
|
|
%endif
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
%description
|
|
|
|
%description
|
|
|
|
libcloud is a client library for interacting with many of the popular cloud
|
|
|
|
libcloud is a client library for interacting with many of the popular cloud
|
|
|
@ -43,20 +29,10 @@ products that work between any of the services that it supports.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
%build
|
|
|
|
%build
|
|
|
|
%if 0%{?fedora} < 13 || 0%{?rhel} < 6
|
|
|
|
|
|
|
|
%{__python26} setup.py build
|
|
|
|
|
|
|
|
%else
|
|
|
|
|
|
|
|
%{__python} setup.py build
|
|
|
|
%{__python} setup.py build
|
|
|
|
%endif
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
%install
|
|
|
|
%install
|
|
|
|
rm -rf %{buildroot}
|
|
|
|
|
|
|
|
%if 0%{?fedora} < 13 || 0%{?rhel} < 6
|
|
|
|
|
|
|
|
%{__python26} setup.py install -O1 --skip-build --root %{buildroot}
|
|
|
|
|
|
|
|
%else
|
|
|
|
|
|
|
|
%{__python} setup.py install -O1 --skip-build --root %{buildroot}
|
|
|
|
%{__python} setup.py install -O1 --skip-build --root %{buildroot}
|
|
|
|
%endif
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
%clean
|
|
|
|
%clean
|
|
|
|