Ticket #553 (closed enhancement: fixed)
Files to permit building RPMs directly from svn checkout
Reported by: | [email protected]… | Owned by: | desai |
---|---|---|---|
Priority: | minor | Milestone: | Bcfg2 0.9.6 Release |
Component: | bcfg2-client | Version: | |
Keywords: | RPM | Cc: |
Description
The attached diff moves the bcfg2.spec file into a new redhat directory and adds a mechanism to build the RPM directly from svn.
To use, simply do this:
cd redhat make
This will check out the latest code from svn and build the following RPMS into your RPMBUILD dir (usually ~/rpmbuild - you're not building as root, right?):
RPMS/noarch/bcfg2-server-0.9.6-0.1r4602.noarch.rpm RPMS/noarch/bcfg2-0.9.6-0.1r4602.noarch.rpm SRPMS/bcfg2-0.9.6-0.1r4602.src.rpm
4602 is the svn revision.
If you need to change package name, version, or release, simply modify the contents of the PACKAGE, VERSION, or RELEASE files.
(diff to follow)
Attachments
Change History
Changed 15 years ago by [email protected]…
- Attachment bcfg2_rpmbuild.diff added
Changed 15 years ago by [email protected]…
- Attachment bcfg2_rpmbuild.2.diff added
Revised diff. This one doesn't delete the misc/ directory and also significantly revises the .spec file, borrowing heavily from the "official" Redhat .spec file
comment:1 Changed 15 years ago by desai
- Status changed from new to closed
- Resolution set to fixed
- Milestone set to Bcfg2 0.9.6 Release
Committed in [896241a09f8eb1c724d64f17d9ac2539fce375ed] (SVN r4623). Thanks for the patch.
comment:2 Changed 15 years ago by anonymous
- Status changed from closed to reopened
- Resolution fixed deleted
I just checked out from https://svn.mcs.anl.gov/repos/bcfg/trunk/bcfg2 and the Makefile is missing from the redhat directory.
diff to build RPM from svn