From 12d6cdce560be0b4788ae198f75d783a12b893c2 Mon Sep 17 00:00:00 2001 From: harlowja Date: Tue, 26 Jun 2012 07:48:12 -0700 Subject: Add in the ability to choose which type of boot type the rpm should have and adjust the specfile that is generated to remove the unwanted config files for the types which were not selected. --- packages/redhat/cloud-init.spec | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'packages/redhat') diff --git a/packages/redhat/cloud-init.spec b/packages/redhat/cloud-init.spec index f0c874ee..ddb6617d 100644 --- a/packages/redhat/cloud-init.spec +++ b/packages/redhat/cloud-init.spec @@ -37,11 +37,15 @@ ssh keys and to let the user run various scripts. %build %{__python} setup.py build - %install rm -rf $RPM_BUILD_ROOT %{__python} setup.py install -O1 --skip-build --root $RPM_BUILD_ROOT +# Remove anything after it was installed?? +{{for r in post_remove}} +rm -rfv $RPM_BUILD_ROOT/{{r}} +{{endfor}} + %clean rm -rf $RPM_BUILD_ROOT -- cgit v1.2.3