1
0
Todd R 2013-01-28 15:09:52 +00:00 committed by Git OBS Bridge
parent 9be3c01596
commit dd90621e90

View File

@ -15,42 +15,43 @@
# Please submit bugfixes or comments via http://bugs.opensuse.org/ # Please submit bugfixes or comments via http://bugs.opensuse.org/
# #
Name: python-apache-libcloud Name: python-apache-libcloud
Version: 0.11.4 Version: 0.11.4
Release: 1%{?dist} Release: 1
Summary: Apache Libcloud abstracts away differences among multiple cloud provider APIs License: Apache-2.0
Group: System/Monitoring Summary: Abstract away differences among multiple cloud provider APIs
License: Apache-2.0 Url: https://libcloud.apache.org
URL: https://libcloud.apache.org Group: System/Monitoring
Source0: http://www.mirrorservice.org/sites/ftp.apache.org/libcloud/apache-libcloud-%{version}.tar.bz2 Source0: http://pypi.python.org/packages/source/a/apache-libcloud/apache-libcloud-%{version}.tar.bz2
BuildRoot: %{_tmppath}/apache-libcloud-%{version}-build BuildRequires: python
BuildRequires: python-distribute
%if %{?suse_version: %{suse_version} > 1110} %{!?suse_version:1} Requires: python-simplejson
BuildArchitectures: noarch
%endif
BuildRequires: python
BuildRequires: python-distribute
Requires: python-simplejson
%if 0%{?suse_version} >= 1210 %if 0%{?suse_version} >= 1210
BuildRequires: systemd BuildRequires: systemd
%endif %endif
Requires(pre): %fillup_prereq Requires(pre): %fillup_prereq
Requires(pre): %insserv_prereq Requires(pre): %insserv_prereq
BuildRoot: %{_tmppath}/%{name}-%{version}-build
%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
%description %description
Apache Libcloud is a standard Python library that abstracts away differences among multiple cloud provider APIs. Apache Libcloud is a standard Python library that abstracts away
differences among multiple cloud provider APIs.
%prep %prep
%setup -q -n apache-libcloud-%{version} %setup -q -n apache-libcloud-%{version}
%build %build
python setup.py build
%install %install
python setup.py install --prefix=%{_prefix} --root=%{buildroot} python setup.py install --prefix=%{_prefix} --root=%{buildroot}
%files %files
%defattr(-,root,root) %defattr(-,root,root)
%doc LICENSE %doc LICENSE
%{python_sitelib}/* %{python_sitelib}/*