2020-05-04 19:49:46 +00:00
|
|
|
VERSION=`git describe|cut -d- -f 1`
|
|
|
|
NUMCOMMITS=`git describe|cut -d- -f 2`
|
|
|
|
if [ "$NUMCOMMITS" != "$VERSION" ]; then
|
|
|
|
VERSION=$VERSION.dev$NUMCOMMITS.g`git describe|cut -d- -f 3`
|
|
|
|
fi
|
2020-05-04 19:47:39 +00:00
|
|
|
sed -e "s/#VERSION#/$VERSION/" confluent_osdeploy.spec.tmpl > confluent_osdeploy.spec
|
|
|
|
cd ..
|
2022-04-26 12:09:50 +00:00
|
|
|
tar Jcvf confluent_osdeploy.tar.xz confluent_osdeploy LICENSE
|
2020-05-04 19:49:46 +00:00
|
|
|
mv confluent_osdeploy.tar.xz ~/rpmbuild/SOURCES/
|
2020-05-04 19:47:39 +00:00
|
|
|
cd -
|
2021-10-07 13:18:24 +00:00
|
|
|
mkdir -p el9bin/opt/confluent/bin
|
|
|
|
mkdir -p el9bin/stateless-bin
|
|
|
|
podman run --privileged --rm -v $(pwd)/utils:/buildutils -i -t fedorabuilder make -C /buildutils
|
|
|
|
cd utils
|
|
|
|
mv confluent_imginfo copernicus clortho autocons ../el9bin/opt/confluent/bin
|
|
|
|
mv start_root urlmount ../el9bin/stateless-bin/
|
|
|
|
make clean
|
|
|
|
cd ..
|
|
|
|
tar Jcvf confluent_el9bin.tar.xz el9bin/
|
|
|
|
mv confluent_el9bin.tar.xz ~/rpmbuild/SOURCES/
|
|
|
|
rm -rf el9bin
|
2020-05-04 19:47:39 +00:00
|
|
|
rpmbuild -ba confluent_osdeploy.spec
|