]> source.dussan.org Git - rspamd.git/commitdiff
[Minor] Update Debian and RPM package versions
authorPeter Wu <peter@lekensteyn.nl>
Fri, 14 Feb 2020 23:14:28 +0000 (23:14 +0000)
committerPeter Wu <peter@lekensteyn.nl>
Fri, 14 Feb 2020 23:21:42 +0000 (23:21 +0000)
* Add script that can be used after tagging to update versions.
* Example (for this commit): `./set-version.sh 2.4`
* Clear Debian changelog, this information is not updated anyway.

centos/rspamd.spec
debian/changelog
set-version.sh [new file with mode: 0755]

index c5f0ee4e1ff941a154a75edae9ec6f3cc295c9a6..38520da798272ff3898de086241fdc992acd558e 100644 (file)
@@ -8,7 +8,7 @@
 %define rspamd_wwwdir   %{_datadir}/rspamd/www
 
 Name:           rspamd
-Version:        1.1.0
+Version:        2.4
 Release: 1
 Summary:        Rapid spam filtering system
 Group:          System Environment/Daemons
index c008524bcbad8d14d9a3355b3e2b1409b3f66d6c..efffe434f0f54bcd02d3ec696bc96b549ea7d330 100644 (file)
@@ -1,40 +1,5 @@
-rspamd (1.0.2) unstable; urgency=low
+rspamd (2.4) unstable; urgency=low
 
   * New release.
 
- -- Mikhail Gusarov <dottedmag@debian.org>  Thu, 17 Sep 2015 15:17:32 +0100
-
-rspamd (0.9.4) unstable; urgency=low
-
-  * New release:
-    - Fix Build-Depends to let buildd pick up lua 5.1 on architectures
-      without luajit (Closes: #785800)
-
- -- Mikhail Gusarov <dottedmag@debian.org>  Thu, 21 May 2015 09:26:18 +0200
-
-rspamd (0.9.3) unstable; urgency=low
-
-  * New release:
-    - Use lua 5.1 if luajit is not available.
-
- -- Mikhail Gusarov <dottedmag@debian.org>  Tue, 19 May 2015 15:25:54 +0200
-
-rspamd (0.9.1) unstable; urgency=low
-
-  * New release.
-
- -- Mikhail Gusarov <dottedmag@debian.org>  Sun, 17 May 2015 17:46:32 +0200
-
-rspamd (0.8.3) unstable; urgency=low
-
-  * New release.
-  * systemd socket-activated service.
-  * Bump Standards-Version, no changes required.
-
- -- Mikhail Gusarov <dottedmag@debian.org>  Sun, 08 Mar 2015 22:38:55 +0100
-
-rspamd (0.6.9) unstable; urgency=low
-
-  * Initial release (Closes: #683746)
-
- -- Mikhail Gusarov <dottedmag@debian.org>  Sun, 23 Mar 2014 19:04:13 +0100
+ -- Vsevolod Stakhov <vsevolod@highsecure.ru>  Fri, 14 Feb 2020 23:10:27 +0000
diff --git a/set-version.sh b/set-version.sh
new file mode 100755 (executable)
index 0000000..bd15b3a
--- /dev/null
@@ -0,0 +1,14 @@
+#!/bin/bash
+# Update the version after a new release.
+version=$1
+if ! [[ "$version" =~ ^[0-9]+.[0-9]+$ ]]; then
+    echo "Usage: $0 <major>.<minor>"
+    exit 1
+fi
+
+read major minor <<< "${version/./ }"
+sed -e "s/^\\(SET(RSPAMD_VERSION_MAJOR \\)[0-9]*)/\\1$major)/" \
+    -e "s/^\\(SET(RSPAMD_VERSION_MINOR \\)[0-9]*)/\\1$minor)/" \
+    -i CMakeLists.txt
+sed -e "1s/([0-9.]*)/($version)/" -i debian/changelog
+sed -e "s/^\\(Version: *\\)[0-9.]*$/\\1$version/" -i centos/rspamd.spec