fix .spec file problems

This commit is contained in:
jvdias 2006-03-09 15:38:11 +00:00
parent 9a2afdb49c
commit 1ec97e1e7a

View File

@ -4,7 +4,7 @@
%endif %endif
Name: avahi Name: avahi
Version: 0.6.9 Version: 0.6.9
Release: 3 Release: 4
Summary: Local network service discovery Summary: Local network service discovery
Group: System Environment/Base Group: System Environment/Base
License: LGPL License: LGPL
@ -198,15 +198,18 @@ rm -rf $RPM_BUILD_ROOT
%post %post
/sbin/ldconfig /sbin/ldconfig
/sbin/chkconfig --add avahi-daemon >/dev/null 2>&1
/sbin/chkconfig --add avahi-dnsconfd >/dev/null 2>&1
if [ "$1" -eq 1 ]; then if [ "$1" -eq 1 ]; then
# Run avahi-daemon by default:
/sbin/chkconfig --add avahi-daemon >/dev/null 2>&1 || :;
# avahi-dnsconfd NOT run by default in any runlevel; add it
# so system-config-services can see it
/sbin/chkconfig --add avahi-dnsconfd >/dev/null 2>&1 || :;
# We should realy make dbus reload the system.d config here. Dunno how though. # We should realy make dbus reload the system.d config here. Dunno how though.
# kill -HUP `cat /var/run/messagebus.pid` ? # kill -HUP `cat /var/run/messagebus.pid` ?
if [ -s /etc/localtime ]; then if [ -s /etc/localtime ]; then
cp -fp /etc/localtime /etc/avahi/etc/localtime || :; cp -fp /etc/localtime /etc/avahi/etc/localtime || :;
fi; fi;
fi fi;
%postun %postun
/sbin/ldconfig /sbin/ldconfig
@ -311,6 +314,10 @@ fi
%endif %endif
%changelog %changelog
* Thu Mar 09 2006 Jason Vas Dias <jvdias@redhat.com> - 0.6.9-4
- fix scriptlet error introduced by last fix:
if user has disabled avahi-daemon, do not enable it during %post
* Wed Mar 08 2006 Bill Nottingham <notting@redhat.com> - 0.6.9-2 * Wed Mar 08 2006 Bill Nottingham <notting@redhat.com> - 0.6.9-2
- fix scriplet error during installer - fix scriplet error during installer
- move service-types* to the tools package (avoids multilib conflicts) - move service-types* to the tools package (avoids multilib conflicts)