sclorg/centpkg-sclo

Name: centpkg-sclo

Owner: Software Collections

Description: Wrapper script around centpkg and cbs utility, that is especially designed for working with packages and repos in SCLo SIG group.

Created: 2016-01-07 09:51:09.0

Updated: 2016-01-16 14:57:42.0

Pushed: 2016-08-24 04:51:47.0

Homepage: null

Size: 11

Language: Shell

GitHub Committers

UserMost Recent Commit# Commits

Other Committers

UserEmailMost Recent Commit# Commits

README

centpkg-sclo

Wrapper script around centpkg and cbs utility, that is especially designed for working with packages and repos in SCLo SIG group.

Currently, since there is no dist-git and look-aside cache working in CentOS for SIG groups, this tool uses repositories on Github space at https://github.com/sclorg-distgit and look-aside cache from Fedora. As the build system, CentOS Build System (CBS, at cbs.centos.org us used.

Install instructions

This tool is build as RPM in Copr at https://copr.fedoraproject.org/coprs/hhorak/centpkg-sclo/.

Install instructions for Fedora 23
 dnf copr enable hhorak/centpkg-sclo
 dnf copr enable bstinson/centos-packager
 yum install centpkg-sclo

Or alternatively, if you don't use dnf copr plugin:

 curl https://copr.fedoraproject.org/coprs/hhorak/centpkg-sclo/repo/fedora-23/hhorak-centpkg-sclo-fedora-23.repo >/etc/yum.repos.d/centos-sclo.repo
 curl https://copr.fedoraproject.org/coprs/bstinson/centos-packager/repo/fedora-23/bstinson-centos-packager-fedora-23.repo >/etc/yum.repos.d/centos-packager.repo
 yum install centpkg-sclo
Install instructions for EPEL 7
 curl https://copr.fedoraproject.org/coprs/hhorak/centpkg-sclo/repo/epel-7/hhorak-centpkg-sclo-epel-7.repo >/etc/yum.repos.d/centos-sclo.repo
 curl https://copr.fedoraproject.org/coprs/bstinson/centos-packager/repo/epel-7/bstinson-centos-packager-epel-7.repo >/etc/yum.repos.d/centos-packager.repo
 yum install centpkg-sclo
Usage instructions

API of centpkg-sclo was deliberately designed to be the same as we know it from fedpkg or what will eventually be in centpkg.

That said, all actions, except 'create-branch', work the same as we know it from 'fedpkg'.

Action 'create-branch' creates a new branch in current repository. For creating entirely new repository, go to https://github.com/sclorg-distgit.

Example of whole workflow when building a new package
 Create a repository in GUI at https://github.com/sclorg-distgit, e.g. mariadb

 Clone the repository locally and enther the directory
entpkg-sclo clone mariadb
d mariadb

 Create a new branch according the scheme documented in https://wiki.centos.org/BrianStinson/GitBranchesandKojiTags
r CentOS 7 and rh-mariadb101 SCL it will be 'sig-sclo7-rh-mariadb101-rh'
entpkg-sclo create-branch rh-mariadb101 7

 (optionally) Switch to particular branch
entpkg-sclo switch-branch sig-sclo6-rh-mariadb101-rh

 Import the srpm package
entpkg-sclo import rh-mariadb101-mariadb-10.1.10-1.el7.src.rpm

 Commit the changes
it commit -am "Initial commit"

 Push the changes
it push

 (optionally) Build package locally
entpkg-sclo local

 (optionally) Build testing package in CBS
entpkd-sclo scratch-build

. (optionally) Create SRPM that may be submitted to CBS manually using `cbs` utility
entpkg-sclo srpm

. Finally, build regular package in CBS
entpkg-sclo build

For questions, suggestions or generally help with building packages in SCLo SIG in CentOS, contact sclorg@redhat.com mailing list.


This work is supported by the National Institutes of Health's National Center for Advancing Translational Sciences, Grant Number U24TR002306. This work is solely the responsibility of the creators and does not necessarily represent the official views of the National Institutes of Health.