Imported from SRPM

This commit is contained in:
Sergey Zhemoytel 2023-08-06 01:50:55 +03:00
commit 65d81de485
2 changed files with 48 additions and 0 deletions

2
.abf.yml Normal file
View file

@ -0,0 +1,2 @@
sources:
kubepug-1.5.1.tar.gz: 419a544350d57e8b09c9c7bae0bccdffd07d1277

46
kubepug.spec Normal file
View file

@ -0,0 +1,46 @@
%define debug %nil
%define debug_package %nil
Name: kubepug
Version: 1.5.1
Release: 1
Summary: Kubernetes PreUpGrade (Checker)
URL: https://github.com/rikatz/kubepug
Source0: %{url}/archive/v%{version}/%{name}-%{version}.tar.gz
License: Apache-2.0
Group: Development/Other
BuildRequires: go
BuildRequires: git-core
BuildRequires: upx
%description
KubePug/Deprecations is intended to be a kubectl plugin,
which:
- Downloads a swagger.json from a specific Kubernetes
version
- Parses this Json finding deprecation notices
- Verifies the current kubernetes cluster or input files
checking whether exists objects in this deprecated API
Versions, allowing the user to check before migrating
%prep
%setup -q
%build
CGO_ENABLED=0 go build -trimpath -ldflags "-X sigs.k8s.io/release-utils/version.gitVersion=%{version}" -o ./bin/kubepug .
upx bin/%{name}
# gen completion
./bin/%{name} completion bash > %{name}.completion
%install
install -Dm0755 bin/%{name} %{buildroot}%{_bindir}/%{name}
install -Dm0644 %{name}.completion %{buildroot}%{_datadir}/bash-completion/completions/%{name}
%files
%doc README.md LICENSE
%{_bindir}/%{name}
%{_datadir}/bash-completion/completions/%{name}