Modify

Ticket #553 (closed enhancement: fixed)

Opened 15 years ago

Last modified 15 years ago

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

bcfg2_rpmbuild.diff (19.0 KB) - added by [email protected] 15 years ago.
diff to build RPM from svn
bcfg2_rpmbuild.2.diff (12.7 KB) - added by [email protected] 15 years ago.
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

Change History

Changed 15 years ago by [email protected]

diff to build RPM from svn

Changed 15 years ago by [email protected]

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.

comment:3 Changed 15 years ago by desai

  • Status changed from reopened to closed
  • Resolution set to fixed

This should be fixed now.

WARNING! You need to establish a session before you can create or edit tickets. Otherwise the ticket will get treated as spam.

View

Add a comment

Modify Ticket

Change Properties
<Author field>
Action
as closed
The resolution will be deleted. Next status will be 'reopened'
Author


E-mail address and user name can be saved in the Preferences.

 
Note: See TracTickets for help on using tickets.