Adding debian version 1.2.3-1.
Signed-off-by: Daniel Baumann <daniel@debian.org>
This commit is contained in:
parent
e7ed09875d
commit
a4f2a5c3c2
9 changed files with 127 additions and 0 deletions
5
debian/changelog
vendored
Normal file
5
debian/changelog
vendored
Normal file
|
@ -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 <daniel@debian.org> Thu, 22 May 2025 09:45:55 +0200
|
31
debian/control
vendored
Normal file
31
debian/control
vendored
Normal file
|
@ -0,0 +1,31 @@
|
||||||
|
Source: golang-github-rhysd-go-github-selfupdate
|
||||||
|
Section: golang
|
||||||
|
Priority: optional
|
||||||
|
Maintainer: Daniel Baumann <daniel@debian.org>
|
||||||
|
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.
|
31
debian/copyright
vendored
Normal file
31
debian/copyright
vendored
Normal file
|
@ -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 <lin90162@yahoo.co.jp>
|
||||||
|
License: MIT
|
||||||
|
|
||||||
|
Files: debian/*
|
||||||
|
Copyright: 2025 Daniel Baumann <daniel@debian.org>
|
||||||
|
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.
|
39
debian/patches/debian/0001-go-mod.patch
vendored
Normal file
39
debian/patches/debian/0001-go-mod.patch
vendored
Normal file
|
@ -0,0 +1,39 @@
|
||||||
|
Author: Daniel Baumann <daniel@debian.org>
|
||||||
|
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"
|
||||||
|
)
|
1
debian/patches/series
vendored
Normal file
1
debian/patches/series
vendored
Normal file
|
@ -0,0 +1 @@
|
||||||
|
debian/0001-go-mod.patch
|
12
debian/rules
vendored
Executable file
12
debian/rules
vendored
Executable file
|
@ -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)
|
1
debian/source/format
vendored
Normal file
1
debian/source/format
vendored
Normal file
|
@ -0,0 +1 @@
|
||||||
|
3.0 (quilt)
|
5
debian/upstream/metadata
vendored
Normal file
5
debian/upstream/metadata
vendored
Normal file
|
@ -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
|
2
debian/watch
vendored
Normal file
2
debian/watch
vendored
Normal file
|
@ -0,0 +1,2 @@
|
||||||
|
version=4
|
||||||
|
https://github.com/rhysd/go-github-selfupdate/tags .*/v?(\d.*)@ARCHIVE_EXT@
|
Loading…
Add table
Add a link
Reference in a new issue