example of buildsys rpm

seth vidal skvidal at linux.duke.edu
Tue Apr 4 21:02:47 UTC 2006


On Tue, 2006-04-04 at 14:26 -0500, Clark Williams wrote:
> -----BEGIN PGP SIGNED MESSAGE-----
> Hash: SHA1
> 
> All,
> 
> I hand-hacked this specfile together using the FC4 buildroots.xml as
> the starting point. Just wanted to put together a test to see how
> complicated it would be (it wasn't; witness the fact that I did it :).
> I've got a start on a small python script that will parse the current
> buildroots and generate spec files for the various configurations.
> 
> I built it like this:
> rpmbuild --define "_sourcedir $(PWD)" --define "_builddir
> $(PWD)/buildsys" --define "_srcrpmdir $(PWD)/buildsys" --define
> "_rpmdir $(PWD)/buildsys" -ba buildsys-minimal.spec
> 
> It generates a small binary RPM (and an SRPM) that contains one file,
> buildsys-minimal.spec and requires all the listed packages. I
> originally had BuildRequires and then changed to Requires, just
> because it's easy to query the resulting binary RPM for requires. I
> suspect to be totally correct we would need to go back to BuildRequires.

Requires is definitely better b/c we're not building that package.

We'd just be yum --installroot=/some/place install buildsys-minimal

The req'ing in all those items.


> Anyway, that's what I thought Seth was talking about with his RPM
> idea. What do you think?
> 
> #Requires: buildsys-macros
why comment this one out?


-sv





More information about the Fedora-buildsys-list mailing list