Version to 0.10.1 and spec cleanup for rpm

This commit is contained in:
DanB
2020-05-12 13:45:13 +02:00
parent 4eb97cc695
commit 8ceca2c5a8
3 changed files with 8 additions and 3 deletions

View File

@@ -1,5 +1,5 @@
{{ ansible_managed | comment }}
%global version 0.10.1~dev
%global version 0.10.1
%define debug_package %{nil}
%global _logdir /var/log/%name

View File

@@ -233,6 +233,11 @@
set_fact:
releaseTag: ""
- name: Compose the ReleaseTag with Tag
set_fact:
releaseTag: "{{ gitTagVar.stdout_lines[0] }}"
when: gitTagVar.stdout_lines|length > 0
- name: Compose the ReleaseTag with values
set_fact:
releaseTag: "{{ gitDate.stdout_lines[0] }}+{{ gitShortVersion.stdout_lines[0] }}"
@@ -346,7 +351,7 @@
become: yes
file:
src: /var/packages/rpm/{{ cgrates_distribution }}/{{ item }}
dest: /var/packages/rpm/{{ cgrates_distribution }}/cgrates_current.rpm"
dest: /var/packages/rpm/{{ cgrates_distribution }}/cgrates_current.rpm
state: link
with_items: "{{ hostvars['yum']['rmpFileName']['stdout_lines'] }}"
when : cgrates_distribution == "nightly" or hostvars['yum']['gitTagVar'].stdout_lines|length > 0

View File

@@ -136,7 +136,7 @@ var (
const (
CGRateS = "CGRateS"
VERSION = "v0.10.1~dev"
VERSION = "v0.10.1"
DIAMETER_FIRMWARE_REVISION = 918
REDIS_MAX_CONNS = 10
CGRATES = "cgrates"