]> git.pld-linux.org Git - packages/ekg2.git/blobdiff - ekg2.spec
- --with git: allow to specify branch (as %ekg2branch macro)
[packages/ekg2.git] / ekg2.spec
index 8cf39ddaabdb487362d981bd90a89d3831920def..688c2b60b41ec019d914ded9bb3dc24d809fb803 100644 (file)
--- a/ekg2.spec
+++ b/ekg2.spec
@@ -338,11 +338,15 @@ Wtyczka xosd dla ekg2.
 %if %{with git}
 %setup -q -T -c -n %{name}-%{subver}
 repo="%ekg2repo"
+branch="%ekg2branch"
 if [ "$repo" = "%%ekg2repo" ]; then
 repo="git://github.com/leafnode/ekg2.git"
 fi
+if [ "$branch" = "%%ekg2branch" ]; then
+repo="master"
+fi
 git init
-git fetch $repo master
+git fetch $repo $branch
 git checkout FETCH_HEAD
 %else
 %setup -q -c -n %{name}-%{subver}
This page took 0.051741 seconds and 4 git commands to generate.