forked from pool/host-spawn
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
This commit is contained in:
commit
5c2ed1dbe3
23
.gitattributes
vendored
Normal file
23
.gitattributes
vendored
Normal file
@ -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
|
1
.gitignore
vendored
Normal file
1
.gitignore
vendored
Normal file
@ -0,0 +1 @@
|
||||
.osc
|
20
_service
Normal file
20
_service
Normal file
@ -0,0 +1,20 @@
|
||||
<services>
|
||||
<service name="tar_scm" mode="disabled">
|
||||
<param name="url">https://github.com/1player/host-spawn</param>
|
||||
<param name="scm">git</param>
|
||||
<param name="exclude">.git</param>
|
||||
<param name="revision">1.5.0</param>
|
||||
<param name="versionformat">@PARENT_TAG@</param>
|
||||
<param name="changesgenerate">enable</param>
|
||||
<param name="versionrewrite-pattern">(.*)</param>
|
||||
</service>
|
||||
<service name="set_version" mode="disabled">
|
||||
</service>
|
||||
<service name="recompress" mode="disabled">
|
||||
<param name="file">*.tar</param>
|
||||
<param name="compression">zst</param>
|
||||
</service>
|
||||
<service name="go_modules" mode="disabled">
|
||||
<param name="compression">zst</param>
|
||||
</service>
|
||||
</services>
|
4
_servicedata
Normal file
4
_servicedata
Normal file
@ -0,0 +1,4 @@
|
||||
<servicedata>
|
||||
<service name="tar_scm">
|
||||
<param name="url">https://github.com/1player/host-spawn</param>
|
||||
<param name="changesrevision">d1b5a7092d604f8467bc57a5470c3e25969da196</param></service></servicedata>
|
3
host-spawn-1.5.0.tar.zst
Normal file
3
host-spawn-1.5.0.tar.zst
Normal file
@ -0,0 +1,3 @@
|
||||
version https://git-lfs.github.com/spec/v1
|
||||
oid sha256:1841a0357fca2d8de49a07e330c4df0778995fb115aac8271151f0e0ae0719a8
|
||||
size 6472
|
9
host-spawn.changes
Normal file
9
host-spawn.changes
Normal file
@ -0,0 +1,9 @@
|
||||
-------------------------------------------------------------------
|
||||
Mon Nov 13 21:28:39 UTC 2023 - Michal Vyskocil <michal.vyskocil@gmail.com>
|
||||
|
||||
- Run spec-cleaner, remove pointless FIXME comment
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Mon Oct 9 15:40:33 UTC 2023 - Michal Vyskocil <michal.vyskocil@gmail.com>
|
||||
|
||||
- Inital packaging of host-spawn 1.5.0 for openSUSE
|
51
host-spawn.spec
Normal file
51
host-spawn.spec
Normal file
@ -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
|
3
vendor.tar.zst
Normal file
3
vendor.tar.zst
Normal file
@ -0,0 +1,3 @@
|
||||
version https://git-lfs.github.com/spec/v1
|
||||
oid sha256:7e54b4798c792d333dc1f6ee7540349239c170a2d47a7ee458ae4b3fa9d905a1
|
||||
size 317854
|
Loading…
Reference in New Issue
Block a user