Need spec files help

Calum caluml at gmail.com
Thu Jun 9 18:47:46 UTC 2011


On 9 June 2011 19:34, James R Maxwell <jrmaxwell at raytheon.com> wrote:

> How do I specify this list of files in my SPEC file in a different directory
> structure (some files from dirs x & y need to get installed into directory a
> and some files from dirs y & z need to get installed into directory b)

I think I understand.

Copy the files to the buildroot in the structure you want them to
appear on the system in.
(You might want to put %clean in there to stop them getting removed
after being built.)

Then list them as below.

%files
/usr/bin/foo
/etc/foo/foo.conf

You can specify the permissions as well/


More information about the Rpm-list mailing list