Search
j0ke.net Open Build Service
>
Projects
>
J0KE.NET
:
infrastructure
>
ec2-ami-tools
> Changes
Sign Up
|
Log In
Username
Password
Cancel
Overview
Repositories
Revisions
Requests
Users
Advanced
Attributes
Meta
Changes of Revision 2
[-]
[+]
Added
ec2-ami-tools.spec
@@ -0,0 +1,58 @@ +# +# 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 +BuildRequires: unzip +Requires: curl coreutils openssl rsync ruby gzip +Summary: AWS - Elastic Computer Cloud +Version: 1.3.34544 +%define real_version_ami 1.3-34544 +Release: 28 +Group: System/Management +License: GPL v2 or later +#Source: ec2-ami-tools-%{real_version_ami}.tar.bz2 +Source: ec2-ami-tools.zip +Source10: enviroment.sh +Requires: ec2-api-tools +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 +#unzip %{SOURCE0} + +%setup -n ec2-ami-tools-%real_version_ami + +%build +# noarch + +%install +mkdir -p $RPM_BUILD_ROOT/usr/lib/AmazonEC2/ec2-ami-tools $RPM_BUILD_ROOT/etc/profile.d/ +cp -al * $RPM_BUILD_ROOT/usr/lib/AmazonEC2/ec2-ami-tools/ +install -m 0644 %{SOURCE10} $RPM_BUILD_ROOT/etc/profile.d/amazonEC2.sh + +#fix broken env reference +find $RPM_BUILD_ROOT -type f | while read i; do + sed -i 's,#!/bin/env,#!/usr/bin/env,' "$i" +done + +%files +%defattr(-,root,root) +/usr/lib/AmazonEC2 +/etc/profile.d/* + +%clean +rm -rf $RPM_BUILD_ROOT +