On Tue, Dec 16, 2008 at 12:27:04PM -0400, Devan Goodwin wrote: > I think the build.py script for building spacewalk packages is ready > for some wider testing. At this point the functionality should be > roughly equivalent to the Makefile.git. If you're looking to build > spacewalk packages the script is located in rel-eng/bin/build.py. > > To use it just cd to the project you want to build and call the script > via full path, or add it to your PATH variable and make your life > easier. > > cd java/ > build.py --srpm > > Also if you'd prefer to have your packages built somewhere *other* than > the current working directory (which is very useful) Jan's setup for > configuring this still works: > > (dgood...@elaine)[~/src/spacewalk] % cat ~/.spacewalk-build-rc > RPMBUILD_BASEDIR = /tmp/spacewalk-build > > Usage is: > > (dgood...@elaine)[~/src/spacewalk] % build.py --help > Usage: build.py [options] arg > > Options: > -h, --help show this help message and exit > --tgz build .tar.gz
The build.py generates .tar.gz with different content than make does: $ make tgz Removing previous [/tmp/spacewalk-build/rpmbuild-spacewalk-java-0.4.7-1/] Creating [/tmp/spacewalk-build/rpmbuild-spacewalk-java-0.4.7-1/] Wrote: /tmp/spacewalk-build/rpmbuild-spacewalk-java-0.4.7-1/spacewalk-java-0.4.7.tar.gz $ md5sum /tmp/spacewalk-build/rpmbuild-spacewalk-java-0.4.7-1/spacewalk-java-0.4.7.tar.gz 8340e0ce02f8fb5677373b66257d3d8f /tmp/spacewalk-build/rpmbuild-spacewalk-java-0.4.7-1/spacewalk-java-0.4.7.tar.gz $ $ ../rel-eng/bin/build.py --tgz Building version: 0.4.7 Creating spacewalk-java-0.4.7.tar.gz from git tag: e31a535781ec4b1d2790e2f07a58a3e74ad57e29... Wrote: /tmp/spacewalk-build/spacewalk-java-0.4.7.tar.gz $ md5sum /tmp/spacewalk-build/spacewalk-java-0.4.7.tar.gz 11851f3be168a7252eaef9abf459d50f /tmp/spacewalk-build/spacewalk-java-0.4.7.tar.gz $ -- Jan Pazdziora Satellite Engineering, Red Hat _______________________________________________ Spacewalk-devel mailing list Spacewalk-devel@redhat.com https://www.redhat.com/mailman/listinfo/spacewalk-devel