mirror of
https://github.com/xcat2/confluent.git
synced 2026-09-22 09:32:28 +00:00
a9d7b67929
Release tags do not live on master: 3.15.2 through 3.15.6 were tagged on branch 3.15, so git describe reaches only 3.15.1 and dev builds were stamped 3.15.2.dev<n>. Besides being confusing, rpm and dpkg both rank the released 3.15.6 above that, so a dev package will not install over a released one. Add a top-level VERSION file naming the release the branch is working toward (4.0.0 on master) and a mkversion helper that stamps packages from it, keeping the tag-derived value as a floor so a forgotten bump cannot go backwards. mkversion also replaces the block copy-pasted into seven build scripts, and makesetup no longer writes a per-package VERSION file, so the stale checked-in confluent_common/VERSION goes with it.
32 lines
1.1 KiB
Plaintext
Executable File
32 lines
1.1 KiB
Plaintext
Executable File
cd $(dirname $0)
|
|
VERSION=`../mkversion --tilde` || exit 1
|
|
sed -e "s/#VERSION#/$VERSION/" confluent_osdeploy.spec.tmpl > confluent_osdeploy.spec
|
|
cd ..
|
|
cp ../LICENSE .
|
|
tar Jcvf confluent_osdeploy.tar.xz confluent_osdeploy
|
|
mv confluent_osdeploy.tar.xz ~/rpmbuild/SOURCES/
|
|
cd -
|
|
mkdir -p el9bin/opt/confluent/bin
|
|
mkdir -p el9bin/stateless-bin
|
|
podman run --privileged --rm -v $(pwd)/utils:/buildutils -i -t el9build make -C /buildutils
|
|
cd utils
|
|
cp confluent_imginfo copernicus clortho autocons ../el9bin/opt/confluent/bin
|
|
cp start_root urlmount ../el9bin/stateless-bin/
|
|
make clean
|
|
cd ..
|
|
mkdir -p el8bin/opt/confluent/bin
|
|
mkdir -p el8bin/stateless-bin
|
|
podman run --privileged --rm -v $(pwd)/utils:/buildutils -i -t el7build make -C /buildutils
|
|
cd utils
|
|
cp confluent_imginfo copernicus clortho autocons ../el8bin/opt/confluent/bin
|
|
cp start_root urlmount ../el8bin/stateless-bin/
|
|
make clean
|
|
cd ..
|
|
tar Jcvf confluent_el9bin.tar.xz el9bin/
|
|
tar Jcvf confluent_el8bin.tar.xz el8bin/
|
|
mv confluent_el8bin.tar.xz ~/rpmbuild/SOURCES/
|
|
mv confluent_el9bin.tar.xz ~/rpmbuild/SOURCES/
|
|
rm -rf el9bin
|
|
rm -rf el8bin
|
|
rpmbuild -ba confluent_osdeploy.spec
|