1
0

- convert to singlespec

- update requires
- update source url

OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-apache-libcloud?expand=0&rev=69
This commit is contained in:
Jan Matejek 2017-05-16 16:37:37 +00:00 committed by Git OBS Bridge
parent f063e76dfc
commit aa38acb927
2 changed files with 22 additions and 20 deletions

View File

@ -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

View File

@ -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,27 +25,20 @@ 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
@ -53,13 +48,13 @@ differences among multiple cloud provider APIs.
%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}/*