From d13aa1610cc32ee5c1313083ca9fe3bf121a222d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Tom=C3=A1=C5=A1=20Golembiovsk=C3=BD?= Date: Wed, 28 Mar 2018 17:39:15 +0200 Subject: [PATCH] First release MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Tomáš Golembiovský --- build.sh | 15 ++++++++++++--- ovirt-ansible-v2v-conversion-host.spec.in | 2 +- 2 files changed, 13 insertions(+), 4 deletions(-) diff --git a/build.sh b/build.sh index 1f245c40..dd05f23b 100755 --- a/build.sh +++ b/build.sh @@ -1,8 +1,17 @@ #!/bin/bash -VERSION="0.1" -MILESTONE=master -RPM_RELEASE="0.1.$MILESTONE.$(date -u +%Y%m%d%H%M%S)" +VERSION="1.0.0" +if git describe --exact-match --tags --match "v[0-9]*" > /dev/null 2>&1 ; then + MILESTONE= + RPM_RELEASE="1" +else + MILESTONE=master + GIT="$( + git describe --always --tags --dirty=.dr | + sed -r 's/^/git/; s/^[^-]*-//; s/-g/.git/' + )" + RPM_RELEASE="0.$MILESTONE.$GIT.$(date -u +%Y%m%d%H%M%S)" +fi ROLE_NAME="oVirt.v2v-conversion-host" PACKAGE_NAME="ovirt-ansible-v2v-conversion-host" diff --git a/ovirt-ansible-v2v-conversion-host.spec.in b/ovirt-ansible-v2v-conversion-host.spec.in index d6e20c5f..2d7b2e36 100644 --- a/ovirt-ansible-v2v-conversion-host.spec.in +++ b/ovirt-ansible-v2v-conversion-host.spec.in @@ -38,5 +38,5 @@ sh build.sh install %license LICENSE %changelog -* Thu Mar 22 2018 Tomáš Golembiovský 0.1-1 +* Wed Mar 28 2018 Tomáš Golembiovský 1.0.0-1 - Initial release