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:16:12 +00:00
|
|
|
cp ../LICENSE .
|
|
|
|
tar Jcvf confluent_osdeploy.tar.xz confluent_osdeploy
|
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
|
2023-04-04 13:44:04 +00:00
|
|
|
podman run --privileged --rm -v $(pwd)/utils:/buildutils -i -t fedorabuild make -C /buildutils
|
2021-10-07 13:18:24 +00:00
|
|
|
cd utils
|
2023-04-04 15:27:50 +00:00
|
|
|
cp confluent_imginfo copernicus clortho autocons ../el9bin/opt/confluent/bin
|
|
|
|
cp start_root urlmount ../el9bin/stateless-bin/
|
2021-10-07 13:18:24 +00:00
|
|
|
make clean
|
|
|
|
cd ..
|
2023-04-04 14:19:13 +00:00
|
|
|
mkdir -p el8bin/opt/confluent/bin
|
|
|
|
mkdir -p el8bin/stateless-bin
|
|
|
|
podman run --privileged --rm -v $(pwd)/utils:/buildutils -i -t el8build make -C /buildutils
|
|
|
|
cd utils
|
2023-04-04 15:27:50 +00:00
|
|
|
cp confluent_imginfo copernicus clortho autocons ../el8bin/opt/confluent/bin
|
|
|
|
cp start_root urlmount ../el8bin/stateless-bin/
|
2023-04-04 14:19:13 +00:00
|
|
|
make clean
|
|
|
|
cd ..
|
2021-10-07 13:18:24 +00:00
|
|
|
tar Jcvf confluent_el9bin.tar.xz el9bin/
|
2023-04-04 14:19:13 +00:00
|
|
|
tar Jcvf confluent_el8bin.tar.xz el8bin/
|
|
|
|
mv confluent_el8bin.tar.xz ~/rpmbuild/SOURCES/
|
2021-10-07 13:18:24 +00:00
|
|
|
rm -rf el9bin
|
2023-04-04 14:19:13 +00:00
|
|
|
rm -rf el8bin
|
2020-05-04 19:47:39 +00:00
|
|
|
rpmbuild -ba confluent_osdeploy.spec
|