On Tue, Aug 02, 2005 at 11:47:49AM -0400, James B. Byrne enlightened us: > I am attempting to build from a src.rpm (knowing very little about > rpm at all) and the spec file notes that the architecture should be > set on the command line: > > > # platform defines - set one below or define the build_xxx on the > command line > > Now. My question is this, how does one do this using rpmbuild? > The syntax rpmbuild --target centos4 package.src.rpm seemingly has > no effect. > > Please note that I am a digest subscriber so it is most useful if > replies are sent to me directly as well as to the list. You can define things on the command line. From the comment, it looks like there are some variables defined in the spec file: build_centos4 may be one of those. Your best bet is to crack open the src.rpm (rpm -i), and take a peek at the spec file. Then, from the command line you can do something like: rpmbuild -ba --define 'build_centos4 1' package.spec Assuming they want you to set it to 1, and such a variable exists, of course. Matt -- Matt Hyclak Department of Mathematics Department of Social Work Ohio University (740) 593-1263 -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: application/pgp-signature Size: 189 bytes Desc: not available Url : http://lists.centos.org/pipermail/centos/attachments/20050802/e47cfdb3/attachment.bin