]> git.pld-linux.org Git - packages/euca2ools.git/commitdiff
new package auto/th/euca2ools-3.2.0-1
authorJacek Konieczny <j.konieczny@eggsoft.pl>
Tue, 31 Mar 2015 13:35:42 +0000 (15:35 +0200)
committerJacek Konieczny <j.konieczny@eggsoft.pl>
Tue, 31 Mar 2015 13:35:42 +0000 (15:35 +0200)
euca2ools.spec [new file with mode: 0644]

diff --git a/euca2ools.spec b/euca2ools.spec
new file mode 100644 (file)
index 0000000..420118a
--- /dev/null
@@ -0,0 +1,119 @@
+%bcond_without python2
+%bcond_with    python3 # it seems it is not there, although 'six' is used
+
+Summary:       Eucalyptus/AWS-compatible command line tools
+Name:          euca2ools
+Version:       3.2.0
+Release:       1
+License:       BSD
+Group:         Applications/Networking
+Source0:       http://downloads.eucalyptus.com/software/euca2ools/3.2/source/%{name}-%{version}.tar.xz
+# Source0-md5: b62502aa45f679c4f0ad01b658f095f5
+URL:           https://github.com/eucalyptus/euca2ools
+BuildRequires: rpm-pythonprov
+BuildRequires: rpmbuild(macros) >= 1.219
+%if %{with python2}
+BuildRequires: python-setuptools > 7.0
+%endif
+%if %{with python3}
+BuildRequires: python3-setuptools > 7.0
+%endif
+Requires:      gdisk
+Requires:      gzip
+Requires:      kpartx
+Requires:      openssl-tools
+Requires:      parted
+Requires:      python-%{name}
+Requires:      python-modules
+Requires:      rsync
+Requires:      util-linux
+BuildArch:     noarch
+BuildRoot:     %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
+
+%description
+Euca2ools are command line tools used to interact with Amazon Web
+Services (AWS) as well as other compatible services, such as
+Eucalyptus. They aim to use the same input as similar tools provided
+by AWS for each service individually along with several enhancements
+that make them easier to use.
+
+%package -n python-%{name}
+Summary:       Euca2ools python modules
+Group:         Libraries/Python
+Requires:      python-lxml
+Requires:      python-progressbar
+Requires:      python-requestbuilder
+Requires:      python-requests
+Requires:      python-setuptools
+Requires:      python-six
+
+%description -n python-%{name}
+
+
+%package -n python3-%{name}
+Summary:       Euca2ools python modules
+Group:         Libraries/Python
+Requires:      python3-lxml
+Requires:      python3-progressbar
+Requires:      python3-requestbuilder
+Requires:      python3-requests
+Requires:      python3-setuptools
+Requires:      python3-six
+
+%description -n python3-%{name}
+
+%prep
+%setup -q
+
+%build
+%if %{with python2}
+%{__python} setup.py build --build-base build-2 %{?with_tests:test}
+%endif
+
+%if %{with python3}
+%{__python3} setup.py build --build-base build-3 %{?with_tests:test}
+%endif
+
+%install
+rm -rf $RPM_BUILD_ROOT
+
+%if %{with python2}
+%{__python} setup.py \
+       build --build-base build-2 \
+       install --skip-build \
+       --optimize=2 \
+       --root=$RPM_BUILD_ROOT
+
+%py_postclean
+%endif
+
+%if %{with python3}
+%{__python3} setup.py \
+       build --build-base build-3 \
+       install --skip-build \
+       --optimize=2 \
+       --root=$RPM_BUILD_ROOT
+%endif
+
+%clean
+rm -rf $RPM_BUILD_ROOT
+
+%files
+%defattr(644,root,root,755)
+%doc README INSTALL
+%attr(755,root,root) %{_bindir}/*
+%{_mandir}/man1/eu*.1*
+
+%if %{with python2}
+%files -n python-%{name}
+%defattr(644,root,root,755)
+%{py_sitescriptdir}/%{name}
+%{py_sitescriptdir}/%{name}-%{version}-py*.egg-info
+%endif
+
+%if %{with python3}
+%files -n python3-%{name}
+%defattr(644,root,root,755)
+%{py3_sitescriptdir}/%{name}
+%{py3_sitescriptdir}/%{name}-%{version}-py*.egg-info
+%endif
This page took 0.094366 seconds and 4 git commands to generate.