up to 3.5.3-7-gf3c41492
authorElan Ruusamäe <glen@delfi.ee>
Tue, 28 Aug 2018 18:47:13 +0000 (21:47 +0300)
committerElan Ruusamäe <glen@delfi.ee>
Tue, 28 Aug 2018 18:54:33 +0000 (21:54 +0300)
eventum.spec
update-source.sh

index 57805b0..a86e8f6 100644 (file)
@@ -3,8 +3,8 @@
 %bcond_with    order   # with experimental order patch
 
 %define                rel             1
-#define                subver  45
-#define                githash dc8e82f4
+%define                subver  7
+%define                githash f3c41492
 %define                php_min_version 5.6.0
 Summary:       Eventum Issue / Bug tracking system
 Summary(pl.UTF-8):     Eventum - system śledzenia spraw/błędów
@@ -13,9 +13,9 @@ Version:      3.5.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.xz
-# Source0-md5: 2c923a45b78d43d3527e6e0d15232c11
-#Source0:      https://github.com/eventum/eventum/releases/download/snapshot/%{name}-%{version}-%{subver}-g%{githash}.tar.xz
+#Source0:      https://github.com/eventum/eventum/releases/download/v%{version}/%{name}-%{version}.tar.xz
+Source0:       https://github.com/eventum/eventum/releases/download/snapshot/%{name}-%{version}-%{subver}-g%{githash}.tar.xz
+# Source0-md5: 3f1bfad9c4141201caa0cce29f310eb2
 Source1:       %{name}-apache.conf
 Source2:       %{name}-mail-queue.cron
 Source3:       %{name}-mail-download.cron
index c006f34..52eecbb 100755 (executable)
@@ -45,6 +45,8 @@ echo "Updating $specfile for $rev (subver: $subver, githash: $githash)..."
 sed -i -re "
        s/^[#%](define[ \t]+subver[ \t]+)[0-9]+\$/%\1$subver/
        s/^[#%](define[ \t]+githash[ \t]+)[0-9a-fg]+\$/%\1$githash/
+        /^Source0:.*download\/v/ s/^/#/
+       /^#Source0:.*download\/snapshot/ s/^#//
 " $specfile
 ../builder -ncs -5 $specfile
 
This page took 1.346026 seconds and 4 git commands to generate.