diff --git a/confluent_osdeploy/buildrpm b/confluent_osdeploy/buildrpm index 84db3482..9d7ff45f 100755 --- a/confluent_osdeploy/buildrpm +++ b/confluent_osdeploy/buildrpm @@ -5,7 +5,7 @@ if [ "$NUMCOMMITS" != "$VERSION" ]; then fi sed -e "s/#VERSION#/$VERSION/" confluent_osdeploy.spec.tmpl > confluent_osdeploy.spec cd .. -tar Jcvf confluent_osdeploy.tar.xz confluent_osdeploy +tar Jcvf confluent_osdeploy.tar.xz confluent_osdeploy LICENSE mv confluent_osdeploy.tar.xz ~/rpmbuild/SOURCES/ cd - mkdir -p el9bin/opt/confluent/bin diff --git a/confluent_osdeploy/confluent_osdeploy.spec.tmpl b/confluent_osdeploy/confluent_osdeploy.spec.tmpl index de5a247d..8cc0c95b 100644 --- a/confluent_osdeploy/confluent_osdeploy.spec.tmpl +++ b/confluent_osdeploy/confluent_osdeploy.spec.tmpl @@ -76,6 +76,8 @@ cp -a esxi7out esxi6out cp -a esxi7 esxi6 %install +mkdir -p %{buildroot}/opt/confluent/share/licenses/confluent_osdeploy/ +cp LICENSE %{buildroot}/opt/confluent/share/licenses/confluent_osdeploy/ for os in rhvh4 el7 el8 el9 genesis suse15 ubuntu20.04 esxi6 esxi7 coreos; do mkdir -p %{buildroot}/opt/confluent/lib/osdeploy/$os/initramfs mkdir -p %{buildroot}/opt/confluent/lib/osdeploy/$os/profiles @@ -98,3 +100,4 @@ find %{buildroot}/opt/confluent/lib/osdeploy/ -name .gitignore -exec rm -f {} + %files /opt/confluent/lib/osdeploy +%license /opt/confluent/share/licenses/confluent_osdeploy/LICENSE