To clarify, I currently have this in my spec file: %files /home/my_user/template_dir/etc/file1.conf /home/my_user/template_dir/usr/local/bin/some_file /home/my_user/template_dir/usr/local/doc/some_file.txt what I want is something like: %files %magic_directive_to_tell_rpm_to_chop_off /home/my_user/template_dir/ /home/my_user/template_dir/etc/file1.conf /home/my_user/template_dir/usr/local/bin/some_file /home/my_user/template_dir/usr/local/doc/some_file.txt I searched through the maximum rpm book but could not find anything. I know I could make a relocatable rpm but I don't think that is really what I want (or the proper use of relocatable rpm's). Thanks again. --- Hugh Beaumont <hbeaumont@xxxxxxxxx> wrote: > Hi List, > > I am writing a simple spec file which installs some files. No build, or install steps are done. > I have a "template" file system inside my /home/my_user/ dir which I keep the files in. I want > to > be able to update those files and then re-build my rpm to put them in their proper place on the > file system. A bit like if I tar'd them all up and then un-tarred them with a forced base dir > of / > > Does that make sense? > > For example, If I have a set of files : > > /home/my_user/template_dir/etc/file1.conf > /home/my_user/template_dir/usr/local/bin/some_file > /home/my_user/template_dir/usr/local/doc/some_file.txt > > which I want rpm to install as: > > /etc/file1.conf > /usr/local/bin/some_file > /usr/local/doc/some_file.txt > > How would I go about doing this? I know I could have a post step to mv the file all around > but I assume there is an easier and more elegant way. > > Any advice? > > Thanks! > > > > > > __________________________________ > Do you Yahoo!? > Find out what made the Top Yahoo! Searches of 2003 > http://search.yahoo.com/top2003 > > > _______________________________________________ > Rpm-list mailing list > Rpm-list@xxxxxxxxxx > https://www.redhat.com/mailman/listinfo/rpm-list __________________________________ Do you Yahoo!? Find out what made the Top Yahoo! Searches of 2003 http://search.yahoo.com/top2003 _______________________________________________ Rpm-list mailing list Rpm-list@xxxxxxxxxx https://www.redhat.com/mailman/listinfo/rpm-list