[CentOS] Re: rpm spec files for ruby

Tue Sep 11 16:58:13 UTC 2007
James B. Byrne <byrnejb at harte-lyne.ca>

Karanbir Singh wrote:
> To find out exactly what is going on, look at the bit which creates
> the .files that are then used in the %files section to workout what
> which files go into what rpm. There would be an overlap there.

Given this snippet:

%files -f ruby.files
%files devel -f ruby-devel.files

I speculate (since the rpm manual is not very helpful on the matter) that
if --target= is not specified then the first file command will execute but
not the third and include all of the files listed in ruby.files only
whereas if --target=devel is specified to the rpmbuild command then the
first and second commands will execute and include the contents of
ruby.files and ruby-devel.files.

Is my understanding of this correct or in what matter is it defective?


***          E-Mail is NOT a SECURE channel          ***
James B. Byrne                mailto:ByrneJB at Harte-Lyne.ca
Harte & Lyne Limited          http://www.harte-lyne.ca
9 Brockley Drive              vox: +1 905 561 1241
Hamilton, Ontario             fax: +1 905 561 0757
Canada  L8E 3C3