Debian packaging notes for Coquelicot
=====================================

Debian packaging for Coquelicot is managed in a Git repository using
git-buildpackage.

Packaging practices also follow most of the advices provided by Russ
Allbery at: <http://www.eyrie.org/~eagle/notes/debian/git.html>

Quilt patches are managed using gbp-pq.

Here is how a to setup a work environment:

    git clone git+ssh://git.debian.org/colab-maint/coquelicot.git
    cd coquelicot
    git branch upstream origin/upstream
    git branch pristine-tar origin/pristine-tar
    git remote add potager-upstream https://coquelicot.potager.org/coquelicot.git

Once this is done, upgrading to a new version should look like:

    VERSION=0.9.3
    git fetch potager-upstream
    git tag -v coquelicot-$VERSION
    uscan --verbose
    git-import-orig --upstream-vcs-tag=coquelicot-$VERSION ../coquelicot-$VERSION.tar.gz
    debian/rules create-static-gemspec
    [… Adapt as needed, refresh debian/patches …]
    dch -v $VERSION-1
    git-buildpackage
    [… Test, hack, build, repeat …]
    dch --release
    git commit -m "Release version $VERSION" debian/changelog
    git-buildpackage
    [… Check and test that everything is good once more …]
    git tag -s -F ../build-area/coquelicot_$VERSION-1_*.changes debian/$VERSION-1
