File rke.spec of Package rke
#
# spec file for package rke
#
# Copyright (c) 2021 NDE Netzdesign und -entwicklung AG, Hamburg, Germany
#
# All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed
# upon. The license for this file, and modifications and additions to the
# file, is the same license as for the pristine package itself (unless the
# license for the pristine package is not an Open Source License, in which
# case the license is the MIT License). An "Open Source License" is a
# license that conforms to the Open Source Definition (Version 1.9)
# published by the Open Source Initiative.
Name: rke
Version: 1.4.1
Release: 0
Summary: Official rke command-line tool
License: Apache-2.0
Group: Productivity/Clustering/Computing
Url: https://github.com/rancher/rke
Source: %{name}-%{version}.tar.bz2
#BuildRequires:
BuildRoot: %{_tmppath}/%{name}-%{version}-build
%description
This is the official rke command-line tool for setting up RKE clusters.
As of now, this is a "binary-only" package, shipping the officially downloadable 64-bit rke program:
curl -s -o rke-x.x.x/rke -L https://github.com/rancher/rke/releases/latest/download/rke_linux-amd64
%prep
echo "prep stage:"
ls -lR
%setup -q
%build
ls -lR
echo "Nothing to do for build yet."
%install
ls -lR
install -D -m 0755 %{name} "%{buildroot}/%{_bindir}/%{name}"
%files
%defattr(-,root,root)
%{_bindir}/%{name}
%changelog