File kubetail-cli.spec of Package kubetail-cli

Name:           kubetail-cli
Version:        0.9.0
Release:        7%{?dist}
Summary:        Real-time logging tool for Kubernetes

%global debug_package %{nil}

License:        Apache-2.0
URL:            https://github.com/kubetail-org/kubetail
Source0:        %{name}_%{version}.orig.tar.xz

BuildRequires:  golang >= 1.24
BuildRequires:  glibc

%description
Kubetail is a general-purpose logging dashboard for Kubernetes, optimized
for tailing logs across multi-container workloads in real-time. With
Kubetail, you can view logs from all the containers in a workload
(e.g. Deployment or DaemonSet) merged into a single, chronological
timeline, delivered to a browser or terminal.

%prep
%setup -q

%build
cd modules/cli && \
  GOWORK=off \
  CGO_ENABLED=0 \
  go build \
    -mod=vendor \
    -ldflags="-s -w -X github.com/kubetail-org/kubetail/modules/cli/cmd.version=%{version}" \
    -o ../../bin/kubetail \
    main.go

%install
install -D -m 0755 bin/kubetail %{buildroot}/usr/bin/kubetail

%files
%doc LICENSE
%doc README.md
/usr/bin/kubetail

%changelog
* Tue Oct 21 2025 Andres Morey <andres@kubetail.com> - 0.9.0-7
- Chnged back name of "golang" dependency. Added glibc as dependency.
* Tue Oct 21 2025 Andres Morey <andres@kubetail.com> - 0.9.0-6
- Chnged name of "golang" dependency. Added glibc-devel dependency for Fedora arm64.
* Tue Oct 21 2025 Andres Morey <andres@kubetail.com> - 0.9.0-5
- Added directive to exclude libc.so.6 explicitly
* Tue Oct 21 2025 Andres Morey <andres@kubetail.com> - 0.9.0-4
- Disabled rpm automatic internal dependency checker
* Tue Oct 21 2025 Andres Morey <andres@kubetail.com> - 0.9.0-3
- Switched %license directive to %doc
* Tue Oct 21 2025 Andres Morey <andres@kubetail.com> - 0.9.0-2
- Disabled CGO
* Sat Oct 18 2025 Andres Morey <andres@kubetail.com> - 0.9.0-1
- Initial package
openSUSE Build Service is sponsored by