No description
Find a file
2020-03-31 15:23:00 +02:00
obsscripts Move common to obsscripts module 2019-12-17 13:07:35 +01:00
templates Update rook to 1.2.7, add ceph=True label to ceph-image 2020-03-31 15:23:00 +02:00
.gitignore update-images.py 2019-12-17 13:07:35 +01:00
changelog-merge merge entries where the body is the same but the timestamp differs 2016-10-06 16:19:59 +02:00
create-srs.sh Bugfixes mainly 2019-12-17 13:07:35 +01:00
LICENSE Initial commit 2014-03-19 04:56:28 -07:00
obs Use basename from url as filename if source is url 2015-09-13 17:21:39 +02:00
obs.conf Medium: add ability to work from differently named github forks 2015-02-19 18:45:02 +01:00
pylintrc first version 2019-12-17 13:06:07 +01:00
README.md Updated README 2014-03-19 13:13:02 +01:00
update-changelog.sh Bugfixes mainly 2019-12-17 13:07:35 +01:00
update-images.py The name_prefix thing was perhaps a temporary issue... need to investigate 2019-12-22 22:01:02 +01:00
update-rook.py Update rook to 1.2.7, add ceph=True label to ceph-image 2020-03-31 15:23:00 +02:00

obs-scripts

Small tools/scripts I use to work with the openSUSE build service (build.opensuse.org)

obs

This script is intended to help with the process of building and testing OBS packages based on a git or mercurial repository. It takes care of creating a tarball from the repository head, updating the tarball in the OBS project checkout and building the package locally.

The script as it is makes a lot of assumptions. I'll try to list as many as I can:

  • OBS project checkouts are kept in a directory tree, by default ~/build-service/obs/<repository>/<project>.

  • The source code for the projects are kept separately "somewhere else".

For each build target on the OBS, a target needs to be defined in the obs.conf file used by the obs tool.

Example usage:

To build packages for the project crmsh from network:ha-clustering:Factory:

  1. Check out crmsh from OBS to ~/build-service/obs/network:ha-clustering:Factory/crmsh:

     cd ~/build-service/obs
     osc co network:ha-clustering:Factory crmsh
    
  2. Check out the crmsh source code from mercurial:

     cd ~/src
     hg clone http://hg.savannah.nongnu.org/hgweb/crmsh/
    
  3. Add a target definition to obs.conf:

     [crmsh]
     branch=network:ha-clustering:Factory
     repo=openSUSE_Factory
    
  4. Run the obs tool from the crmsh source directory:

     cd ~/src/crmsh
     obs run crmsh