Commit 859241b9 authored by Nicolas Steinmetz's avatar Nicolas Steinmetz

Add patch from Douglas Schilling Landgraf for EL7 builds

parent 83437865
Name: kubectx
Version: 0.7.1
Release: 1%{?dist}
Release: 2%{?dist}
Summary: kubectx and kubens ease managing kubernetes contexts / name spaces
License: ASL 2.0
......@@ -9,6 +9,9 @@ Source0: %{url}/archive/v%{version}.tar.gz
BuildArch: noarch
%prep
%setup -q -n %{name}-%{version}
%description
kubectx is a utility to manage and switch between kubectl contexts.
kubens is a utility to switch between Kubernetes name spaces.
......@@ -17,12 +20,12 @@ Requires: bash
%install
mkdir -p %{buildroot}/%{_bindir}
mkdir -p %{buildroot}/%{_datadir}/licenses/%{name}
mkdir -p %{buildroot}/%{_datadir}/licenses/%{name}-%{version}
mkdir -p %{buildroot}/%{_datadir}/%{name}
tar xzf %{_sourcedir}/v%{version}.tar.gz
install -p -m 755 %{name}-%{version}/kubectx %{buildroot}/%{_bindir}
install -p -m 755 %{name}-%{version}/kubens %{buildroot}/%{_bindir}
install -p -m 644 %{name}-%{version}/LICENSE %{buildroot}/%{_datadir}/licenses/%{name}/
install -p -m 644 %{name}-%{version}/LICENSE %{buildroot}/%{_datadir}/licenses/%{name}-%{version}/
install -p -m 644 %{name}-%{version}/completion/kubectx.bash %{buildroot}/%{_datadir}/%{name}/
install -p -m 644 %{name}-%{version}/completion/kubectx.fish %{buildroot}/%{_datadir}/%{name}/
install -p -m 644 %{name}-%{version}/completion/kubectx.zsh %{buildroot}/%{_datadir}/%{name}/
......@@ -34,6 +37,7 @@ install -p -m 644 %{name}-%{version}/completion/kubens.zsh %{buildroot}/%{_datad
%license LICENSE
%{_bindir}/kubectx
%{_bindir}/kubens
%{_datadir}/licenses/%{name}-%{version}/LICENSE
%{_datadir}/%{name}/kubectx.bash
%{_datadir}/%{name}/kubectx.fish
%{_datadir}/%{name}/kubectx.zsh
......@@ -42,11 +46,14 @@ install -p -m 644 %{name}-%{version}/completion/kubens.zsh %{buildroot}/%{_datad
%{_datadir}/%{name}/kubens.zsh
%changelog
* Mon Nov 11 2019 Nicolas Steinmetz <contact@cerenit.fr> - 0.7.1_1
* Tue Nov 26 2019 Douglas Schilling Landgraf dougsland@gmail.com - 0.7.1-2
- Fix build for EL7
* Mon Nov 11 2019 Nicolas Steinmetz <contact@cerenit.fr> - 0.7.1-1
- Upgrade to 0.7.1
- Add shell complets to /usr/share/kubectx/
* Wed Sep 04 2019 Nicolas Steinmetz <contact@cerenit.fr> - 0.7.0_1
* Wed Sep 04 2019 Nicolas Steinmetz <contact@cerenit.fr> - 0.7.0-1
- Upgrade to 0.7.0
* Wed Apr 03 2019 Nicolas Steinmetz <contact@cerenit.fr> - 0.6.3-1
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment