From dd90621e906d954d933e4125cf978f220d0a37c18c257d2d7064b14d75c64fc9 Mon Sep 17 00:00:00 2001 From: Todd R Date: Mon, 28 Jan 2013 15:09:52 +0000 Subject: [PATCH] Cleanup spec file OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-apache-libcloud?expand=0&rev=3 --- python-apache-libcloud.spec | 45 +++++++++++++++++++------------------ 1 file changed, 23 insertions(+), 22 deletions(-) diff --git a/python-apache-libcloud.spec b/python-apache-libcloud.spec index e3d72a3..f477ed9 100644 --- a/python-apache-libcloud.spec +++ b/python-apache-libcloud.spec @@ -15,42 +15,43 @@ # Please submit bugfixes or comments via http://bugs.opensuse.org/ # -Name: python-apache-libcloud -Version: 0.11.4 -Release: 1%{?dist} -Summary: Apache Libcloud abstracts away differences among multiple cloud provider APIs -Group: System/Monitoring -License: Apache-2.0 -URL: https://libcloud.apache.org -Source0: http://www.mirrorservice.org/sites/ftp.apache.org/libcloud/apache-libcloud-%{version}.tar.bz2 -BuildRoot: %{_tmppath}/apache-libcloud-%{version}-build - -%if %{?suse_version: %{suse_version} > 1110} %{!?suse_version:1} -BuildArchitectures: noarch -%endif - -BuildRequires: python -BuildRequires: python-distribute - -Requires: python-simplejson +Name: python-apache-libcloud +Version: 0.11.4 +Release: 1 +License: Apache-2.0 +Summary: Abstract away differences among multiple cloud provider APIs +Url: https://libcloud.apache.org +Group: System/Monitoring +Source0: http://pypi.python.org/packages/source/a/apache-libcloud/apache-libcloud-%{version}.tar.bz2 +BuildRequires: python +BuildRequires: python-distribute +Requires: python-simplejson %if 0%{?suse_version} >= 1210 BuildRequires: systemd %endif -Requires(pre): %fillup_prereq -Requires(pre): %insserv_prereq +Requires(pre): %fillup_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 -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 %setup -q -n apache-libcloud-%{version} %build +python setup.py build %install python setup.py install --prefix=%{_prefix} --root=%{buildroot} -%files +%files %defattr(-,root,root) %doc LICENSE %{python_sitelib}/*