You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@cassandra.apache.org by ms...@apache.org on 2019/09/05 21:49:53 UTC
[cassandra] branch trunk updated: Define upstream_version in rpm
spec to deal with s/~/-/
This is an automated email from the ASF dual-hosted git repository.
mshuler pushed a commit to branch trunk
in repository https://gitbox.apache.org/repos/asf/cassandra.git
The following commit(s) were added to refs/heads/trunk by this push:
new 13e43a0 Define upstream_version in rpm spec to deal with s/~/-/
13e43a0 is described below
commit 13e43a03086dd623b32a733c72f74993c823ce75
Author: Michael Shuler <ms...@apache.org>
AuthorDate: Thu Sep 5 14:49:16 2019 -0700
Define upstream_version in rpm spec to deal with s/~/-/
---
redhat/cassandra.spec | 4 +++-
1 file changed, 3 insertions(+), 1 deletion(-)
diff --git a/redhat/cassandra.spec b/redhat/cassandra.spec
index d843f4d..5bc77e5 100644
--- a/redhat/cassandra.spec
+++ b/redhat/cassandra.spec
@@ -8,7 +8,9 @@
%global username cassandra
-%define relname apache-cassandra-%{version}
+# input of ~alphaN, ~betaN, ~rcN package versions need to retain upstream '-alphaN, etc' version for sources
+%define upstream_version %(echo %{version} | sed -r 's/~/-/g')
+%define relname apache-cassandra-%{upstream_version}
Name: cassandra
Version: %{version}
---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@cassandra.apache.org
For additional commands, e-mail: commits-help@cassandra.apache.org