example of buildsys rpm

Clark Williams williams at redhat.com
Tue Apr 4 19:26:45 UTC 2006


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

Anyway, that's what I thought Seth was talking about with his RPM
idea. What do you think?

Clark

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.2.2 (GNU/Linux)
Comment: Using GnuPG with Fedora - http://enigmail.mozdev.org

iD8DBQFEMsh0Hyuj/+TTEp0RAqLxAKDeNQr71ObH68KB/8cUeDC/IwnTBACdEZWP
zCVlr03vYsHKh5VBNzOwN7Q=
=sdkS
-----END PGP SIGNATURE-----

-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: buildsys-minimal.spec
URL: <http://listman.redhat.com/archives/fedora-buildsys-list/attachments/20060404/7a0dba16/attachment.ksh>


More information about the Fedora-buildsys-list mailing list