LogoopenSUSE Build Service > Projects
Sign Up | Log In

View File ec2-ami-tools.spec of Package ec2-ami-tools (Project home:jproseve:cloud)

#
# spec file for package ec2-ami-tools (Version 1.10)
#
# Copyright (c) 2008 SUSE LINUX Products GmbH, Nuernberg, Germany.
# This file and all modifications and additions to the pristine
# package are under the same license as the package itself.
#
# Please submit bugfixes or comments via http://bugs.opensuse.org/
#

Url:            http://www.amazon.com

Name:           ec2-ami-tools
Requires:       curl coreutils openssl rsync ruby gzip
Summary:        AWS - Elastic Computer Cloud
Version:        1.10
Release:        28
Group:          System/Management
License:        GPL v2 or later
Source:         ec2-ami-tools-1.3-21885.tar.bz2
Patch:          ec2-ami-tools-1.3-21885.dif
BuildRoot:      %{_tmppath}/%{name}-%{version}-build
BuildArch:      noarch

%description
The Amazon Elastic Compute Cloud (Amazon EC2) web service provides you with the
ability to execute arbitrary applications in our computing environment.

%prep
%setup -n ec2-ami-tools-1.3-21885
%patch

%build
# noarch

%install
test -e /.buildenv && . /.buildenv
mkdir -p $RPM_BUILD_ROOT/%{_bindir}
mkdir -p $RPM_BUILD_ROOT/%{_datadir}/ec2/ec2-ami-tools/lib/ec2
mkdir -p $RPM_BUILD_ROOT/%{_datadir}/ec2/ec2-ami-tools/etc/ec2
install -m 755 bin/* $RPM_BUILD_ROOT/%{_bindir}
cp -a lib/ec2/* $RPM_BUILD_ROOT/%{_datadir}/ec2/ec2-ami-tools/lib/ec2
cp -a etc/ec2/* $RPM_BUILD_ROOT/%{_datadir}/ec2/ec2-ami-tools/etc/ec2

for i in \
	amitools/S3.rb amitools/showversion.rb amitools/xmlbuilder.rb \
	amitools/make-fc4-image.rb platform/linux/uname.rb
do
	chmod 755 $RPM_BUILD_ROOT/%{_datadir}/ec2/ec2-ami-tools/lib/ec2/$i
done

for i in \
	amitools/bundle.rb amitools/deletebundle.rb amitools/bundleimage.rb \
	platform/linux/mtab.rb amitools/uploadbundle.rb platform/linux/image.rb \
	amitools/downloadbundle.rb platform/linux/fstab.rb
do
	chmod 644 $RPM_BUILD_ROOT/%{_datadir}/ec2/ec2-ami-tools/lib/ec2/$i
done

%clean
rm -rf $RPM_BUILD_ROOT

%files
%defattr(-, root, root)
%dir %{_datadir}/ec2
%dir %{_datadir}/ec2/ec2-ami-tools
%dir %{_datadir}/ec2/ec2-ami-tools/lib
%dir %{_datadir}/ec2/ec2-ami-tools/etc
%{_datadir}/ec2/ec2-ami-tools/etc/ec2
%{_datadir}/ec2/ec2-ami-tools/lib/ec2
%{_bindir}/ec2*