File chisel.spec of Package chisel
#
# spec file for package chisel
#
# Copyright (c) 2025 SUSE LLC and contributors
#
# 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: chisel
Version: 1.11.3
Release: 0
Summary: A fast TCP/UDP tunnel over HTTP
License: MIT
URL: https://github.com/jpillora/chisel
Source: %{name}-%{version}.tar.gz
Source1: vendor.tar.gz
BuildRequires: bash-completion
BuildRequires: fish
BuildRequires: go1.25 >= 1.25.1
BuildRequires: zsh
%description
chisel is a command line tool that facilitates continuous development for
Kubernetes applications. You can iterate on your application source code
locally then deploy to local or remote Kubernetes clusters. chisel handles
the workflow for building, pushing and deploying your application. It also
provides building blocks and describe customizations for a CI/CD pipeline.
%prep
%autosetup -p 1 -a 1
%build
go build \
-mod=vendor \
-buildmode=pie \
-trimpath \
-ldflags="-X github.com/jpillora/chisel/share.BuildVersion=v%{version}" \
-o bin/%{name}
%install
install -D -m 0755 bin/%{name} %{buildroot}/%{_bindir}/%{name}
%check
%{buildroot}/%{_bindir}/%{name} version | grep %{version}
%files
%doc README.md
%license LICENSE
%{_bindir}/%{name}
%changelog