[packages/git-bzr] fix clone for urls ending in '/'

glen glen at pld-linux.org
Sun Dec 8 16:01:24 CET 2013


commit f0d5aee516b70311e55fd34f0661d2e16b383ec4
Author: Elan Ruusamäe <glen at delfi.ee>
Date:   Sun Dec 8 17:00:28 2013 +0200

    fix clone for urls ending in '/'

 git-bzr.spec | 10 ++++++----
 1 file changed, 6 insertions(+), 4 deletions(-)
---
diff --git a/git-bzr.spec b/git-bzr.spec
index dc20088..3249301 100644
--- a/git-bzr.spec
+++ b/git-bzr.spec
@@ -2,15 +2,17 @@
 # Conditional build:
 %bcond_with	tests	# perform "make test" (uses network and are slow)
 
+%define		githash	9878a30
+%define		rel		1
 Summary:	bi-directional git to bzr bridge: never fear bzr again
 Name:		git-bzr
 Version:	0.1
-Release:	1
+Release:	1.%{githash}.%{rel}
 License:	BSD-like
 Group:		Development/Languages
 # SF URL: http://downloads.sourceforge.net/%{name}/%{name}-%{version}.tar.gz
-Source0:	https://github.com/termie/git-bzr-ng/archive/master.tar.gz?/%{name}.tgz
-# Source0-md5:	773e3529f1502e458daec2ca0fbf8034
+Source0:	https://github.com/termie/git-bzr-ng/archive/%{githash}/%{name}-g%{githash}.tar.gz
+# Source0-md5:	4aae9976cda23959355da8945a88670a
 URL:		https://github.com/termie/git-bzr-ng
 BuildRequires:	rpm-pythonprov
 Requires:	bzr-fastimport >= 0.10
@@ -27,7 +29,7 @@ the examples below for basic usage.
 
 %prep
 %setup -qc
-mv git-bzr-ng-master/* .
+mv git-bzr-ng-*/* .
 
 %build
 %{?with_tests:./run_tests.sh}
================================================================

---- gitweb:

http://git.pld-linux.org/gitweb.cgi/packages/git-bzr.git/commitdiff/f0d5aee516b70311e55fd34f0661d2e16b383ec4



More information about the pld-cvs-commit mailing list