[python-carbon] Use commit hash for Source URL

Jamie Nguyen jamielinux at fedoraproject.org
Wed Oct 1 11:32:53 UTC 2014


commit f876fbb318142a469307352c67ec5cfb2a76e1ad
Author: Jamie Nguyen <j at jamielinux.com>
Date:   Wed Oct 1 10:46:06 2014 +0100

    Use commit hash for Source URL

 .gitignore         |    1 +
 python-carbon.spec |    6 ++++--
 sources            |    2 +-
 3 files changed, 6 insertions(+), 3 deletions(-)
---
diff --git a/.gitignore b/.gitignore
index ba428f4..7c080c4 100644
--- a/.gitignore
+++ b/.gitignore
@@ -1,2 +1,3 @@
 /carbon-0.9.10.tar.gz
 /python-carbon-0.9.12.tar.gz
+/python-carbon-eac68f82c3a06fe66155fa7adf58b39649ef2d27.tar.gz
diff --git a/python-carbon.spec b/python-carbon.spec
index da90152..42dc9fb 100644
--- a/python-carbon.spec
+++ b/python-carbon.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 eac68f82c3a06fe66155fa7adf58b39649ef2d27
+
 Name:           python-carbon
 Version:        0.9.12
 Release:        5%{?dist}
@@ -9,7 +11,7 @@ Group:          System Environment/Daemons
 License:        ASL 2.0
 URL:            https://github.com/graphite-project
 
-Source0:        https://github.com/graphite-project/carbon/archive/%{version}.tar.gz#/%{name}-%{version}.tar.gz
+Source0:        https://github.com/graphite-project/carbon/archive/%{commit}/%{name}-%{commit}.tar.gz
 Source1:        %{name}-cache.init
 Source2:        %{name}-relay.init
 Source3:        %{name}-aggregator.init
@@ -33,7 +35,7 @@ a storage back-end.
 
 
 %prep
-%setup -q -n carbon-%{version}
+%setup -q -n carbon-%{commit}
 # Patch for Filesystem Hierarchy Standard
 %patch0 -p1
 
diff --git a/sources b/sources
index e8587f2..2327583 100644
--- a/sources
+++ b/sources
@@ -1 +1 @@
-674c7376be70b07a90eecf013dad6600  python-carbon-0.9.12.tar.gz
+6d752faac67c79b991904cb6affc8290  python-carbon-eac68f82c3a06fe66155fa7adf58b39649ef2d27.tar.gz


More information about the scm-commits mailing list