From dc3354201b6dc11f193154323e57c1cc8088de0a Mon Sep 17 00:00:00 2001
From: Holger Levsen <holger@debian.org>
Date: Fri, 8 Jan 2021 14:12:15 +0100
Subject: [PATCH] Import Debian changes 0.0~git20181028.e517b90-1.1

golang-github-pquerna-ffjson (0.0~git20181028.e517b90-1.1) unstable; urgency=medium
.
  * Non maintainer upload by the Reproducible Builds team.
  * No source change upload to rebuild on buildd with .buildinfo files.
.
golang-github-pquerna-ffjson (0.0~git20181028.e517b90-1) unstable; urgency=medium
.
  * Initial release (Closes: #919278)
---
 debian/changelog                              | 12 +++++
 debian/compat                                 |  1 +
 debian/control                                | 45 +++++++++++++++++++
 debian/copyright                              | 31 +++++++++++++
 debian/ffjson.docs                            |  1 +
 debian/ffjson.install                         |  1 +
 debian/gbp.conf                               |  2 +
 .../golang-github-pquerna-ffjson-dev.install  |  1 +
 debian/patches/auto-gitignore                 | 18 ++++++++
 debian/patches/series                         |  2 +
 debian/rules                                  |  7 +++
 debian/source/format                          |  1 +
 debian/watch                                  |  4 ++
 13 files changed, 126 insertions(+)
 create mode 100644 debian/changelog
 create mode 100644 debian/compat
 create mode 100644 debian/control
 create mode 100644 debian/copyright
 create mode 100644 debian/ffjson.docs
 create mode 100644 debian/ffjson.install
 create mode 100644 debian/gbp.conf
 create mode 100644 debian/golang-github-pquerna-ffjson-dev.install
 create mode 100644 debian/patches/auto-gitignore
 create mode 100644 debian/patches/series
 create mode 100755 debian/rules
 create mode 100644 debian/source/format
 create mode 100644 debian/watch

diff --git a/debian/changelog b/debian/changelog
new file mode 100644
index 0000000..c2cf3d4
--- /dev/null
+++ b/debian/changelog
@@ -0,0 +1,12 @@
+golang-github-pquerna-ffjson (0.0~git20181028.e517b90-1.1) unstable; urgency=medium
+
+  * Non maintainer upload by the Reproducible Builds team.
+  * No source change upload to rebuild on buildd with .buildinfo files.
+
+ -- Holger Levsen <holger@debian.org>  Fri, 08 Jan 2021 14:12:15 +0100
+
+golang-github-pquerna-ffjson (0.0~git20181028.e517b90-1) unstable; urgency=medium
+
+  * Initial release (Closes: #919278)
+
+ -- Reinhard Tartler <siretart@tauware.de>  Mon, 14 Jan 2019 17:31:56 -0500
diff --git a/debian/compat b/debian/compat
new file mode 100644
index 0000000..b4de394
--- /dev/null
+++ b/debian/compat
@@ -0,0 +1 @@
+11
diff --git a/debian/control b/debian/control
new file mode 100644
index 0000000..bec9e41
--- /dev/null
+++ b/debian/control
@@ -0,0 +1,45 @@
+Source: golang-github-pquerna-ffjson
+Section: devel
+Priority: optional
+Maintainer: Debian Go Packaging Team <team+pkg-go@tracker.debian.org>
+Uploaders: Reinhard Tartler <siretart@tauware.de>
+Build-Depends: debhelper (>= 11),
+               dh-golang,
+               golang-any,
+               golang-github-google-gofuzz-dev,
+               golang-github-stretchr-testify-dev
+Standards-Version: 4.2.1
+Homepage: https://github.com/pquerna/ffjson
+Vcs-Browser: https://salsa.debian.org/go-team/packages/golang-github-pquerna-ffjson
+Vcs-Git: https://salsa.debian.org/go-team/packages/golang-github-pquerna-ffjson.git
+XS-Go-Import-Path: github.com/pquerna/ffjson
+Testsuite: autopkgtest-pkg-go
+
+Package: ffjson
+Architecture: any
+Depends: ${misc:Depends},
+         golang-github-pquerna-ffjson-dev
+Description: faster JSON serialization for Go
+ ffjson generates static MarshalJSON and UnmarshalJSON functions for
+ structures in Go. The generated functions reduce the reliance upon runtime
+ reflection to do serialization and are generally 2 to 3 times faster.
+ In cases where ffjson doesn't understand a Type involved, it falls back to
+ encoding/json, meaning it is a safe drop in replacement.  By using ffjson
+ your JSON serialization just gets faster with no additional code changes.
+ .
+ This package contains the ffjson executable.
+
+Package: golang-github-pquerna-ffjson-dev
+Architecture: all
+Depends: ${misc:Depends},
+         golang-github-google-gofuzz-dev,
+         golang-github-stretchr-testify-dev
+Description: faster JSON serialization for Go
+ ffjson generates static MarshalJSON and UnmarshalJSON functions for
+ structures in Go. The generated functions reduce the reliance upon runtime
+ reflection to do serialization and are generally 2 to 3 times faster.
+ In cases where ffjson doesn't understand a Type involved, it falls back to
+ encoding/json, meaning it is a safe drop in replacement.  By using ffjson
+ your JSON serialization just gets faster with no additional code changes.
+ .
+ This package contains the source code for other go programs to link against.
diff --git a/debian/copyright b/debian/copyright
new file mode 100644
index 0000000..be3c35f
--- /dev/null
+++ b/debian/copyright
@@ -0,0 +1,31 @@
+Format: https://www.debian.org/doc/packaging-manuals/copyright-format/1.0/
+Upstream-Name: ffjson
+Source: https://github.com/pquerna/ffjson
+Files-Excluded:
+  tests/vendor
+  Godeps/_workspace
+
+Files: *
+Copyright: 2014-2019, Paul Querna <pquerna@apache.org>, Klaus Post <klauspost@gmail.com>, Erik Dubbelboer <erik@dubbelboer.com>
+License: Apache-2.0
+
+Files: debian/*
+Copyright: 2019 Reinhard Tartler <siretart@tauware.de>
+License: Apache-2.0
+Comment: Debian packaging is licensed under the same terms as upstream
+
+License: Apache-2.0
+ Licensed under the Apache License, Version 2.0 (the "License");
+ you may not use this file except in compliance with the License.
+ You may obtain a copy of the License at
+ .
+ http://www.apache.org/licenses/LICENSE-2.0
+ .
+ Unless required by applicable law or agreed to in writing, software
+ distributed under the License is distributed on an "AS IS" BASIS,
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ See the License for the specific language governing permissions and
+ limitations under the License.
+ .
+ On Debian systems, the complete text of the Apache version 2.0 license
+ can be found in "/usr/share/common-licenses/Apache-2.0".
diff --git a/debian/ffjson.docs b/debian/ffjson.docs
new file mode 100644
index 0000000..b43bf86
--- /dev/null
+++ b/debian/ffjson.docs
@@ -0,0 +1 @@
+README.md
diff --git a/debian/ffjson.install b/debian/ffjson.install
new file mode 100644
index 0000000..453e8ec
--- /dev/null
+++ b/debian/ffjson.install
@@ -0,0 +1 @@
+usr/bin/ffjson
diff --git a/debian/gbp.conf b/debian/gbp.conf
new file mode 100644
index 0000000..cec628c
--- /dev/null
+++ b/debian/gbp.conf
@@ -0,0 +1,2 @@
+[DEFAULT]
+pristine-tar = True
diff --git a/debian/golang-github-pquerna-ffjson-dev.install b/debian/golang-github-pquerna-ffjson-dev.install
new file mode 100644
index 0000000..a3da66d
--- /dev/null
+++ b/debian/golang-github-pquerna-ffjson-dev.install
@@ -0,0 +1 @@
+usr/share/gocode
diff --git a/debian/patches/auto-gitignore b/debian/patches/auto-gitignore
new file mode 100644
index 0000000..9d02f16
--- /dev/null
+++ b/debian/patches/auto-gitignore
@@ -0,0 +1,18 @@
+Subject: Update .gitignore from Debian packaging branch
+
+The Debian packaging git branch contains these updates to the upstream
+.gitignore file(s).  This patch is autogenerated, to provide these
+updates to users of the official Debian archive view of the package.
+
+[dgit (3.11~deb9u1) update-gitignore]
+---
+diff --git a/.gitignore b/.gitignore
+index 2b62c96..1ffc8d3 100644
+--- a/.gitignore
++++ b/.gitignore
+@@ -3,3 +3,5 @@ tests/goser/ff/goser_ffjson.go
+ tests/types/ff/everything_ffjson.go
+ tests/number/ff/number_ffjson.go
+ tests/ff_ffjson.go
++
++.pc
diff --git a/debian/patches/series b/debian/patches/series
new file mode 100644
index 0000000..a22980a
--- /dev/null
+++ b/debian/patches/series
@@ -0,0 +1,2 @@
+
+auto-gitignore
diff --git a/debian/rules b/debian/rules
new file mode 100755
index 0000000..0d07cb5
--- /dev/null
+++ b/debian/rules
@@ -0,0 +1,7 @@
+#!/usr/bin/make -f
+
+# tests have a bogous import that confuses the debhelper
+export DH_GOLANG_EXCLUDES=github.com/pquerna/ffjson/tests
+
+%:
+	dh $@ --buildsystem=golang --with=golang
diff --git a/debian/source/format b/debian/source/format
new file mode 100644
index 0000000..163aaf8
--- /dev/null
+++ b/debian/source/format
@@ -0,0 +1 @@
+3.0 (quilt)
diff --git a/debian/watch b/debian/watch
new file mode 100644
index 0000000..a9a9080
--- /dev/null
+++ b/debian/watch
@@ -0,0 +1,4 @@
+version=4
+opts=filenamemangle=s/.+\/v?(\d\S*)\.tar\.gz/golang-github-pquerna-ffjson-\$1\.tar\.gz/,\
+uversionmangle=s/(\d)[_\.\-\+]?(RC|rc|pre|dev|beta|alpha)[.]?(\d*)$/\$1~\$2\$3/ \
+  https://github.com/pquerna/ffjson/tags .*/v?(\d\S*)\.tar\.gz
-- 
GitLab