2
0
mirror of https://github.com/xcat2/confluent.git synced 2024-11-22 01:22:00 +00:00
confluent/imgutil/confluent_imgutil.spec.tmpl

44 lines
943 B
Cheetah
Raw Normal View History

2021-06-14 20:02:52 +00:00
Name: confluent_imgutil
Version: #VERSION#
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/
%if "%{dist}" == ".el8"
Requires squashfs-tools
%else
%if "%{dist}" == ".el9"
Requires squashfs-tools
%else
Requires squashfs
%endif
%endif
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/
chmod a+x opt/confluent/bin/imgutil
2022-02-02 18:23:34 +00:00
mv ubuntu suse15 el7 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