From 8c0fe71397c0f351feb13f3a275a8226b1f212c2 Mon Sep 17 00:00:00 2001 From: Ken Dreyer Date: Fri, 25 Jan 2013 00:35:32 -0700 Subject: adjust git hash management --- .gitignore | 2 +- capillary-js.spec | 9 ++++++--- sources | 2 +- 3 files changed, 8 insertions(+), 5 deletions(-) diff --git a/.gitignore b/.gitignore index 8b55812..00c8b53 100644 --- a/.gitignore +++ b/.gitignore @@ -1 +1 @@ -/capillary-js-7e15f28f.tar.gz +/capillary-js-7e15f28.tar.gz diff --git a/capillary-js.spec b/capillary-js.spec index 88bb02e..5865195 100644 --- a/capillary-js.spec +++ b/capillary-js.spec @@ -1,4 +1,7 @@ -%global checkout 20130124git7e15f28f +%global commit 7e15f28f6c76b06d26fb5d8525f569e54c3784fc +%global shortcommit %(c=%{commit}; echo ${c:0:7}) + +%global checkout 20130124git%{shortcommit} Name: capillary-js Version: 0.1.0 @@ -8,9 +11,9 @@ Group: Applications/Internet License: AGPLv3+ URL: https://gitorious.org/capillary/capillary-js # To download the source tarball: -# curl -o capillary-js-7e15f28f.tar.gz https://gitorious.org/capillary/capillary-js/archive-tarball/7e15f28f6c76b06d26fb5d8525f569e54c3784fc +# curl -o capillary-js-%{shortcommit}.tar.gz https://gitorious.org/capillary/capillary-js/archive-tarball/%{commit} # You may get a "try again later" message at first. -Source0: %{name}-7e15f28f.tar.gz +Source0: %{name}-%{shortcommit}.tar.gz Source1: %{name}.conf BuildArch: noarch diff --git a/sources b/sources index 5c8c88f..9a608bc 100644 --- a/sources +++ b/sources @@ -1 +1 @@ -55c2d5ea0cdafb66895a5d137a07a18d capillary-js-7e15f28f.tar.gz +55c2d5ea0cdafb66895a5d137a07a18d capillary-js-7e15f28.tar.gz -- cgit