[graphite-web] Use commit hash for Source URL

Jamie Nguyen jamielinux at fedoraproject.org
Wed Oct 1 13:55:15 UTC 2014


commit e6d5307334acd58cea9b597f12febb2f61230d8a
Author: Jamie Nguyen <j at jamielinux.com>
Date:   Wed Oct 1 12:39:18 2014 +0100

    Use commit hash for Source URL

 .gitignore        |    1 +
 graphite-web.spec |    6 ++++--
 sources           |    2 +-
 3 files changed, 6 insertions(+), 3 deletions(-)
---
diff --git a/.gitignore b/.gitignore
index a76d1eb..5229784 100644
--- a/.gitignore
+++ b/.gitignore
@@ -1,2 +1,3 @@
 /graphite-web-0.9.10.tar.gz
 /graphite-web-0.9.12.tar.gz
+/graphite-web-28cc7276784bcc4d8a1be6854a6add1145ec4109.tar.gz
diff --git a/graphite-web.spec b/graphite-web.spec
index 4d752e6..90017b7 100644
--- a/graphite-web.spec
+++ b/graphite-web.spec
@@ -1,5 +1,7 @@
 %{!?python_sitelib: %global python_sitelib %(%{__python} -c "from distutils.sysconfig import get_python_lib; print(get_python_lib())")}
 
+%global commit 28cc7276784bcc4d8a1be6854a6add1145ec4109
+
 Name:           graphite-web
 Version:        0.9.12
 Release:        7%{?dist}
@@ -9,7 +11,7 @@ Group:          Applications/Internet
 License:        ASL 2.0
 URL:            https://github.com/graphite-project
 
-Source0:        https://github.com/graphite-project/graphite-web/archive/0.9.12.tar.gz#/%{name}-%{version}.tar.gz
+Source0:        https://github.com/graphite-project/graphite-web/archive/%{commit}/%{name}-%{commit}.tar.gz
 Source1:        graphite-web-vhost.conf
 Source2:        graphite-web-README.fedora
 Source3:        graphite-web-README.selinux
@@ -66,7 +68,7 @@ SELinux labeling for graphite files.
 
 
 %prep
-%setup -q -n graphite-web-%{version}
+%setup -q -n graphite-web-%{commit}
 # Patch for Filesystem Hierarchy Standard
 # Remove thridparty libs
 %patch0 -p1
diff --git a/sources b/sources
index 2110667..4b0c3da 100644
--- a/sources
+++ b/sources
@@ -1 +1 @@
-c09f19fc0076cbadec64039f161bafc0  graphite-web-0.9.12.tar.gz
+3a72d9fd18c8c6e91f6c34404ac7c502  graphite-web-28cc7276784bcc4d8a1be6854a6add1145ec4109.tar.gz


More information about the scm-commits mailing list