From a4f2a5c3c2b98662f39d3b877efa38512292e74c Mon Sep 17 00:00:00 2001 From: Daniel Baumann Date: Thu, 22 May 2025 09:50:52 +0200 Subject: [PATCH] Adding debian version 1.2.3-1. Signed-off-by: Daniel Baumann --- debian/changelog | 5 ++++ debian/control | 31 ++++++++++++++++++++ debian/copyright | 31 ++++++++++++++++++++ debian/patches/debian/0001-go-mod.patch | 39 +++++++++++++++++++++++++ debian/patches/series | 1 + debian/rules | 12 ++++++++ debian/source/format | 1 + debian/upstream/metadata | 5 ++++ debian/watch | 2 ++ 9 files changed, 127 insertions(+) create mode 100644 debian/changelog create mode 100644 debian/control create mode 100644 debian/copyright create mode 100644 debian/patches/debian/0001-go-mod.patch create mode 100644 debian/patches/series create mode 100755 debian/rules create mode 100644 debian/source/format create mode 100644 debian/upstream/metadata create mode 100644 debian/watch diff --git a/debian/changelog b/debian/changelog new file mode 100644 index 0000000..8cf93f4 --- /dev/null +++ b/debian/changelog @@ -0,0 +1,5 @@ +golang-github-rhysd-go-github-selfupdate (1.2.3-1) unstable; urgency=low + + * Initial upload to sid, required for beszel. + + -- Daniel Baumann Thu, 22 May 2025 09:45:55 +0200 diff --git a/debian/control b/debian/control new file mode 100644 index 0000000..9d74b4c --- /dev/null +++ b/debian/control @@ -0,0 +1,31 @@ +Source: golang-github-rhysd-go-github-selfupdate +Section: golang +Priority: optional +Maintainer: Daniel Baumann +Build-Depends: + debhelper-compat (= 13), + dh-sequence-golang, + golang-any, + golang-github-blang-semver-dev, + golang-github-google-go-github-dev, + golang-github-inconshreveable-go-update-dev, + golang-github-tcnksm-go-gitconfig-dev, + golang-github-ulikunitz-xz-dev, + golang-golang-x-oauth2-google-dev, +Rules-Requires-Root: no +Standards-Version: 4.7.2 +Homepage: https://github.com/rhysd/go-github-selfupdate +Vcs-Browser: https://forgejo.debian.net/beszel/golang-github-rhysd-go-github-selfupdate +Vcs-Git: https://forgejo.debian.net/beszel/golang-github-rhysd-go-github-selfupdate +Testsuite: autopkgtest-pkg-go +XS-Go-Import-Path: github.com/rhysd/go-github-selfupdate + +Package: golang-github-rhysd-go-github-selfupdate-dev +Section: golang +Architecture: all +Multi-Arch: foreign +Depends: + ${misc:Depends}, +Description: self-update mechanism for Go commands (Go library) + go-github-selfupdate is a Go library to provide a self-update mechanism to + command line tools. diff --git a/debian/copyright b/debian/copyright new file mode 100644 index 0000000..ae03026 --- /dev/null +++ b/debian/copyright @@ -0,0 +1,31 @@ +Format: https://www.debian.org/doc/packaging-manuals/copyright-format/1.0/ +Upstream-Name: go-github-selfupdate +Upstream-Contact: https://github.com/rhysd/go-github-selfupdate/issues +Source: https://github.com/rhysd/go-github-selfupdate/tags + +Files: * +Copyright: 2017 rhysd +License: MIT + +Files: debian/* +Copyright: 2025 Daniel Baumann +License: MIT + +License: MIT + Permission is hereby granted, free of charge, to any person obtaining a copy + of this software and associated documentation files (the "Software"), to deal + in the Software without restriction, including without limitation the rights + to use, copy, modify, merge, publish, distribute, sublicense, and/or sell + copies of the Software, and to permit persons to whom the Software is + furnished to do so, subject to the following conditions: + . + The above copyright notice and this permission notice shall be included in + all copies or substantial portions of the Software. + . + THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR + IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, + FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE + AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER + LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, + OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN + THE SOFTWARE. diff --git a/debian/patches/debian/0001-go-mod.patch b/debian/patches/debian/0001-go-mod.patch new file mode 100644 index 0000000..7b3e869 --- /dev/null +++ b/debian/patches/debian/0001-go-mod.patch @@ -0,0 +1,39 @@ +Author: Daniel Baumann +Description: Building with golang-github-google-go-github 60. + +diff -Naurp golang-github-rhysd-go-github-selfupdate.orig/selfupdate/detect.go golang-github-rhysd-go-github-selfupdate/selfupdate/detect.go +--- golang-github-rhysd-go-github-selfupdate.orig/selfupdate/detect.go ++++ golang-github-rhysd-go-github-selfupdate/selfupdate/detect.go +@@ -7,7 +7,7 @@ import ( + "strings" + + "github.com/blang/semver" +- "github.com/google/go-github/v30/github" ++ "github.com/google/go-github/v60/github" + ) + + var reVersion = regexp.MustCompile(`\d+\.\d+\.\d+`) +diff -Naurp golang-github-rhysd-go-github-selfupdate.orig/selfupdate/detect_test.go golang-github-rhysd-go-github-selfupdate/selfupdate/detect_test.go +--- golang-github-rhysd-go-github-selfupdate.orig/selfupdate/detect_test.go ++++ golang-github-rhysd-go-github-selfupdate/selfupdate/detect_test.go +@@ -8,7 +8,7 @@ import ( + "testing" + + "github.com/blang/semver" +- "github.com/google/go-github/v30/github" ++ "github.com/google/go-github/v60/github" + ) + + func TestDetectReleaseWithVersionPrefix(t *testing.T) { +diff -Naurp golang-github-rhysd-go-github-selfupdate.orig/selfupdate/updater.go golang-github-rhysd-go-github-selfupdate/selfupdate/updater.go +--- golang-github-rhysd-go-github-selfupdate.orig/selfupdate/updater.go ++++ golang-github-rhysd-go-github-selfupdate/selfupdate/updater.go +@@ -7,7 +7,7 @@ import ( + "os" + "regexp" + +- "github.com/google/go-github/v30/github" ++ "github.com/google/go-github/v60/github" + gitconfig "github.com/tcnksm/go-gitconfig" + "golang.org/x/oauth2" + ) diff --git a/debian/patches/series b/debian/patches/series new file mode 100644 index 0000000..94e1458 --- /dev/null +++ b/debian/patches/series @@ -0,0 +1 @@ +debian/0001-go-mod.patch diff --git a/debian/rules b/debian/rules new file mode 100755 index 0000000..a6d981e --- /dev/null +++ b/debian/rules @@ -0,0 +1,12 @@ +#!/usr/bin/make -f + +%: + dh ${@} --builddirectory=_build --buildsystem=golang + +execute_after_dh_auto_install: + # removing unused files + rm -rf debian/golang-github-rhysd-go-github-selfupdate-dev/usr/bin + rm -rf debian/golang-github-rhysd-go-github-selfupdate-dev/usr/share/gocode/src/github.com/rhysd/go-github-selfupdate/selfupdate/testdata + +override_dh_auto_test: + # disabled (needs upstream fixes) 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/upstream/metadata b/debian/upstream/metadata new file mode 100644 index 0000000..5c205be --- /dev/null +++ b/debian/upstream/metadata @@ -0,0 +1,5 @@ +--- +Bug-Database: https://github.com/rhysd/go-github-selfupdate/issues +Bug-Submit: https://github.com/rhysd/go-github-selfupdate/issues/new +Repository: https://github.com/rhysd/go-github-selfupdate.git +Repository-Browse: https://github.com/rhysd/go-github-selfupdate diff --git a/debian/watch b/debian/watch new file mode 100644 index 0000000..8deb4a9 --- /dev/null +++ b/debian/watch @@ -0,0 +1,2 @@ +version=4 +https://github.com/rhysd/go-github-selfupdate/tags .*/v?(\d.*)@ARCHIVE_EXT@