SPECS/google-startup-scripts/google-startup-scripts.spec
f4d17450
 Summary:	Google Startup Scripts
 Name:		google-startup-scripts
e6755103
 Version:	1.3.3
c3a3fd12
 Release:	2%{?dist}
f4d17450
 License:	Apache License
 Group:		System Environment/Base
 URL:		https://github.com/GoogleCloudPlatform/compute-image-packages/
e6755103
 Source0:	compute-image-packages-%{version}.tar.gz
 %define sha1 compute-image-packages=dd115b7d56c08a3c62180a9b72552a54f7babd4f
f4d17450
 Vendor:		VMware, Inc.
 Distribution:	Photon
 Provides:	google-startup-scripts
 BuildArch:	noarch
 Requires:  	python2
 
 %description
 Google provides a set of startup scripts that interact with the virtual machine environment.
 On boot, the startup script /usr/share/google/onboot queries the instance metadata
 for a user-provided startup script to run. User-provided startup scripts can be specified
 in the instance metadata under startup-script or, if the metadata is in a small script
 or a downloadable file, it can be specified via startup-script-url.
 
 %prep
e6755103
 %setup -q -n compute-image-packages-%{version}/%{name}
f4d17450
 
 %build
 
 %install
 rm -rf $RPM_BUILD_ROOT
 install -d $RPM_BUILD_ROOT
 cp -rpf * $RPM_BUILD_ROOT
d4ac9292
 mkdir -p $RPM_BUILD_ROOT/etc/rc.d/init.d
 mv $RPM_BUILD_ROOT/etc/init.d/* $RPM_BUILD_ROOT/etc/rc.d/init.d/
 rm -rf $RPM_BUILD_ROOT/etc/init.d/
f4d17450
 
 %clean
 rm -rf $RPM_BUILD_ROOT
 
 %files
 %defattr(-,root,root)
 /usr/*
 /lib/*
 /etc/*
 %exclude /README.md
 %exclude /LICENSE
47bb39b3
 
 %changelog
c3a3fd12
 *	Tue May 24 2016 Priyesh Padmavilasom <ppadmavilasom@vmware.com> 1.3.3-2
 -	GA - Bump release of all rpms
e6755103
 *   Tue Feb 23 2016 Xiaolin Li <xiaolinl@vmware.com> 1.3.3-1
 -   Updated to version 1.3.3
d4ac9292
 *   Thu Jan 28 2016 Anish Swaminathan <anishs@vmware.com> 1.3.1-1
 -   Upgrade version
47bb39b3
 *   Mon Aug 10 2015 Anish Swaminathan <anishs@vmware.com> 1.2.7-1
 -   Updated version.