Re: base directory for files section of spec file

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

 



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@xxxxxxxxxxx>


_______________________________________________
Rpm-list mailing list
Rpm-list@xxxxxxxxxx
https://www.redhat.com/mailman/listinfo/rpm-list

[Index of Archives]     [RPM Ecosystem]     [Linux Kernel]     [Red Hat Install]     [PAM]     [Red Hat Watch]     [Red Hat Development]     [Red Hat]     [Gimp]     [Yosemite News]     [IETF Discussion]

  Powered by Linux