%global debug_package %{nil} %global cliname openshift-install %global commit_full 0e39bcd8a1ab4b7aa951b287b0290c94e606cbeb %global commit 0e39bcd Name: openshift-installer Version: 4.22 Release: 1_%{commit}%{?dist} Summary: Install an OpenShift 4.x cluster License: Apache-2.0 URL: https://github.com/openshift/installer Source0: %{url}/archive/%{commit}.tar.gz BuildRequires: git BuildRequires: golang >= 1.24 Provides: %{name} = %{version} Provides: %{cliname} = %{version} %description With OpenShift Client CLI (oc), you can create applications and manage OpenShift resources. It is built on top of kubectl which means it provides its full capabilities to connect with any kubernetes compliant cluster, and on top adds commands simplifying interaction with an OpenShift cluster. %prep %setup -n installer-%{commit_full} %build export SOURCE_GIT_COMMIT=%{commit} export BUILD_VERSION=v%{version} export LDFLAGS="" hack/build.sh mkdir completion ./bin/%{cliname} completion bash > completion/%{cliname} ./bin/%{cliname} completion zsh > completion/_%{cliname} ./bin/%{cliname} completion fish > completion/%{cliname}.fish %install install -m 755 -vd %{buildroot}/%{_bindir} install -m 755 -vp bin/%{cliname} %{buildroot}/%{_bindir} install -Dpm 644 completion/%{cliname} -t %{buildroot}%{_datadir}/bash-completion/completions/ install -Dpm 644 completion/_%{cliname} -t %{buildroot}%{_datadir}/zsh/site-functions/ install -Dpm 644 completion/%{cliname}.fish -t %{buildroot}%{_datadir}/fish/vendor_completions.d/ %files %license LICENSE %doc *.md %{_bindir}/%{cliname} %{_datadir} %changelog * Sat Jun 13 2026 Matyáš Kroupa - Update to version 4.22 - Require git during build * Mon Dec 22 2025 Matyáš Kroupa - Initial version