Skip to content

Commit

Permalink
First release
Browse files Browse the repository at this point in the history
Signed-off-by: Tomáš Golembiovský <tgolembi@redhat.com>
  • Loading branch information
nyoxi committed Mar 28, 2018
1 parent 5b0ed77 commit d13aa16
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 4 deletions.
15 changes: 12 additions & 3 deletions 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"
Expand Down
2 changes: 1 addition & 1 deletion ovirt-ansible-v2v-conversion-host.spec.in
Expand Up @@ -38,5 +38,5 @@ sh build.sh install
%license LICENSE

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

0 comments on commit d13aa16

Please sign in to comment.