diff --git a/_service b/_service
deleted file mode 100644
index bd89074..0000000
--- a/_service
+++ /dev/null
@@ -1,16 +0,0 @@
-
-
- gromox
- git
- https://github.com/grommunio/gromox
- master
- gromox-1.10
- @PARENT_TAG@.@TAG_OFFSET@.%h
- gromox-?(.*)
-
-
- *.tar
- xz
-
-
-
diff --git a/debian.changelog b/debian.changelog
index 8600499..3856eda 100644
--- a/debian.changelog
+++ b/debian.changelog
@@ -1,4 +1,4 @@
-gromox (1.10.0.7c5fc88b-0) unstable; urgency=low
+gromox (1.13.6.07d462a2-0) unstable; urgency=low
* Initial package.
diff --git a/gromox-1.10.0.7c5fc88b.tar.xz b/gromox-1.10.0.7c5fc88b.tar.xz
deleted file mode 100644
index 34d9230..0000000
--- a/gromox-1.10.0.7c5fc88b.tar.xz
+++ /dev/null
@@ -1,3 +0,0 @@
-version https://git-lfs.github.com/spec/v1
-oid sha256:6d9e0c5c4378a56dd0deaa25bb33102f6e897594fd76754f9516db6adc2ac800
-size 1004608
diff --git a/gromox-1.13.tar.asc b/gromox-1.13.tar.asc
new file mode 100644
index 0000000..7f0f107
--- /dev/null
+++ b/gromox-1.13.tar.asc
@@ -0,0 +1,7 @@
+-----BEGIN PGP SIGNATURE-----
+
+iHUEABYKAB0WIQS8oMXDCcrFaedKkhz3bv5dDCI6jwUCYeVnnwAKCRD3bv5dDCI6
+j5aRAP48vzED4Ys/Q49huyQKDDRdrlC1iMZsTWipqhqVro0fRQD9EJOufKQfibzk
+VMPMpXLgLVYuI9TBlGmveC8g0qIh3g0=
+=Dt48
+-----END PGP SIGNATURE-----
diff --git a/gromox-1.13.tar.zst b/gromox-1.13.tar.zst
new file mode 100644
index 0000000..23dc90d
--- /dev/null
+++ b/gromox-1.13.tar.zst
@@ -0,0 +1,3 @@
+version https://git-lfs.github.com/spec/v1
+oid sha256:3ded099779f60b58211e1ba897450ee8df0d212ed799893ebb8a2f0cb892a5ce
+size 1915558
diff --git a/gromox.changes b/gromox.changes
index 11a9e96..02c3c7f 100644
--- a/gromox.changes
+++ b/gromox.changes
@@ -1,3 +1,18 @@
+-------------------------------------------------------------------
+Tue Jan 18 18:01:59 UTC 2022 - Jan Engelhardt
+
+- Update to release 1.13
+ * mt2exm: perform named property translation on folder
+ properties, message recipient properties and attachment
+ properties.
+ * pff2mt: support reading multi-value variable-length property
+ types, and obscure single-value types.
+ * kdb2mt: analyze Receive Folder Table and map inbox to inbox
+ when ``-s`` is used.
+ * pam_gromox: Additional service mode checks. One can now use
+ e.g. auth required pam_gromox.so service=chat in
+ /etc/pam.d/xyz to test for the CHAT privilege bit.
+
-------------------------------------------------------------------
Tue Dec 7 18:00:46 UTC 2021 - Jan Engelhardt
diff --git a/gromox.dsc b/gromox.dsc
index d335ac9..74d5d4b 100644
--- a/gromox.dsc
+++ b/gromox.dsc
@@ -1,7 +1,7 @@
Format: 1.0
Source: gromox
Architecture: any
-Version: 1.10.0.7c5fc88b
+Version: 1.13.6.07d462a2
DEBTRANSFORM-RELEASE: 1
Maintainer: Gromox
Homepage: https://gromox.com
diff --git a/gromox.spec b/gromox.spec
index f914b06..bc746a2 100644
--- a/gromox.spec
+++ b/gromox.spec
@@ -3,13 +3,14 @@
%define _libexecdir %_prefix/libexec
Name: gromox
-Version: 1.10.0.7c5fc88b
+Version: 1.13
Release: 0
Summary: Groupware server backend with RPC, IMAP,POP3, PHP-MAPI support
License: AGPL-3.0-or-later AND GPL-2.0-only AND GPL-3.0-or-later
Group: Productivity/Networking/Email/Servers
URL: https://grommunio.com/
-Source: %name-%version.tar.xz
+Source: https://github.com/grommunio/gromox/releases/download/gromox-%version/gromox-%version.tar.zst
+Source2: https://github.com/grommunio/gromox/releases/download/gromox-%version/gromox-%version.tar.asc
Source9: %name-rpmlintrc
BuildRequires: automake >= 1.11
BuildRequires: fdupes
@@ -29,7 +30,7 @@ BuildRequires: php8-devel
%else
BuildRequires: php-devel >= 7
%endif
-BuildRequires: xz
+BuildRequires: zstd
BuildRequires: group(gromox)
BuildRequires: pkgconfig(gumbo)
BuildRequires: pkgconfig(jsoncpp)
@@ -41,7 +42,11 @@ BuildRequires: pkgconfig(sqlite3)
BuildRequires: pkgconfig(zlib)
BuildRequires: user(gromox)
Requires: php-cli >= 7.4
+%if 0%{?suse_version}
Requires: php-mysql
+%else
+Requires: php-mysqlnd
+%endif
Requires: php-soap
Requires: w3m
Requires(pre): user(gromox)
@@ -65,11 +70,12 @@ grommunio-web. The grommunio appliance ships these essentials and has a
ready-to-run installation of Gromox.
%prep
-%autosetup -p1
+%setup -Tcq
+tar --use=zstd --strip=1 -xf "%{S:0}"
%build
autoreconf -fi
-%configure CFLAGS="%optflags -Og" CXXFLAGS="%optflags -Og"
+%configure
%make_build
%install
@@ -98,7 +104,7 @@ rm -fv "$b/%_libdir"/*.so
mkdir -p "$b/%_sysconfdir/%name" "$b/%_datadir/%name"
%fdupes %buildroot/%_prefix
-%global services gromox-adaptor.service gromox-delivery.service gromox-delivery-queue.service gromox-event.service gromox-http.service gromox-imap.service gromox-midb.service gromox-pop3.service gromox-timer.service gromox-zcore.service
+%global services gromox-delivery.service gromox-delivery-queue.service gromox-event.service gromox-http.service gromox-imap.service gromox-midb.service gromox-pop3.service gromox-timer.service gromox-zcore.service
%pre
%if 0%{?service_add_pre:1}