[packages/eventum: 1/11] up to bd09ead2 snapshot
glen
glen at pld-linux.org
Sun Oct 8 13:01:26 CEST 2017
commit 2023f1984fedc7394424f8589bc18684bca07b84
Author: Elan Ruusamäe <glen at delfi.ee>
Date: Wed Sep 20 20:08:26 2017 +0300
up to bd09ead2 snapshot
eventum.spec | 10 +++++-----
update-source.sh | 15 ++++++++++++---
2 files changed, 17 insertions(+), 8 deletions(-)
---
diff --git a/eventum.spec b/eventum.spec
index e880a52..f84a1a3 100644
--- a/eventum.spec
+++ b/eventum.spec
@@ -3,8 +3,8 @@
%bcond_with order # with experimental order patch
%define rel 1
-#define subver 347
-#define githash 3d9195fa
+%define subver 136
+%define githash bd09ead2
%define php_min_version 5.5.0
%include /usr/lib/rpm/macros.php
Summary: Eventum Issue / Bug tracking system
@@ -14,9 +14,9 @@ Version: 3.2.3
Release: %{?subver:1.%{subver}.%{?githash:g%{githash}.}}%{rel}
License: GPL v2+
Group: Applications/WWW
-Source0: https://github.com/eventum/eventum/releases/download/v%{version}/%{name}-%{version}.tar.gz
-# Source0-md5: ad50831d3c73b8df781618eceefab135
-#Source0: https://github.com/eventum/eventum/releases/download/snapshot/%{name}-%{version}-%{subver}-g%{githash}.tar.gz
+#Source0: https://github.com/eventum/eventum/releases/download/v%{version}/%{name}-%{version}.tar.gz
+Source0: https://github.com/eventum/eventum/releases/download/snapshot/%{name}-%{version}-%{subver}-g%{githash}.tar.gz
+# Source0-md5: a8edbaab9794b68e84eec719e3841a78
Source1: %{name}-apache.conf
Source2: %{name}-mail-queue.cron
Source3: %{name}-mail-download.cron
diff --git a/update-source.sh b/update-source.sh
index ffb609f..9c8c607 100755
--- a/update-source.sh
+++ b/update-source.sh
@@ -1,6 +1,7 @@
#!/bin/sh
set -e
dropin=
+repo_url=https://github.com/eventum/eventum
specfile=eventum.spec
# Work in package dir
@@ -13,6 +14,14 @@ if [ -f "$1" ]; then
rev=${rev%.tar.gz}
elif [ "$1" ]; then
rev=$1
+else
+ # use tarball from "snapshot" build
+ git fetch "$repo_url" refs/tags/snapshot
+ out=$(git show FETCH_HEAD -s)
+ tarball=$(echo "$out" | grep -o 'eventum-.*\.tar.gz')
+ url="$repo_url/releases/download/snapshot/$tarball"
+ test -f "$tarball" || wget -c $url
+ exec "$0" "$tarball"
fi
subver=${rev%-*}
@@ -28,8 +37,8 @@ if [ "$oldsubver" = "$subver" -a "$oldgithash" = "$githash" ]; then
fi
echo "Updating $specfile for $rev (subver: $subver, githash: $githash)..."
-sed -i -e "
- s/^\(%define[ \t]\+subver[ \t]\+\)[0-9]\+\$/\1$subver/
- s/^\(%define[ \t]\+githash[ \t]\+\)[0-9a-fg]\+\$/\1$githash/
+sed -i -re "
+ s/^[#%](define[ \t]+subver[ \t]+)[0-9]+\$/%\1$subver/
+ s/^[#%](define[ \t]+githash[ \t]+)[0-9a-fg]+\$/%\1$githash/
" $specfile
../builder -ncs -5 $specfile
================================================================
---- gitweb:
http://git.pld-linux.org/gitweb.cgi/packages/eventum.git/commitdiff/935f6c79d48534409a6bc8f2018a2e0230fa1cc9
More information about the pld-cvs-commit
mailing list