From f7dcabc1ab0ea7b66f6c28fdac69ff68da24cd7b Mon Sep 17 00:00:00 2001 From: Jarrod Johnson Date: Mon, 4 May 2020 15:47:39 -0400 Subject: [PATCH] Add buildrpm script to confluent_osdeploy --- confluent_osdeploy/buildrpm | 7 +++++++ ...luent_deploy.spec.tmpl => confluent_osdeploy.spec.tmpl} | 0 2 files changed, 7 insertions(+) create mode 100644 confluent_osdeploy/buildrpm rename confluent_osdeploy/{confluent_deploy.spec.tmpl => confluent_osdeploy.spec.tmpl} (100%) diff --git a/confluent_osdeploy/buildrpm b/confluent_osdeploy/buildrpm new file mode 100644 index 00000000..91b947ee --- /dev/null +++ b/confluent_osdeploy/buildrpm @@ -0,0 +1,7 @@ +export VERSION=$(git describe --tags) +sed -e "s/#VERSION#/$VERSION/" confluent_osdeploy.spec.tmpl > confluent_osdeploy.spec +cd .. +tar Jcvf confluent_osdeploy.tar.xz confluent_osdeploy +mv $confluent_osdeploy.tar.xz ~/rpmbuild/SOURCES/ +cd - +rpmbuild -ba confluent_osdeploy.spec diff --git a/confluent_osdeploy/confluent_deploy.spec.tmpl b/confluent_osdeploy/confluent_osdeploy.spec.tmpl similarity index 100% rename from confluent_osdeploy/confluent_deploy.spec.tmpl rename to confluent_osdeploy/confluent_osdeploy.spec.tmpl