No description
Find a file
Brian Stinson 5a3f501158 If outdir is not checked into git when sources() is called, create the appropriate directory (RESOLVES: 0007297)
This commit also moves a comment that was checked in on the wrong line
2014-07-05 04:57:54 -05:00
src If outdir is not checked into git when sources() is called, create the appropriate directory (RESOLVES: 0007297) 2014-07-05 04:57:54 -05:00
.gitignore ignore pyc files 2014-06-13 21:56:17 -05:00
COPYING add a license and a README 2014-06-14 01:31:24 -05:00
README.md added more working commands and reorganized them into categories 2014-06-27 09:22:02 -05:00
setup.py Don't choke on multiple spaces in metadata files 2014-06-15 20:27:46 -05:00

Centpkg

Centpkg is a wrapper for rpkg which interacts with RPM git repositories like the ones hosted at http://git.centos.org. Rpkg also provides some convenience methods/commands for local builds via mock or rpmbuild, for interacting with koji, and for generating patches.

Centpkg is in pre-alpha state, as of now this is a proof of concept.

For now only a very small subset of rpkg commands are enabled.

Exception handling at the top level has been disabled for now to get better tracebacks during development.

Installing

Centpkg currently requires the EPEL repository for pyrpkg and other dependencies.

root# <Install and configure EPEL-Release>
root# yum install pyrpkg
root# git clone https://bitbucket.org/bstinsonmhk/centpkg.git
root# cd centpkg
root# python setup.py install

Currently Somewhat-working Commands

Git Operations

$ centpkg clone --anonymous -b c7 a2ps        # clones the CentOS 7 branch of the a2ps package
$ centpkg add-tag                             # Adds a git tag to the repo
$ centpkg list-tag                            # Shows the relevant git tags
$ centpkg delete-tag                          # Shows the relevant git tags
$ centpkg commit                              # Commits to the current branch
$ centpkg pull                                # Pulls from the git remote
$ centpkg switch-branch                       # Switch to a git branch (if it exists upstream it will track it for you)

File/Working directory operations

$ centpkg sources                             # Downloads the binary sources from lookaside and checks hashes
$ centpkg clean                               # Removes untracked files

rpmbuild Operations

$ centpkg local                               # Runs a full rpmbuild
$ centpkg compile                             # Runs rpmbuild -bc
$ centpkg verify-files                        # Runs rpmbuild -bl

License

Unless otherwise specified, all files are licensed under GPLv2+. See COPYING for more license information