[packages/gitlab-workhorse] setup version for app
glen
glen at pld-linux.org
Sun Apr 17 21:54:05 CEST 2016
commit 49804a5844d4c26607ac5d9d13f8b877c474c64d
Author: Elan Ruusamäe <glen at delfi.ee>
Date: Sun Apr 17 22:43:57 2016 +0300
setup version for app
gitlab-workhorse.spec | 13 +++++++++++--
1 file changed, 11 insertions(+), 2 deletions(-)
---
diff --git a/gitlab-workhorse.spec b/gitlab-workhorse.spec
index d64ed9e..4aa77d2 100644
--- a/gitlab-workhorse.spec
+++ b/gitlab-workhorse.spec
@@ -1,7 +1,7 @@
Summary: An HTTP daemon that serves Git clients
Name: gitlab-workhorse
Version: 0.7.1
-Release: 0.5
+Release: 0.6
License: MIT
Group: Development/Building
# md5 deliberately omitted until this package is useful
@@ -25,7 +25,16 @@ Rails app.
mv %{name}-v%{version}-*/* .
%build
-%{__make}
+# make version similar when built from git:
+# Starting gitlab-workhorse v0.7.1-20160404.102052
+version=v%{version}-$(date -u +%%Y%%m%%d.%%H%%M%%S)
+
+%{__make} \
+ VERSION=$version
+
+# verify
+./gitlab-workhorse --version > v
+grep "$version" v
%install
rm -rf $RPM_BUILD_ROOT
================================================================
---- gitweb:
http://git.pld-linux.org/gitweb.cgi/packages/gitlab-workhorse.git/commitdiff/1fecad85d39382f5a594f5c41bf1a2fd7a961cce
More information about the pld-cvs-commit
mailing list