Adding remove_file options to yaml so we can add files to be removed from packages

(cherry picked from commit b7803a3633)
This commit is contained in:
Gerardo Porras
2012-11-09 13:13:02 -08:00
parent 1ce5e01185
commit 57de43d83b
3 changed files with 7 additions and 0 deletions

View File

@@ -34,4 +34,7 @@ keystone:
# metadata about them, so that re-examination before
# uploading does not have to occur
image_cache_dir: "/usr/share/anvil/glance/images"
# Used by install section in the specfile
remove_file: /bin/rm -rf %{buildroot}/usr/bin/glance
...

View File

@@ -121,6 +121,9 @@ $build.action
#if $build.has_key('install_how')
$build.install_how
#end if
#if $build.has_key('remove_file')
$build.remove_file
#end if
%files
%defattr(-,root,root,-)