templates/standard-daemon: Devel package does not exist: move code for infopages installation/removal to the main package scriplets

This commit is contained in:
Davide Madrisan 2011-12-16 22:55:11 +01:00
parent 18548f2e30
commit 3541fe9cd9
2 changed files with 12 additions and 12 deletions

View File

@ -39,6 +39,10 @@ Changes in version 1.8.1
* templates/standard - Davide Madrisan:
Devel package does not exist: fix calls of the rpm scriplets.
* templates/standard-daemon - Davide Madrisan:
Devel package does not exist: move code for infopages installation/removal
to the main package scriplets.
--------------------------------------------------------------------------------
Changes in version 1.8.0

View File

@ -64,6 +64,10 @@ if [ $1 -eq 1 ]; then
\ /sbin/chkconfig --add <daemon_name>
\ /sbin/service <daemon_name> start
fi
@if:infopages
## modify the infopage name as required
%install_info %{name}.info
@fi:infopages
exit 0
%preun
@ -71,6 +75,10 @@ if [ $1 -eq 0 ]; then
\ /sbin/service <daemon_name> stop &>/dev/null || :
\ /sbin/chkconfig --del <daemon_name>
fi
@if:infopages
## modify the infopage name as required
%uninstall_info %{name}.info
@fi:infopages
exit 0
%postun
@ -79,18 +87,6 @@ if [ $1 -ge 1 ]; then
fi
exit 0
@if:infopages
%post devel
## modify the infopage name as required
%install_info %{name}.info
exit 0
%preun devel
## modify the infopage name as required
%uninstall_info %{name}.info
exit 0
@fi:infopages
@if:i18n
%files -f %{name}.lang
@else:i18n