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 <syuu@scylladb.com>
Message-Id: <20191205120514.9382-1-syuu@scylladb.com>
This commit is contained in:
Takuya ASADA 2019-12-05 21:05:14 +09:00 committed by Avi Kivity
parent d8c47603d9
commit 31e6bcf9be
1 changed files with 1 additions and 1 deletions

View File

@ -46,7 +46,7 @@ fi
%systemd_preun scylla-jmx.service
%postun
%systemd_postun
%systemd_postun scylla-jmx.service
%clean
rm -rf $RPM_BUILD_ROOT