Am Tue, 6 Jun 2006 03:45:03 -0700 schrieb "Marcel Gehrlein" <[EMAIL PROTECTED]>:
> hi, > > I downloaded y2pmbuild 2.13.3-6 from OpenSuSE 10.1 and installed it > on a sles10rc2. I can build rpms as root and user using y2pmbuild > without problems. I'd like to build i686 RPMs, but had no luck so > far.. > > This is what I did: > > - install sles10rc2 > - install y2pmbuild > - copy /etc/y2pmbuild/dists/10.1 to sles10 (same dir) > - symlinked sles10-i686 to sles10 (same dir) > - copied /etc/y2pmbuild/macros/10.1/macros file to > /etc/y2pmbuild/macros/sles10-i686/macros > - edited ..../sles10-i686/macros: %_target_cpu i686 > - export BUILD_DIST="sles10-i686" > - unpack any .src.rpm > - run y2pmbuild > > The %_target_cpu macro is always set to i586. > > I tried different locations for setting %_target_cpu, but only > inside the .spec file it worked. Isn't there a better way? > Just call y2pmbuild with the --target parameter: y2pmbuild --target=i686 Marcus --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
