- Fix fixme for the prereq preamble value
- It seems systemd prints error on adding the @ services to macros so do not do that OBS-URL: https://build.opensuse.org/package/show/Java:packages/tomcat?expand=0&rev=84
This commit is contained in:
parent
122197843b
commit
c29a84fd86
@ -1,3 +1,10 @@
|
||||
-------------------------------------------------------------------
|
||||
Thu Apr 7 13:01:07 UTC 2016 - tchvatal@suse.com
|
||||
|
||||
- Fix fixme for the prereq preamble value
|
||||
- It seems systemd prints error on adding the @ services to macros
|
||||
so do not do that
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Thu Mar 31 08:18:39 UTC 2016 - dmacvicar@suse.de
|
||||
|
||||
|
12
tomcat.spec
12
tomcat.spec
@ -110,9 +110,7 @@ Requires: jakarta-commons-dbcp
|
||||
Requires: jakarta-commons-logging
|
||||
Requires: jakarta-commons-pool
|
||||
Requires: log4j
|
||||
# FIXME: use proper Requires(pre/post/preun/...)
|
||||
PreReq: %fillup_prereq
|
||||
Requires(post): systemd-rpm-macros
|
||||
Requires(post): %fillup_prereq
|
||||
Requires(pre): %{_sbindir}/groupadd
|
||||
Requires(pre): %{_sbindir}/useradd
|
||||
Recommends: libtcnative-1-0 >= 1.1.24
|
||||
@ -599,22 +597,18 @@ EOF
|
||||
%{_sbindir}/groupadd -r tomcat 2>/dev/null || :
|
||||
%{_sbindir}/useradd -c "Apache Tomcat" -g tomcat \
|
||||
-s /bin/sh -r -d %{homedir} tomcat 2>/dev/null || :
|
||||
%service_add_pre %{name}.service
|
||||
%service_add_pre %{name}@.service
|
||||
%service_add_pre %{name}.service
|
||||
|
||||
%post
|
||||
%service_add_post %{name}.service
|
||||
%service_add_post %{name}@.service
|
||||
%fillup_only
|
||||
%{fillup_only %{name}}
|
||||
%{_bindir}/systemd-tmpfiles --create >/dev/null 2>&1 || :
|
||||
|
||||
%preun
|
||||
%service_del_preun %{name}.service
|
||||
%service_del_preun %{name}@.service
|
||||
|
||||
%postun
|
||||
%service_del_postun %{name}.service
|
||||
%service_del_postun %{name}@.service
|
||||
|
||||
%pre jsvc
|
||||
%service_add_pre %{name}-jsvc.service
|
||||
|
Loading…
Reference in New Issue
Block a user