From 1284bd764c647a7de676c803d6f1fb250f493004 Mon Sep 17 00:00:00 2001 From: Adrian Coveney Date: Fri, 25 Jul 2014 09:49:36 +0100 Subject: [PATCH] Define 'releasenumber' macro in spec file - Define 'releasenumber' macro in spec file so that the release number only needs to be manually changed in one place, rather than two. - Update version number for test build. - Change 'Source0' to just 'Source' for tidyness as they are equivalent when there is only one source. --- apel-ssm.spec | 11 +++++------ 1 file changed, 5 insertions(+), 6 deletions(-) diff --git a/apel-ssm.spec b/apel-ssm.spec index cadcb833..d2cfcbb1 100644 --- a/apel-ssm.spec +++ b/apel-ssm.spec @@ -4,15 +4,15 @@ %endif Name: apel-ssm -Version: 2.1.3 -Release: 1%{?dist} +Version: 2.1.4 +%define releasenumber 0.1.alpha1 +Release: %{releasenumber}%{?dist} Summary: Secure stomp messenger Group: Development/Languages License: ASL 2.0 URL: https://wiki.egi.eu/wiki/APEL/SSM -# Value between %{version} and extension must match "Release" without %{dist} -Source0: %{name}-%{version}-1.tar.gz +Source: %{name}-%{version}-%{releasenumber}.tar.gz BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n) BuildArch: noarch @@ -30,8 +30,7 @@ can act as either a sender or receiver. The SSM is written in python. %prep -# Value after %{version} must match "Release" without %{dist} -%setup -q -n %{name}-%{version}-1 +%setup -q -n %{name}-%{version}-%{releasenumber} %build