1 %bcond_without python2 # CPython 2.x module
2 %bcond_without python3 # CPython 3.x module
5 Summary: An integrated interface to infrastructural services offered by Amazon Web Services
6 Summary(pl.UTF-8): Zintegrowany interfejs do usług infrastruktury oferowanych przez usługi WWW Amazon
11 Group: Libraries/Python
12 Source0: https://pypi.python.org/packages/c4/bb/28324652bedb4ea9ca77253b84567d1347b54df6231b51822eaaa296e6e0/boto-%{version}.tar.gz
13 # Source0-md5: 62b6ef1af3d18f8811f97e311b856dad
14 URL: https://github.com/boto/boto
15 BuildRequires: python-devel
16 BuildRequires: rpm-pythonprov
17 BuildRequires: rpmbuild(macros) >= 1.710
20 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
23 An integrated interface to current and future infrastructural services
24 offered by Amazon Web Services.
26 %description -l pl.UTF-8
27 Zintegrowany interfejs do aktualnych i przyszłych usług infrastruktury
28 oferowanych przez usługi WWW Amazon.
30 %package -n python3-%{module}
31 Summary: An integrated interface to infrastructural services offered by Amazon Web Services
32 Summary(pl.UTF-8): Zintegrowany interfejs do usług infrastruktury oferowanych przez usługi WWW Amazon
33 Group: Libraries/Python
35 %description -n python3-%{module}
36 An integrated interface to current and future infrastructural services
37 offered by Amazon Web Services.
39 %description -n python3-%{module} -l pl.UTF-8
40 Zintegrowany interfejs do aktualnych i przyszłych usług infrastruktury
41 oferowanych przez usługi WWW Amazon.
44 Summary: Python utilities for Amazon Web Services
46 Requires: %{name} = %{version}-%{release}
49 Boto is an integrated Python interface to current and future
50 infrastructural services offered by Amazon Web Services.
52 This package includes sample utilities implemented with this API.
55 %setup -q -n %{module}-%{version}
59 %py3_build %{?with_tests:test}
63 %py_build %{?with_tests:test}
67 rm -rf $RPM_BUILD_ROOT
71 rm -rf $RPM_BUILD_ROOT%{py3_sitescriptdir}/tests
75 rm -rf $RPM_BUILD_ROOT%{_bindir}
78 rm -rf $RPM_BUILD_ROOT%{py_sitescriptdir}/tests
83 rm -rf $RPM_BUILD_ROOT
86 %defattr(644,root,root,755)
88 %{py_sitescriptdir}/boto
89 %{py_sitescriptdir}/boto-*.egg-info
91 %files -n python3-%{module}
92 %defattr(644,root,root,755)
94 %{py3_sitescriptdir}/boto
95 %{py3_sitescriptdir}/boto-*.egg-info
98 %defattr(644,root,root,755)
99 %attr(755,root,root) %{_bindir}/*