summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCoprDistGit <infra@openeuler.org>2024-08-01 15:15:23 +0000
committerCoprDistGit <infra@openeuler.org>2024-08-01 15:15:23 +0000
commitc2ef80a853f903351c0cf10cf29852fe1a475771 (patch)
treeed21d415ff394c2333cf65bc2c60a46527141bce
parenta9d655d076421d9ea062d6be50713e9a16814e78 (diff)
automatic import of gvisor-tap-vsockopeneuler24.03_LTS
-rw-r--r--.gitignore1
-rw-r--r--gvisor-tap-vsock.spec111
-rw-r--r--sources1
3 files changed, 113 insertions, 0 deletions
diff --git a/.gitignore b/.gitignore
index e69de29..c298237 100644
--- a/.gitignore
+++ b/.gitignore
@@ -0,0 +1 @@
+/v0.7.3.tar.gz
diff --git a/gvisor-tap-vsock.spec b/gvisor-tap-vsock.spec
new file mode 100644
index 0000000..6d25dec
--- /dev/null
+++ b/gvisor-tap-vsock.spec
@@ -0,0 +1,111 @@
+%global with_debug 1
+
+%if 0%{?with_debug}
+%global _find_debuginfo_dwz_opts %{nil}
+%global _dwz_low_mem_die_limit 0
+%else
+%global debug_package %{nil}
+%endif
+
+%global gomodulesmode GO111MODULE=on
+
+Name: gvisor-tap-vsock
+Epoch: 6
+Version: 0.7.3
+License: Apache-2.0 AND BSD-2-Clause AND BSD-3-Clause AND MIT
+Release: 2%{?dist}
+ExclusiveArch: %{golang_arches_future}
+Summary: Go replacement for libslirp and VPNKit
+URL: https://github.com/containers/%{name}
+# All SourceN files fetched from upstream
+Source0: %{url}/archive/refs/tags/v%{version}.tar.gz
+BuildRequires: gcc
+BuildRequires: glib2-devel
+BuildRequires: glibc-devel
+BuildRequires: glibc-static
+BuildRequires: golang
+BuildRequires: git-core
+BuildRequires: go-rpm-macros
+BuildRequires: make
+Obsoletes: podman-gvproxy < 5:4.7.0-1
+Provides: podman-gvproxy = %{epoch}:%{version}-%{release}
+
+%description
+A replacement for libslirp and VPNKit, written in pure Go.
+It is based on the network stack of gVisor and is used to provide
+networking for podman-machine virtual machines. Compared to libslirp,
+gvisor-tap-vsock brings a configurable DNS server and dynamic
+port forwarding.
+
+%prep
+%autosetup -Sgit -n %{name}-%{version}
+
+%build
+%set_build_flags
+export CGO_CFLAGS=$CFLAGS
+
+# These extra flags present in $CFLAGS have been skipped for now as they break the build
+CGO_CFLAGS=$(echo $CGO_CFLAGS | sed 's/-flto=auto//g')
+CGO_CFLAGS=$(echo $CGO_CFLAGS | sed 's/-Wp,D_GLIBCXX_ASSERTIONS//g')
+CGO_CFLAGS=$(echo $CGO_CFLAGS | sed 's/-specs=\/usr\/lib\/rpm\/redhat\/redhat-annobin-cc1//g')
+
+%ifarch x86_64
+export CGO_CFLAGS+=" -m64 -mtune=generic -fcf-protection=full"
+%endif
+
+# reset LDFLAGS for plugins and gvisor binaries
+LDFLAGS=''
+
+# build gvisor-tap-vsock binaries
+%gobuild -o bin/gvproxy ./cmd/gvproxy
+%gobuild -o bin/gvforwarder ./cmd/vm
+
+%install
+# install gvproxy
+install -dp %{buildroot}%{_libexecdir}/podman
+install -p -m0755 bin/gvproxy %{buildroot}%{_libexecdir}/podman
+install -p -m0755 bin/gvforwarder %{buildroot}%{_libexecdir}/podman
+
+#define license tag if not already defined
+%{!?_licensedir:%global license %doc}
+
+%files
+%license LICENSE
+%doc README.md
+%dir %{_libexecdir}/podman
+%{_libexecdir}/podman/gvproxy
+%{_libexecdir}/podman/gvforwarder
+
+%changelog
+* Mon Feb 12 2024 Jindrich Novy <jnovy@redhat.com> - 6:0.7.3-2
+- Add gating.yaml
+- Related: Jira:RHEL-2112
+
+* Fri Feb 09 2024 Jindrich Novy <jnovy@redhat.com> - 6:0.7.3-1
+- update to https://github.com/containers/gvisor-tap-vsock/releases/tag/v0.7.3
+- Related: RHEL-2112
+
+* Wed Jan 31 2024 Jindrich Novy <jnovy@redhat.com> - 6:0.7.2-2
+- Update description - thanks to Derrick Ornelas
+- Resolves: RHELPLAN-168385
+
+* Fri Jan 19 2024 Jindrich Novy <jnovy@redhat.com> - 6:0.7.2-1
+- update to https://github.com/containers/gvisor-tap-vsock/releases/tag/v0.7.2
+- Related: RHEL-2112
+
+* Mon Oct 02 2023 Jindrich Novy <jnovy@redhat.com> - 6:0.7.1-1
+- update to https://github.com/containers/gvisor-tap-vsock/releases/tag/v0.7.1
+- Related: Jira:RHEL-2112
+
+* Wed Sep 27 2023 Jindrich Novy <jnovy@redhat.com> - 6:0.7.0-2
+- initial import
+- Resolves: Jira:RHELPLAN-167882
+
+* Tue Aug 01 2023 Lokesh Mandvekar <lsm5@fedoraproject.org> - 6:0.7.0-3
+- correctly obsolete older podman-gvproxy
+
+* Tue Aug 01 2023 Lokesh Mandvekar <lsm5@fedoraproject.org> - 6:0.7.0-2
+- fix install paths
+
+* Tue Aug 01 2023 Lokesh Mandvekar <lsm5@fedoraproject.org> - 6:0.7.0-1
+- Resolves: #2224434 - initial upload
diff --git a/sources b/sources
new file mode 100644
index 0000000..591ff68
--- /dev/null
+++ b/sources
@@ -0,0 +1 @@
+fb992f633355267562e56081c9a39acc v0.7.3.tar.gz