From 31e6bcf9bed236c20f5576102bee22d77ccfa522 Mon Sep 17 00:00:00 2001 From: Takuya ASADA Date: Thu, 5 Dec 2019 21:05:14 +0900 Subject: [PATCH] dist/redhat: fix rpmbuild error on Fedora 31 Same as scylladb/scylla-ami#53, it seems like rpm macro %systemd_postun requires one argument starting from Fedora 31, otherwise it causes the error. The solution is passing systemd unit name just like %systemd_post and %systemd_preun. see: https://lists.fedoraproject.org/archives/list/devel@lists.fedoraproject.org/thread/TU3T2ZYY67SMAJFR2TD4HY6SCPPDVS5V/ Fixes #87 Signed-off-by: Takuya ASADA Message-Id: <20191205120514.9382-1-syuu@scylladb.com> --- dist/redhat/scylla-jmx.spec.mustache | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/dist/redhat/scylla-jmx.spec.mustache b/dist/redhat/scylla-jmx.spec.mustache index 714ea6b..ef96ac4 100644 --- a/dist/redhat/scylla-jmx.spec.mustache +++ b/dist/redhat/scylla-jmx.spec.mustache @@ -46,7 +46,7 @@ fi %systemd_preun scylla-jmx.service %postun -%systemd_postun +%systemd_postun scylla-jmx.service %clean rm -rf $RPM_BUILD_ROOT