2 %bcond_with python3 # it seems it is not there, although 'six' is used
4 Summary: Eucalyptus/AWS-compatible command line tools
9 Group: Applications/Networking
10 Source0: http://downloads.eucalyptus.com/software/euca2ools/3.2/source/%{name}-%{version}.tar.xz
11 # Source0-md5: b62502aa45f679c4f0ad01b658f095f5
12 URL: https://github.com/eucalyptus/euca2ools
13 BuildRequires: rpm-pythonprov
14 BuildRequires: rpmbuild(macros) >= 1.710
16 BuildRequires: python-setuptools > 7.0
19 BuildRequires: python3-setuptools > 7.0
24 Requires: openssl-tools
26 Requires: python-%{name}
27 Requires: python-modules
31 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
34 Euca2ools are command line tools used to interact with Amazon Web
35 Services (AWS) as well as other compatible services, such as
36 Eucalyptus. They aim to use the same input as similar tools provided
37 by AWS for each service individually along with several enhancements
38 that make them easier to use.
40 %package -n python-%{name}
41 Summary: Euca2ools python modules
42 Group: Libraries/Python
44 Requires: python-progressbar
45 Requires: python-requestbuilder
46 Requires: python-requests
47 Requires: python-setuptools
50 %description -n python-%{name}
53 %package -n python3-%{name}
54 Summary: Euca2ools python modules
55 Group: Libraries/Python
56 Requires: python3-lxml
57 Requires: python3-progressbar
58 Requires: python3-requestbuilder
59 Requires: python3-requests
60 Requires: python3-setuptools
63 %description -n python3-%{name}
70 %py_build %{?with_tests:test}
74 %py3_build %{?with_tests:test}
78 rm -rf $RPM_BUILD_ROOT
91 rm -rf $RPM_BUILD_ROOT
94 %defattr(644,root,root,755)
96 %attr(755,root,root) %{_bindir}/*
97 %{_mandir}/man1/eu*.1*
100 %files -n python-%{name}
101 %defattr(644,root,root,755)
102 %{py_sitescriptdir}/%{name}
103 %{py_sitescriptdir}/%{name}-%{version}-py*.egg-info
107 %files -n python3-%{name}
108 %defattr(644,root,root,755)
109 %{py3_sitescriptdir}/%{name}
110 %{py3_sitescriptdir}/%{name}-%{version}-py*.egg-info