[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]

Re: base directory for files section of spec file



* Hugh Beaumont <hbeaumont@yahoo.com> [03/01/2004 0416EST]:
[...]
> 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
[...]

It is 6am and I am delirious, but I can tell you this much: there is no
%magic_directive because there is no need for it.  :)  The %files
section should contain paths to files *as you want them to be
installed*.  For example:

%files
/etc/file1.conf
/usr/local/bin/some_file
/usr/local/doc/some_file.txt

These files are found and packaged by RPM relative to %{buildroot} which
you specify via the BuildRoot tag in the spec file.  %{buildroot} is a
fake root path where the files are temporarily installed (before RPM
packages them up).  In your case this is /home/my_user/template_dir.

I believe Max RPM speaks about this.

Good luck.
krjw.
-- 
Keith R. John Warno                  [k r j w  at  optonline dot net]




[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]