mirror of
https://github.com/xcat2/confluent.git
synced 2024-11-25 11:01:09 +00:00
Add license file to imgutil packaging
This commit is contained in:
parent
7da8a2ec4c
commit
a738be3b53
@ -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/
|
||||
|
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user