diff --git a/python-apache-libcloud.changes b/python-apache-libcloud.changes index db79e82..53c6745 100644 --- a/python-apache-libcloud.changes +++ b/python-apache-libcloud.changes @@ -1,3 +1,10 @@ +------------------------------------------------------------------- +Tue May 16 16:37:05 UTC 2017 - jmatejek@suse.com + +- convert to singlespec +- update requires +- update source url + ------------------------------------------------------------------- Sun Apr 30 20:51:53 UTC 2017 - aboe76@gmail.com diff --git a/python-apache-libcloud.spec b/python-apache-libcloud.spec index c8d3a28..5825e2f 100644 --- a/python-apache-libcloud.spec +++ b/python-apache-libcloud.spec @@ -1,7 +1,7 @@ # # spec file for package python-apache-libcloud # -# Copyright (c) 2015 SUSE LINUX Products GmbH, Nuernberg, Germany. +# Copyright (c) 2017 SUSE LINUX GmbH, Nuernberg, Germany. # # All modifications and additions to the file contributed by third parties # remain the property of their copyright owners, unless otherwise agreed @@ -15,7 +15,9 @@ # Please submit bugfixes or comments via http://bugs.opensuse.org/ # +#nospeccleaner +%{?!python_module:%define python_module() python-%{**} python3-%{**}} Name: python-apache-libcloud Version: 2.0.0 Release: 0 @@ -23,43 +25,36 @@ Summary: Abstract away differences among multiple cloud provider APIs License: Apache-2.0 Group: System/Monitoring Url: https://libcloud.apache.org -Source0: http://pypi.python.org/packages/source/a/apache-libcloud/apache-libcloud-%{version}.tar.bz2 +Source0: https://files.pythonhosted.org/packages/source/a/apache-libcloud/apache-libcloud-%{version}.tar.bz2 +BuildRequires: %{python_module lxml} +BuildRequires: %{python_module setuptools} +BuildRequires: %{python_module xml} BuildRequires: fdupes -BuildRequires: python -BuildRequires: python-setuptools -BuildRequires: python-xml -BuildRequires: python-lxml -BuildRequires: python-backports.ssl_match_hostname -Requires: python-simplejson -Requires: python-lxml -Requires: python-backports.ssl_match_hostname +BuildRequires: python-rpm-macros %if 0%{?suse_version} >= 1210 BuildRequires: systemd %endif -Requires(pre): %fillup_prereq -Requires(pre): %insserv_prereq +Requires: python-lxml +Requires: python-requests 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 +%python_subpackages %description -Apache Libcloud is a standard Python library that abstracts away +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 +%python_build %install -python setup.py install --prefix=%{_prefix} --root=%{buildroot} +%python_install %fdupes %{buildroot}%{python_sitelib}/libcloud/test/ -%files +%files %{python_files} %defattr(-,root,root) %doc LICENSE CHANGES.rst README.rst %{python_sitelib}/*