[Date Prev][Date Next] [Thread Prev][Thread Next]
[Thread Index]
[Date Index]
[Author Index]
Re: base directory for files section of spec file
- From: Paul Heinlein <heinlein cse ogi edu>
- To: Hugh Beaumont <hbeaumont yahoo com>
- Cc: rpm-list redhat com
- Subject: Re: base directory for files section of spec file
- Date: Sat, 3 Jan 2004 08:11:35 -0800 (PST)
On Sat, 3 Jan 2004, Hugh Beaumont wrote:
> 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
You'll probably have to do it in two steps:
%install
# cp -a would probably accomplish the same thing :-)
tar -cC /home/my_user/template_dir . | tar -xC $RPM_BUILD_ROOT
%files
...
-- Paul Heinlein <heinlein@cse.ogi.edu>
[Date Prev][Date Next] [Thread Prev][Thread Next]
[Thread Index]
[Date Index]
[Author Index]