Re: How to make one SPEC file for multiple architectures...?

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

 



On Thu, Jun 30, 2005 at 03:57:33PM -0500, Thomas Cameron wrote:

> I normally write up my spec file except for the %files section, run
> rpmbuild -bb against it, and then find all the directories and files
> in /var/tmp/[package]-root to populate my %files section.  I know this
> is the slacker way, but it always works.
> 
> How *should* I do it?  Because when I move a source RPM from my i386 to
> my x86_64 platform, it boogers up.

You can put %ifarch i386 / %endif around file lists, but if your
file list differs a lot between architectures, you may have
other issues to solve.   Like using macros, like %{_libdir} etc.,
that is /usr/lib on i386 and /usr/lib64 on x86_64.

-- 
--    Jos Vos <jos@xxxxxx>
--    X/OS Experts in Open Systems BV   |   Phone: +31 20 6938364
--    Amsterdam, The Netherlands        |     Fax: +31 20 6948204


[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