From 5c2ed1dbe35bdc927e1c23b38a2b7d29741fb5f0c9d074c7ac5be8e1f168e05e Mon Sep 17 00:00:00 2001 From: Jeff Kowalczyk Date: Thu, 16 Nov 2023 05:47:47 +0000 Subject: [PATCH] Accepting request 1126243 from devel:languages:go Move host-spawn helper to Virtualization:containers. It's used and downloaded by distrobox when executing stuff from a host. Applied recommended cleanups. OBS-URL: https://build.opensuse.org/request/show/1126243 OBS-URL: https://build.opensuse.org/package/show/Virtualization:containers/host-spawn?expand=0&rev=1 --- .gitattributes | 23 ++++++++++++++++++ .gitignore | 1 + _service | 20 ++++++++++++++++ _servicedata | 4 ++++ host-spawn-1.5.0.tar.zst | 3 +++ host-spawn.changes | 9 +++++++ host-spawn.spec | 51 ++++++++++++++++++++++++++++++++++++++++ vendor.tar.zst | 3 +++ 8 files changed, 114 insertions(+) create mode 100644 .gitattributes create mode 100644 .gitignore create mode 100644 _service create mode 100644 _servicedata create mode 100644 host-spawn-1.5.0.tar.zst create mode 100644 host-spawn.changes create mode 100644 host-spawn.spec create mode 100644 vendor.tar.zst diff --git a/.gitattributes b/.gitattributes new file mode 100644 index 0000000..9b03811 --- /dev/null +++ b/.gitattributes @@ -0,0 +1,23 @@ +## Default LFS +*.7z filter=lfs diff=lfs merge=lfs -text +*.bsp filter=lfs diff=lfs merge=lfs -text +*.bz2 filter=lfs diff=lfs merge=lfs -text +*.gem filter=lfs diff=lfs merge=lfs -text +*.gz filter=lfs diff=lfs merge=lfs -text +*.jar filter=lfs diff=lfs merge=lfs -text +*.lz filter=lfs diff=lfs merge=lfs -text +*.lzma filter=lfs diff=lfs merge=lfs -text +*.obscpio filter=lfs diff=lfs merge=lfs -text +*.oxt filter=lfs diff=lfs merge=lfs -text +*.pdf filter=lfs diff=lfs merge=lfs -text +*.png filter=lfs diff=lfs merge=lfs -text +*.rpm filter=lfs diff=lfs merge=lfs -text +*.tbz filter=lfs diff=lfs merge=lfs -text +*.tbz2 filter=lfs diff=lfs merge=lfs -text +*.tgz filter=lfs diff=lfs merge=lfs -text +*.ttf filter=lfs diff=lfs merge=lfs -text +*.txz filter=lfs diff=lfs merge=lfs -text +*.whl filter=lfs diff=lfs merge=lfs -text +*.xz filter=lfs diff=lfs merge=lfs -text +*.zip filter=lfs diff=lfs merge=lfs -text +*.zst filter=lfs diff=lfs merge=lfs -text diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..57affb6 --- /dev/null +++ b/.gitignore @@ -0,0 +1 @@ +.osc diff --git a/_service b/_service new file mode 100644 index 0000000..63f1e8a --- /dev/null +++ b/_service @@ -0,0 +1,20 @@ + + + https://github.com/1player/host-spawn + git + .git + 1.5.0 + @PARENT_TAG@ + enable + (.*) + + + + + *.tar + zst + + + zst + + diff --git a/_servicedata b/_servicedata new file mode 100644 index 0000000..46c4d1f --- /dev/null +++ b/_servicedata @@ -0,0 +1,4 @@ + + + https://github.com/1player/host-spawn + d1b5a7092d604f8467bc57a5470c3e25969da196 \ No newline at end of file diff --git a/host-spawn-1.5.0.tar.zst b/host-spawn-1.5.0.tar.zst new file mode 100644 index 0000000..9feb08d --- /dev/null +++ b/host-spawn-1.5.0.tar.zst @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:1841a0357fca2d8de49a07e330c4df0778995fb115aac8271151f0e0ae0719a8 +size 6472 diff --git a/host-spawn.changes b/host-spawn.changes new file mode 100644 index 0000000..3aa3be2 --- /dev/null +++ b/host-spawn.changes @@ -0,0 +1,9 @@ +------------------------------------------------------------------- +Mon Nov 13 21:28:39 UTC 2023 - Michal Vyskocil + +- Run spec-cleaner, remove pointless FIXME comment + +------------------------------------------------------------------- +Mon Oct 9 15:40:33 UTC 2023 - Michal Vyskocil + +- Inital packaging of host-spawn 1.5.0 for openSUSE diff --git a/host-spawn.spec b/host-spawn.spec new file mode 100644 index 0000000..5ed5ffc --- /dev/null +++ b/host-spawn.spec @@ -0,0 +1,51 @@ +# +# spec file for package host-spawn +# +# Copyright (c) 2023 SUSE LLC +# +# All modifications and additions to the file contributed by third parties +# remain the property of their copyright owners, unless otherwise agreed +# upon. The license for this file, and modifications and additions to the +# file, is the same license as for the pristine package itself (unless the +# license for the pristine package is not an Open Source License, in which +# case the license is the MIT License). An "Open Source License" is a +# license that conforms to the Open Source Definition (Version 1.9) +# published by the Open Source Initiative. + +# Please submit bugfixes or comments via https://bugs.opensuse.org/ +# + + +Name: host-spawn +Version: 1.5.0 +Release: 0 +Summary: A reimplementation of flatpak-spawn --host +License: MIT-0 +URL: https://github.com/1player/host-spawn +Source0: %{name}-%{version}.tar.zst +Source1: vendor.tar.zst +BuildRequires: golang(API) >= 1.18 +BuildRequires: zstd + +%description +Run commands on your host machine from inside your flatpak sandbox, toolbox or distrobox containers. + +%prep +%autosetup -p1 -a1 + +%build +# https://github.com/1player/host-spawn/blob/master/build.sh#L22 +CGO_ENABLED=0 go build \ + -ldflags "-X main.Version=%{version}" \ + -mod=vendor \ + -buildmode=pie + +%install +install -D -m0755 %{name} %{buildroot}%{_bindir}/%{name} + +%files +%license LICENSE +%doc README.md +%{_bindir}/%{name} + +%changelog diff --git a/vendor.tar.zst b/vendor.tar.zst new file mode 100644 index 0000000..9b05599 --- /dev/null +++ b/vendor.tar.zst @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:7e54b4798c792d333dc1f6ee7540349239c170a2d47a7ee458ae4b3fa9d905a1 +size 317854