Mailinglist Archive: opensuse-packaging (74 mails)

< Previous Next >
[opensuse-packaging] _target_cpu for y2pmbuild on sles10
  • From: "Marcel Gehrlein" <mgehrlein@xxxxxxxxxx>
  • Date: Tue, 6 Jun 2006 03:45:03 -0700
  • Message-id: <13A7D16E6BC8794CB20DF8218B944BB203336E9B@xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx>

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
- 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?

Marcel Gehrlein

To unsubscribe, e-mail: opensuse-packaging-unsubscribe@xxxxxxxxxxxx
For additional commands, e-mail: opensuse-packaging-help@xxxxxxxxxxxx

< Previous Next >
Follow Ups