From de9040baaffc63121a6bd57f275765d2818339a9 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/changelog               | 7 ++++++-
 debian/clean                   | 4 ++++
 debian/git-version-gen.control | 3 +++
 debian/source/format           | 2 +-
 4 files changed, 14 insertions(+), 2 deletions(-)
 create mode 100644 debian/git-version-gen.control

diff --git a/debian/changelog b/debian/changelog
index 53ef78f5e..c33af2dc3 100644
--- a/debian/changelog
+++ b/debian/changelog
@@ -1,4 +1,4 @@
-steam-runtime-tools (0.20200317.0-0+steamrt1.1) UNRELEASED; urgency=medium
+steam-runtime-tools (0.20200317.0) UNRELEASED; urgency=medium
 
   [ Ludovico de Nittis ]
   * Add srt_vdpau_driver_resolve_library_path, etc. methods.
@@ -19,6 +19,11 @@ steam-runtime-tools (0.20200317.0-0+steamrt1.1) UNRELEASED; urgency=medium
   * Document the minimum meson version.
     The Steam Runtime has a backport of meson 0.49.0, originally from Debian
     stretch-backports, which is the oldest thing we'll even try to support.
+  * 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.
 
  -- Simon McVittie <smcv@collabora.com>  Tue, 17 Mar 2020 17:11:42 +0000
 
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