2021-06-14 20:02:52 +00:00
|
|
|
Name: confluent_imgutil
|
|
|
|
Version: #VERSION#
|
2021-06-14 20:16:19 +00:00
|
|
|
Release: 1
|
2021-06-14 20:02:52 +00:00
|
|
|
Summary: Confluent OS imaging utility
|
|
|
|
License: Apache2
|
|
|
|
URL: https://hpc.lenovo.com/
|
|
|
|
Source: confluent_imgutil.tar.xz
|
|
|
|
BuildArch: noarch
|
|
|
|
BuildRoot: /tmp/
|
2022-05-04 18:23:41 +00:00
|
|
|
%if "%{dist}" == ".el8"
|
2022-05-04 18:35:03 +00:00
|
|
|
Requires: squashfs-tools
|
2022-05-04 18:23:41 +00:00
|
|
|
%else
|
|
|
|
%if "%{dist}" == ".el9"
|
2022-05-04 18:35:03 +00:00
|
|
|
Requires: squashfs-tools
|
2022-05-04 18:23:41 +00:00
|
|
|
%else
|
2022-05-09 13:57:35 +00:00
|
|
|
%if "%{dist}" == ".el7"
|
|
|
|
Requires: squashfs-tools
|
|
|
|
%else
|
2022-05-04 18:35:03 +00:00
|
|
|
Requires: squashfs
|
2022-05-04 18:23:41 +00:00
|
|
|
%endif
|
|
|
|
%endif
|
2022-05-09 13:57:35 +00:00
|
|
|
%endif
|
2022-05-04 18:23:41 +00:00
|
|
|
|
2021-06-14 20:02:52 +00:00
|
|
|
|
|
|
|
%description
|
|
|
|
Utility for generating, modifying, and packing confluent deployment
|
|
|
|
images for diskless boot.
|
|
|
|
|
|
|
|
%prep
|
|
|
|
%setup -n imgutil
|
|
|
|
|
|
|
|
%build
|
|
|
|
mkdir -p opt/confluent/lib/imgutil
|
|
|
|
mkdir -p opt/confluent/bin
|
|
|
|
mv imgutil opt/confluent/bin/
|
2021-06-14 20:46:23 +00:00
|
|
|
chmod a+x opt/confluent/bin/imgutil
|
2022-06-07 13:06:59 +00:00
|
|
|
mv ubuntu suse15 el7 el9 el8 opt/confluent/lib/imgutil/
|
2022-04-26 12:18:31 +00:00
|
|
|
mkdir -p opt/confluent/share/licenses/confluent_imgutil
|
|
|
|
cp LICENSE opt/confluent/share/licenses/confluent_imgutil
|
2021-06-14 20:02:52 +00:00
|
|
|
|
|
|
|
%install
|
|
|
|
cp -a opt %{buildroot}/
|
|
|
|
|
|
|
|
%files
|
|
|
|
/opt/confluent/bin/imgutil
|
|
|
|
/opt/confluent/lib/imgutil
|
2022-04-26 12:18:31 +00:00
|
|
|
%license /opt/confluent/share/licenses/confluent_imgutil/LICENSE
|