%global debug_package %{nil} %global commit 17bf0b8 Name: gwctl Version: 0.2.0 Release: 1%{?dist} Summary: CLI tool for managing Gateway API resources in k8s cluster. License: ASL 2.0 URL: https://github.com/kubernetes-sigs/%{name} Source0: %{url}/archive/refs/tags/v%{version}.tar.gz BuildRequires: git BuildRequires: golang BuildRequires: make %description gwctl is a command-line tool for managing and understanding Gateway API resources in your Kubernetes cluster. It allows you to create, view, describe, analyze, and delete Gateway API and other Kubernetes resources. It also provides advanced features like visualizing relationships with DOT graphs and warning about potential issues. %prep %autosetup %build %make_build build GIT_COMMIT=%{commit} mkdir completion ./bin/%{name} completion bash > completion/%{name} ./bin/%{name} completion zsh > completion/_%{name} ./bin/%{name} completion fish > completion/%{name}.fish %install install -D -p -m 0755 bin/%{name} %{buildroot}%{_bindir}/%{name} install -Dpm 644 completion/%{name} -t %{buildroot}%{_datadir}/bash-completion/completions/ install -Dpm 644 completion/_%{name} -t %{buildroot}%{_datadir}/zsh/site-functions/ install -Dpm 644 completion/%{name}.fish -t %{buildroot}%{_datadir}/fish/vendor_completions.d/ %files %license LICENSE %doc CONTRIBUTING.md %doc README.md %doc RELEASE.md %doc SECURITY.md %doc SECURITY_CONTACTS %{_bindir}/%{name} %{_datadir} %changelog * Fri Nov 28 2025 Matyáš Kroupa - 0.2.0-1 - Update to 0.2.0 * Mon Nov 24 2025 Matyáš Kroupa - 0.1.0-1 - Initial build