diff --git a/imgutil/buildrpm b/imgutil/buildrpm index 27687d6b..87631ac0 100755 --- a/imgutil/buildrpm +++ b/imgutil/buildrpm @@ -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/ diff --git a/imgutil/confluent_imgutil.spec.tmpl b/imgutil/confluent_imgutil.spec.tmpl index 3b31b232..a5c93f42 100644 --- a/imgutil/confluent_imgutil.spec.tmpl +++ b/imgutil/confluent_imgutil.spec.tmpl @@ -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