Skip to content

Commit d13aa16

Browse files
committed
First release
Signed-off-by: Tomáš Golembiovský <tgolembi@redhat.com>
1 parent 5b0ed77 commit d13aa16

File tree

2 files changed

+13
-4
lines changed

2 files changed

+13
-4
lines changed

build.sh

+12-3
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,17 @@
11
#!/bin/bash
22

3-
VERSION="0.1"
4-
MILESTONE=master
5-
RPM_RELEASE="0.1.$MILESTONE.$(date -u +%Y%m%d%H%M%S)"
3+
VERSION="1.0.0"
4+
if git describe --exact-match --tags --match "v[0-9]*" > /dev/null 2>&1 ; then
5+
MILESTONE=
6+
RPM_RELEASE="1"
7+
else
8+
MILESTONE=master
9+
GIT="$(
10+
git describe --always --tags --dirty=.dr |
11+
sed -r 's/^/git/; s/^[^-]*-//; s/-g/.git/'
12+
)"
13+
RPM_RELEASE="0.$MILESTONE.$GIT.$(date -u +%Y%m%d%H%M%S)"
14+
fi
615

716
ROLE_NAME="oVirt.v2v-conversion-host"
817
PACKAGE_NAME="ovirt-ansible-v2v-conversion-host"

ovirt-ansible-v2v-conversion-host.spec.in

+1-1
Original file line numberDiff line numberDiff line change
@@ -38,5 +38,5 @@ sh build.sh install
3838
%license LICENSE
3939

4040
%changelog
41-
* Thu Mar 22 2018 Tomáš Golembiovský <tgolembi@redhat.com> 0.1-1
41+
* Wed Mar 28 2018 Tomáš Golembiovský <tgolembi@redhat.com> 1.0.0-1
4242
- Initial release

0 commit comments

Comments
 (0)