forked from pool/python-apache-libcloud
Accepting request 530138 from home:mcalmer:branches:devel:languages:python
- fix build on SLE12 by using python-backports - reduce warnings OBS-URL: https://build.opensuse.org/request/show/530138 OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-apache-libcloud?expand=0&rev=72
This commit is contained in:
committed by
Git OBS Bridge
parent
3f9cc0621f
commit
85c93f76f0
@@ -15,6 +15,7 @@
|
||||
# Please submit bugfixes or comments via http://bugs.opensuse.org/
|
||||
#
|
||||
|
||||
|
||||
#nospeccleaner
|
||||
|
||||
%{?!python_module:%define python_module() python-%{**} python3-%{**}}
|
||||
@@ -26,10 +27,12 @@ License: Apache-2.0
|
||||
Group: System/Monitoring
|
||||
Url: https://libcloud.apache.org
|
||||
Source0: https://files.pythonhosted.org/packages/source/a/apache-libcloud/apache-libcloud-%{version}.tar.gz
|
||||
Patch0: fix-backports-usage.patch
|
||||
BuildRequires: %{python_module lxml}
|
||||
BuildRequires: %{python_module setuptools}
|
||||
BuildRequires: %{python_module xml}
|
||||
BuildRequires: fdupes
|
||||
BuildRequires: python-backports.ssl_match_hostname
|
||||
BuildRequires: python-rpm-macros
|
||||
%if 0%{?suse_version} >= 1210
|
||||
BuildRequires: systemd
|
||||
@@ -46,13 +49,14 @@ differences among multiple cloud provider APIs.
|
||||
|
||||
%prep
|
||||
%setup -q -n apache-libcloud-%{version}
|
||||
%patch0 -p1
|
||||
|
||||
%build
|
||||
%python_build
|
||||
|
||||
%install
|
||||
%python_install
|
||||
%fdupes %{buildroot}%{python_sitelib}/libcloud/test/
|
||||
%fdupes %{buildroot}%{_prefix}
|
||||
|
||||
%files %{python_files}
|
||||
%defattr(-,root,root)
|
||||
|
||||
Reference in New Issue
Block a user