2020-05-04 19:53:29 +00:00
|
|
|
Name: confluent_osdeploy-x86_64
|
2020-05-04 19:45:35 +00:00
|
|
|
Version: #VERSION#
|
2020-05-04 19:25:04 +00:00
|
|
|
Release: 1
|
2020-05-04 17:49:48 +00:00
|
|
|
Summary: OS Deployment support for confluent
|
|
|
|
|
|
|
|
License: Apache2
|
|
|
|
URL: http://hpc.lenovo.com/
|
2020-05-04 19:53:29 +00:00
|
|
|
Source0: confluent_osdeploy.tar.xz
|
2020-05-04 19:25:04 +00:00
|
|
|
BuildArch: noarch
|
2020-05-04 17:49:48 +00:00
|
|
|
Requires: confluent_ipxe
|
|
|
|
BuildRoot: /tmp
|
|
|
|
|
|
|
|
%description
|
|
|
|
This contains support utilities for enabling deployment of x86_64 architecture systems
|
|
|
|
|
|
|
|
|
|
|
|
%define debug_package %{nil}
|
|
|
|
|
|
|
|
%prep
|
2020-05-04 19:51:05 +00:00
|
|
|
%setup -n confluent_osdeploy
|
2020-05-04 17:49:48 +00:00
|
|
|
|
|
|
|
%build
|
|
|
|
mkdir -p opt/confluent/bin
|
|
|
|
cd utils
|
|
|
|
make all
|
|
|
|
cp copernicus clortho autocons ../opt/confluent/bin
|
|
|
|
cd ..
|
2020-05-04 19:25:04 +00:00
|
|
|
for os in el8 suse15 ubuntu20.04; do
|
|
|
|
mkdir ${os}out
|
|
|
|
cd ${os}out
|
|
|
|
cp -a ../opt .
|
2020-05-04 19:55:22 +00:00
|
|
|
cp -a ../${os}/initramfs/* .
|
2020-05-07 13:35:32 +00:00
|
|
|
find . | cpio -H newc -o > ../addons.cpio
|
|
|
|
mv ../addons.cpio .
|
2020-05-04 19:25:04 +00:00
|
|
|
cd ..
|
|
|
|
done
|
2020-05-04 17:49:48 +00:00
|
|
|
|
|
|
|
%install
|
2020-05-04 19:25:04 +00:00
|
|
|
for os in el8 suse15 ubuntu20.04; do
|
|
|
|
mkdir -p %{buildroot}/opt/confluent/lib/osdeploy/$os/initramfs
|
|
|
|
mkdir -p %{buildroot}/opt/confluent/lib/osdeploy/$os/profiles
|
|
|
|
cp ${os}out/addons.cpio %{buildroot}/opt/confluent/lib/osdeploy/$os/initramfs
|
2020-05-04 19:57:11 +00:00
|
|
|
cp -a $os/profiles/* %{buildroot}/opt/confluent/lib/osdeploy/$os/profiles
|
2020-05-04 19:25:04 +00:00
|
|
|
done
|
|
|
|
|
|
|
|
%files
|
|
|
|
/opt/confluent/lib/osdeploy
|