Skip to content

Commit

Permalink
rpm: gvforwarder subpackage
Browse files Browse the repository at this point in the history
This commit places the gvforwarder binary in a new gvforwarder
subpackage. This subpackage will be a hard dependency for podman as its
required in FCOS. This subpackage will also be a hard dependency for the
main package to preserve upgrade path.

Signed-off-by: Lokesh Mandvekar <[email protected]>
  • Loading branch information
lsm5 committed Sep 12, 2023
1 parent 507f568 commit fb456a9
Showing 1 changed file with 13 additions and 0 deletions.
13 changes: 13 additions & 0 deletions rpm/gvisor-tap-vsock.spec
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,8 @@

%global _gvisor_installdir %{_libexecdir}/podman

%global desc_gvforwarder Forward traffic from a tap interface over vsock

Name: gvisor-tap-vsock
%if %{defined copr_username}
Epoch: 103
Expand Down Expand Up @@ -57,13 +59,21 @@ Obsoletes: podman-gvproxy < 102:4.7.0-1
Obsoletes: podman-gvproxy < 5:4.7.0-1
%endif
Provides: podman-gvproxy = %{epoch}:%{version}-%{release}
Requires: %{name}-gvforwarder = %{epoch}:%{version}-%{release}

%description
A replacement for libslirp and VPNKit, written in pure Go.
It is based on the network stack of gVisor. Compared to libslirp,
gvisor-tap-vsock brings a configurable DNS server and
dynamic port forwarding.

%package gvforwarder
Summary: %{desc_gvforwarder}
Provides: gvforwarder = %{epoch}:%{version}-%{release}

%description
%{desc_gvforwarder}

%prep
%autosetup -Sgit -n %{name}-%{version}

Expand Down Expand Up @@ -101,6 +111,9 @@ install -p -m0755 bin/gvforwarder %{buildroot}%{_gvisor_installdir}
%doc README.md
%dir %{_gvisor_installdir}
%{_gvisor_installdir}/gvproxy

%files gvforwarder
%dir %{_gvisor_installdir}
%{_gvisor_installdir}/gvforwarder

%changelog
Expand Down

0 comments on commit fb456a9

Please sign in to comment.