# script fails to generate the debuginfos, filelists %global debug_package %{nil} %global commit 699277bb61706731d687b9e40700ebf4630b0851 %global shortcommit %(c=%{commit}; echo ${c:0:7}) Name: openshift-installer #There are no cut realeases, let's call it something arbitrary Version: 0 Release: %{shortcommit}.4%{?dist} Summary: OpenShift Clinet CLI tool License: ASL 2.0 URL: https://github.com/openshift/oc Source0: https://github.com/openshift/installer/archive/%{commit}/openshift-installer-%{shortcommit}.tar.gz BuildRequires: golang, libvirt-devel %description Command line tool for interacting and setting up OpenShift clusters. %prep %autosetup -n installer-%{commit} %package data Summary: OpenShift installer configs needed by the openshift-install to install OKD or OCP %description data OpenShift installer configs needed by the openshift-install to install OKD or OCP %build export SOURCE_GIT_COMMIT=%{commit} export SOURCE_GIT_TREE_STATE=clean export BUILD_VERSION=fcos export MODE=dev export TAGS=libvirt,okd hack/build.sh %install install -d %{buildroot}%{_bindir} install -p -m 755 bin/openshift-install %{buildroot}%{_bindir}/openshift-install # Install configs, etc. for data sub-package install -d %{buildroot}%{_datadir}/%{name}/data/ pushd data/data for DIR in $(find . -type d -printf "%%P ") do install -d %{buildroot}%{_datadir}/%{name}/data/$DIR/ done for FILE in $(find . -type f -printf "%%P ") do install -p -m 655 $FILE %{buildroot}%{_datadir}/%{name}/data/$FILE done popd %files %license LICENSE %doc README.md %{_bindir}/openshift-install %files data %license LICENSE %doc README.md %{_datadir}/%{name}/data/ %changelog * Wed Aug 05 2020 Jakub Čajka - 0-699277b.4 - Add data sub-package with configs needed for the installer to work * Tue Aug 04 2020 Jakub Čajka - 0-699277b.3 - Fix build add okd tag * Tue Jul 28 2020 Jakub Čajka - 0-699277b.2 - Enable libvirt support * Mon Jul 27 2020 Jakub Čajka - 0-699277b.1 - Initial package