How to build comps and rpmdb rpm's
Comps
In the comps spec file you need to change "%define basedir" to reflect
your environment.
You can see the main Scientific Linux's in
ftp://ftp.scientificlinux.org/linux/scientific/301/i386/SL/base/scripts/comps.spec
And a site specific one at
ftp://ftp.scientificlinux.org/linux/scientific/301/i386/sites/example/base/scripts/comps.site.spec
rpmdb
For the rpmdb-redhat you need to add "%define rpmdbtree $TREE", where $TREE is represents your tree value. Ours is /mnt/src/sl30rolling
You can see our's in
ftp://ftp.scientificlinux.org/linux/scientific/301/i386/SL/build/scripts/rpmdb-SL.spec.in
Note that I sort of "rewrote" some of the defines at the top of our version so that it would be easier to change for the sites.
For customized sites, the script "transform.sh" at ftp://ftp.scientificlinux.org/linux/scientific/30rolling/i386/sites/example/build/scripts/transform.sh takes the rpmdb-example.spec.in and turns in into rpmdb-$SITE.spec.in with all the defines fixed up to reflect that site.
-Connie Sieh