- Get yourself an account on OBS, and create your home project
- Get the CLI and build tool
$ apt-add-repository "deb http://download.opensuse.org/repositories/openSUSE:/Tools/xUbuntu_14.04/ /"
$ curl http://download.opensuse.org/repositories/openSUSE:/Tools/xUbuntu_14.04/Release.key | sudo apt-key add -
$ apt-get update
$ apt-get install -y osc build
- Make a local workspace
$ mkdir obs-workspace; cd obs-workspace
$ osc checkout home:<username> # then type in username and password
- Set up your project to build for your targets - in this case, CentOS 6:
$ osc meta prj -e home:<username>
and add the following XML stanza:
<project>
...
<repository name="CentOS_6">
<path project="CentOS:CentOS-6" repository="standard"/>
<arch>x86_64</arch>
</repository>
...
</project>
- Create yourself a new package:
$ osc meta pkg -e home:<username> <new package name> # edit title and description
$ osc up # fetch a local copy of the new package
$ cd home:<username>/<new package name>
- Add your files - spec files and sources
- Build locally:
$ osc build CentOS_6 x86_64 <your specfile>
- when it builds, fire it back up to OBS:
$ osc add <your project files>
$ osc commit