diff --git a/cups.spec b/cups.spec index 30fcba3..c1cd600 100644 --- a/cups.spec +++ b/cups.spec @@ -7,7 +7,7 @@ Summary: Common Unix Printing System Name: cups Version: 1.3.10 -Release: 3%{?svn:.svn%{svn}}%{?dist} +Release: 4%{?svn:.svn%{svn}}%{?dist} License: GPLv2 Group: System Environment/Daemons Source: ftp://ftp.easysw.com/pub/cups/test//cups-%{version}%{?svn:svn-r%{svn}}-source.tar.bz2 @@ -341,7 +341,7 @@ exit 0 %triggerpostun -- %{name} < 1:1.3.10-3 if [ "$1" -gt 0 ]; then CONF=%{_sysconfdir}/cups/cupsd.conf - if ! grep -q ServerAlias "$CONF"; then + if ! grep -qiw ServerAlias "$CONF"; then cp -a "$CONF" "$CONF".rpmorig cat <<"EOF" >> "$CONF" @@ -476,7 +476,7 @@ rm -rf $RPM_BUILD_ROOT %{cups_serverbin}/daemon/cups-lpd %changelog -* Mon Apr 27 2009 Tim Waugh 1:1.3.10-3 +* Mon Apr 27 2009 Tim Waugh 1:1.3.10-4 - Adjust cupsd.conf by adding "ServerAlias *" automatically on upgrade (part of bug #497301). The default cupsd.conf now includes this line as well.