From 71285fae36c57365d0f33b993735c1c3af8406e5 Mon Sep 17 00:00:00 2001
From: Simon McVittie <smcv@collabora.com>
Date: Tue, 17 Mar 2020 17:19:03 +0000
Subject: [PATCH] Build as a native package

Now that deb-build-snapshot supports a Build-Suffix option in
debian/git-version-gen.control, we don't need to worry about whether
the version number will be less than a previous version that had a +srt
suffix added by the Open Build Service.

Signed-off-by: Simon McVittie <smcv@collabora.com>
---
 debian/clean                   | 4 ++++
 debian/git-version-gen.control | 3 +++
 debian/source/format           | 2 +-
 3 files changed, 8 insertions(+), 1 deletion(-)
 create mode 100644 debian/git-version-gen.control

diff --git a/debian/clean b/debian/clean
index b5745c86c..c997053d6 100644
--- a/debian/clean
+++ b/debian/clean
@@ -1 +1,5 @@
+_build/
+build/
+builddir/
 debian/version.txt
+obj-*/
diff --git a/debian/git-version-gen.control b/debian/git-version-gen.control
new file mode 100644
index 000000000..6074e7a7d
--- /dev/null
+++ b/debian/git-version-gen.control
@@ -0,0 +1,3 @@
+Upstream: yes
+Build-Suffix: +srt
+Avoid-Build-Suffix: +vcs
diff --git a/debian/source/format b/debian/source/format
index 163aaf8d8..89ae9db8f 100644
--- a/debian/source/format
+++ b/debian/source/format
@@ -1 +1 @@
-3.0 (quilt)
+3.0 (native)
-- 
GitLab