[python-whisper] Specify commit hash in Source URL

Jamie Nguyen jamielinux at fedoraproject.org
Wed Oct 1 09:17:23 UTC 2014


commit 562991f3cfbaac314ba088ac1d18fc0a5ba5032b
Author: Jamie Nguyen <j at jamielinux.com>
Date:   Wed Oct 1 09:42:51 2014 +0100

    Specify commit hash in Source URL

 .gitignore          |    1 +
 python-whisper.spec |    6 ++++--
 sources             |    2 +-
 3 files changed, 6 insertions(+), 3 deletions(-)
---
diff --git a/.gitignore b/.gitignore
index aa42c01..fa7bb44 100644
--- a/.gitignore
+++ b/.gitignore
@@ -1,2 +1,3 @@
 /whisper-0.9.10.tar.gz
 /python-whisper-0.9.12.tar.gz
+/python-whisper-1d99a3be4f5b147c0a96419911743e3fb4696bfa.tar.gz
diff --git a/python-whisper.spec b/python-whisper.spec
index ed1ec80..739ca26 100644
--- a/python-whisper.spec
+++ b/python-whisper.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 1d99a3be4f5b147c0a96419911743e3fb4696bfa
+
 Name:           python-whisper
 Version:        0.9.12
 Release:        3%{?dist}
@@ -9,7 +11,7 @@ Group:          Development/Libraries
 License:        ASL 2.0
 URL:            https://github.com/graphite-project
 
-Source0:        https://github.com/graphite-project/whisper/archive/%{version}.tar.gz#/%{name}-%{version}.tar.gz
+Source0:        https://github.com/graphite-project/whisper/archive/%{commit}/%{name}-%{commit}.tar.gz
 BuildRoot:      %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
 
 BuildArch:      noarch
@@ -25,7 +27,7 @@ of historical data.
 
 
 %prep
-%setup -q -n whisper-%{version}
+%setup -q -n whisper-%{commit}
 
 
 %build
diff --git a/sources b/sources
index 1cab152..603183a 100644
--- a/sources
+++ b/sources
@@ -1 +1 @@
-fcaa34d128d13278ba1b8e23443e0871  python-whisper-0.9.12.tar.gz
+3b89c16d32e92c077117a3e5e7fbd278  python-whisper-1d99a3be4f5b147c0a96419911743e3fb4696bfa.tar.gz


More information about the scm-commits mailing list