forked from pool/python-apache-libcloud
Accepting request 629282 from home:seanmarlow:branches:devel:languages:python
- Cleanup RPM warnings. - Add image_projects.patch with updated list of latest image projects. A patch was accepted upstream many months ago to fix the list but it has never made it to a new version. And now that patch is out of date. Suggest we keep a patch of image projects to ensure the list is up-to-date. https://github.com/apache/libcloud/pull/1143 OBS-URL: https://build.opensuse.org/request/show/629282 OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-apache-libcloud?expand=0&rev=79
This commit is contained in:
committed by
Git OBS Bridge
parent
b42be3ca63
commit
c5b3e8b2d6
@@ -25,6 +25,7 @@ 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
|
||||
Patch1: image_projects.patch
|
||||
BuildRequires: %{python_module lxml}
|
||||
BuildRequires: %{python_module setuptools}
|
||||
BuildRequires: %{python_module xml}
|
||||
@@ -34,10 +35,10 @@ BuildRequires: python-rpm-macros
|
||||
BuildRequires: python2
|
||||
Requires: python-lxml
|
||||
Requires: python-requests
|
||||
BuildArch: noarch
|
||||
%ifpython2
|
||||
Requires: python2
|
||||
%endif
|
||||
BuildArch: noarch
|
||||
%python_subpackages
|
||||
|
||||
%description
|
||||
@@ -46,12 +47,16 @@ differences among multiple cloud provider APIs.
|
||||
|
||||
%prep
|
||||
%setup -q -n apache-libcloud-%{version}
|
||||
%patch1 -p1
|
||||
|
||||
%build
|
||||
%python_build
|
||||
|
||||
%install
|
||||
%python_install
|
||||
find %{buildroot} -name '*.DS_Store' -delete
|
||||
find %{buildroot} -name '*.json' -size 0 -delete
|
||||
find %{buildroot} -name '*.pem' -size 0 -delete
|
||||
%python_expand %fdupes -s %{buildroot}%{$python_sitelib}
|
||||
|
||||
%files %{python_files}
|
||||
|
||||
Reference in New Issue
Block a user