Skip to content

Commit a2e7057

Browse files
authored
Add kubie specfile (#20)
1 parent 3c9cfc6 commit a2e7057

File tree

1 file changed

+42
-0
lines changed

1 file changed

+42
-0
lines changed

specs/kubie.spec

+42
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,42 @@
1+
%global debug_package %{nil}
2+
3+
Name: kubie
4+
Version: 0.24.0
5+
Release: 1%{?dist}
6+
Summary: A more powerful alternative to kubectx and kubens
7+
8+
License: Zlib
9+
URL: https://github.com/sbstp/kubie
10+
Source0: https://raw.githubusercontent.com/sbstp/kubie/refs/tags/v%{version}/README.md
11+
Source1: https://raw.githubusercontent.com/sbstp/kubie/refs/tags/v%{version}/LICENSE
12+
Source2: https://raw.githubusercontent.com/sbstp/kubie/refs/tags/v%{version}/completion/kubie.bash
13+
Source3: https://raw.githubusercontent.com/sbstp/kubie/refs/tags/v%{version}/completion/kubie.fish
14+
15+
BuildRequires: wget
16+
17+
%description
18+
%{summary}
19+
20+
%prep
21+
cp %{SOURCE0} CONFIGURATION.md
22+
cp %{SOURCE1} .
23+
cp %{SOURCE2} .
24+
cp %{SOURCE3} .
25+
26+
%install
27+
wget https://github.com/sbstp/kubie/releases/download/v%{version}/kubie-linux-amd64
28+
install -p -D %{name}-linux-amd64 %{buildroot}%{_bindir}/%{name}
29+
30+
# Shell completion
31+
install -pvD -m 0644 %{name}.bash %{buildroot}%{bash_completions_dir}/%{name}.bash
32+
install -pvD -m 0644 %{name}.fish %{buildroot}%{fish_completions_dir}/%{name}.fish
33+
34+
%files
35+
%doc CONFIGURATION.md
36+
%license LICENSE
37+
%{_bindir}/%{name}
38+
%{bash_completions_dir}/%{name}.bash
39+
%{fish_completions_dir}/%{name}.fish
40+
41+
%changelog
42+
%autochangelog

0 commit comments

Comments
 (0)