From c5934f920395a36d09c9b5c31ef05c686a265710 Mon Sep 17 00:00:00 2001 From: baizg1107 Date: Thu, 16 Dec 2021 17:21:49 +0800 Subject: [PATCH] fix booth@.service missing instance name --- booth.spec | 16 +++++++++++----- 1 file changed, 11 insertions(+), 5 deletions(-) diff --git a/booth.spec b/booth.spec index b5a1a5f..74ba1ad 100644 --- a/booth.spec +++ b/booth.spec @@ -4,7 +4,7 @@ # Disable automatic compilation of Python files in extra directories %global _python_bytecompile_extra 0 -%global specver 3 +%global specver 4 %global boothver 1.0 # set following to the actual commit or, for final release, concatenate # "boothver" macro to "v" (will yield a tag per the convention) @@ -36,9 +36,9 @@ Name: booth Version: %{boothver} -Release: %{boothrel}%{dist}.2 +Release: %{boothrel}.2 Summary: Ticket Manager for Multi-site Clusters -License: GPLv2 and MIT +License: GPLv2+ and MIT Url: https://github.com/%{github_owner}/%{name} Source0: https://github.com/%{github_owner}/%{name}/archive/%{commit}/%{name}-%{shortcommit}.tar.gz Patch0: 0000-test-remove-superfluous-shebangs-for-import-only-mod.patch @@ -123,10 +123,10 @@ as an arbitrator. %systemd_post booth@.service booth-arbitrator.service %preun arbitrator -%systemd_preun booth@.service booth-arbitrator.service +%systemd_preun booth-arbitrator.service %postun arbitrator -%systemd_postun_with_restart booth@.service booth-arbitrator.service +%systemd_postun_with_restart booth-arbitrator.service %package site Summary: Booth support for running as a full-fledged site @@ -186,6 +186,8 @@ install -D -m 644 -t %{buildroot}/%{_mandir}/man8 \ ln -s boothd.8 %{buildroot}/%{_mandir}/man8/booth.8 cp -a -t %{buildroot}/%{_pkgdocdir} \ -- ChangeLog README-testing conf/booth.conf.example +install -d -m 0755 $RPM_BUILD_ROOT%_sysconfdir/booth +install -D -m 0644 -p conf/booth.conf.example $RPM_BUILD_ROOT%_sysconfdir/booth/booth.conf # drop what we don't package anyway (COPYING added via tarball-relative path) rm -rf %{buildroot}/%{_initrddir}/booth-arbitrator rm -rf %{buildroot}/%{_pkgdocdir}/README.upgrade-from-v0.1 @@ -219,6 +221,7 @@ VERBOSE=1 make check # configuration %dir %{_sysconfdir}/booth %exclude %{_sysconfdir}/booth/booth.conf.example +%{_sysconfdir}/booth/booth.conf %files arbitrator %{_unitdir}/booth@.service @@ -248,5 +251,8 @@ VERBOSE=1 make check /usr/lib/ocf/resource.d/booth/sharedrsc %changelog +* Thu Dec 16 2021 baizhonggui - 1.0-4 +- Fix booth@.service missing instance name. + * Fri Oct 30 2020 jiangxinyu - 1.0-3 - Init booth project -- Gitee