email-oauth2-proxy for Debian
-----------------------------

## How to package a new version.

```
# The first time
gbp clone git@gitlab.easter-eggs.com:fangebault/email-oauth2-proxy.git
cd email-oauth2-proxy
git remote add upstream https://github.com/simonrob/email-oauth2-proxy.git
git fetch --all

# On every new upstream release
NEW_UPSTREAM_VERSION=2025-MM-DD
git fetch upstream
git branch # make sure you are on branch debian/latest
git merge ${NEW_UPSTREAM_VERSION?}
gbp dch --snapshot --new-version=${NEW_UPSTREAM_VERSION//-/.}-1 debian/
git commit -m "New upstream release ${NEW_UPSTREAM_VERSION?}" debian/changelog
gbp buildpackage --git-pristine-tar --git-pristine-tar-commit
# Fix problems, if any... and commit your changes (only changes in debian/)
gbp dch --release --debian-branch=debian/latest
git commit -m "Release $(head -n1 debian/changelog | awk '{print $2}' | tr -d '()')" debian/changelog
gbp buildpackage
```

### Notes

We need to specify `--new-version=${NEW_UPSTREAM_VERSION//-/.}` because
upstream's tag name format is now suitable for proper version in debian/changelog.



[doc-gbp]: https://honk.sigxcpu.org/projects/git-buildpackage/manual-html/gbp.import.upstream-git.html#gbp.import.upstream.git.notarball
[DEP-14]: https://dep-team.pages.debian.net/deps/dep14/
