On 4/19/05, seth vidal <skvidal@xxxxxxxxxxxx> wrote: > > Is it possible to produce both > > these packages with a single build (as subpackages)? > > > > no, you cannot produce 2 archs from one build. > > -sv > Well you can, but you have to use two things: - various %ifarch and %ifnarch magic to include only like arch %files. - stack up arches on the --target option of rpmbuild (read rpmbuild man page). OK, Seth is technically correct, because --target causes a run through the librpmbuild for each arch such that technically its a seperate build. This is why you have to only include the %files for correct target, and of course do %ifarch stuff to setup your autoconf of makefile stuff appropriately. An example of doing this is in the RH kernel srpm's spec file. Unfortunately its not a simple example but it is a real example. Cheers...james > > _______________________________________________ > Rpm-list mailing list > Rpm-list@xxxxxxxxxx > https://www.redhat.com/mailman/listinfo/rpm-list > _______________________________________________ Rpm-list mailing list Rpm-list@xxxxxxxxxx https://www.redhat.com/mailman/listinfo/rpm-list