2
0
mirror of https://github.com/xcat2/confluent.git synced 2024-11-22 09:32:21 +00:00

Add license file to imgutil packaging

This commit is contained in:
Jarrod Johnson 2022-04-26 08:18:31 -04:00
parent 7da8a2ec4c
commit a738be3b53
2 changed files with 4 additions and 0 deletions

View File

@ -5,6 +5,7 @@ if [ "$NUMCOMMITS" != "$VERSION" ]; then
VERSION=$VERSION.dev$NUMCOMMITS.g`git describe|cut -d- -f 3`
fi
sed -e "s/#VERSION#/$VERSION/" confluent_imgutil.spec.tmpl > confluent_imgutil.spec
cp ../LICENSE .
cd ..
tar Jcvf confluent_imgutil.tar.xz imgutil
mv confluent_imgutil.tar.xz ~/rpmbuild/SOURCES/

View File

@ -21,6 +21,8 @@ mkdir -p opt/confluent/bin
mv imgutil opt/confluent/bin/
chmod a+x opt/confluent/bin/imgutil
mv ubuntu suse15 el7 el8 opt/confluent/lib/imgutil/
mkdir -p opt/confluent/share/licenses/confluent_imgutil
cp LICENSE opt/confluent/share/licenses/confluent_imgutil
%install
cp -a opt %{buildroot}/
@ -28,3 +30,4 @@ cp -a opt %{buildroot}/
%files
/opt/confluent/bin/imgutil
/opt/confluent/lib/imgutil
%license /opt/confluent/share/licenses/confluent_imgutil/LICENSE