Back to releasing

RPM packaging

Adapt the spec file

Make sure to update the version (top of the file) and the changelog (bottom of the file) at least.

workstation$ git checkout centos6/2.5
workstation$ git pull --rebase
workstation$ vi rpm/SPECS/oar.spec
workstation$ git add rpm/SPECS/oar.spec && git commit

Generate the rpms (Centos6)

On Debian

You first need to install schroot and to create a schroot-centos.

Then use sbuildrpm:

workstation$ ./sbuildrpm/bin/sbuildrpm rpm/SPECS/oar.spec
[...]
OK, everything is now in ../rpmbuild !

If everything goes well, SRPMS and RPMS should be placed in ../rpmbuild/

On RedHat

We only build on Debian. Help yourself.

Publication

Push the RPMs to archive-oar.imag.fr

workstation$ dputrpm ~/rpmbuild/SRPMS/oar-2.5.6-1.el6.src.rpm
[...]
workstation$ git tag centos6/2.5.6-1.el6 -s -m centos6/2.5.6-1.el6

Git push

If everthing is ok, push to origin

workstation$ git push
workstation$ git push --tags

That's it.

wiki/rpm_packaging.txt · Last modified: 2016/02/18 23:08 by neyron
Recent changes RSS feed GNU Free Documentation License 1.3 Donate Powered by PHP Valid XHTML 1.0 Valid CSS Driven by DokuWiki