diff --git a/debian/rules b/debian/rules index 3c50a6d216cfbbb270743da9eccc31a3740ed0e6..515d74c62dea9719cad0e02e47ef8f4063de58ae 100755 --- a/debian/rules +++ b/debian/rules @@ -7,7 +7,8 @@ PKG = $(shell dpkg-parsechangelog -l$(PKD)/changelog --show-field=Source) VER ?= $(shell dpkg-parsechangelog -l$(PKD)/changelog | perl -ne 'print $$1 if m{^Version:\s+(?:\d+:)?(\d.*)(?:\-\d+.*)};') DISTRIB_ID = $(shell grep -hPo "^ID=\K.*" /etc/*ease) DISTRIB_VERSION_ID = $(shell grep -hPo "^VERSION_ID=\K.*" /etc/*ease) -DAEMON_TAG = 2.1.0 + +DAEMON_TAG = $(VER) # Uncomment this to turn on verbose mode. export DH_VERBOSE=1 @@ -49,8 +50,13 @@ override_dh_auto_install: get-orig-source: # Daemon + git init + git remote add origin https://gerrit-ring.savoirfairelinux.com/ring-daemon git fetch --all - git merge origin $(DAEMON_TAG) --no-edit + git checkout packaging-releases -f + git config user.name "joulupukki" + git config user.email "joulupukki@localhost" + git merge $(DAEMON_TAG) --no-edit # Packing @echo "# Packing ... " find . | sort \ diff --git a/ring-daemon.spec b/ring-daemon.spec index 5e47328c9c1f9bfa51eadb87188179be1fa55506..c9f9588948c1c7efeef289e8c686834c8d0e2795 100644 --- a/ring-daemon.spec +++ b/ring-daemon.spec @@ -46,7 +46,7 @@ git fetch --all git checkout packaging-releases -f git config user.name "joulupukki" git config user.email "joulupukki@localhost" -git merge origin/%{daemon_tag} --no-edit +git merge %{daemon_tag} --no-edit # Apply all patches for patch_file in $(cat debian/patches/series | grep -v "^#") do