On Thu, Feb 03, 2005 at 10:29:24PM +0100, V. Buijtendijk wrote: > I have some binary files for multiple architectures. I would like to pack > these in an RPM installer file. It should basically detect the current > architecture and copy these files to the correct location. Maybe in the > future I will need to add dependencies. > What is the easiest way to do this? If you want to put the binaries of all architectures in one src.rpm, use something like: %prep %ifarch i386 ... %endif %ifarch s390 ... %endif to unpack/copy specific source files. Architecture is automatically set on the build system. Leave %build empty and copy the files to the buildroot target tree in %install, like a normal compiled rpm. Dependencies (shared libs etc.) will be detected automatically. -- -- Jos Vos <jos@xxxxxx> -- X/OS Experts in Open Systems BV | Phone: +31 20 6938364 -- Amsterdam, The Netherlands | Fax: +31 20 6948204 _______________________________________________ Rpm-list mailing list Rpm-list@xxxxxxxxxx https://www.redhat.com/mailman/listinfo/rpm-list