Skip to content

Commit

Permalink
Define 'releasenumber' macro in spec file
Browse files Browse the repository at this point in the history
- 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.
  • Loading branch information
tofu-rocketry committed Jul 25, 2014
1 parent 0bb7097 commit 1284bd7
Showing 1 changed file with 5 additions and 6 deletions.
11 changes: 5 additions & 6 deletions apel-ssm.spec
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand All @@ -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

Expand Down

0 comments on commit 1284bd7

Please sign in to comment.