comparison pidgin.spec.in @ 17182:618a3748ff64

merge of '6a857845ed772173ecc2083603f0d661eb52c68a' and 'f806da14ec2d87cd6650b921eaeed3c6d6587598'
author Richard Laager <rlaager@wiktel.com>
date Mon, 21 May 2007 20:58:23 +0000
parents 8ee93c68ced0
children 99a2add7c4f2
comparison
equal deleted inserted replaced
16937:e42309469a4a 17182:618a3748ff64
67 %endif 67 %endif
68 %endif 68 %endif
69 69
70 # For some reason perl isn't always automatically detected as a requirement :( 70 # For some reason perl isn't always automatically detected as a requirement :(
71 Requires: perl 71 Requires: perl
72
73 Requires(pre): GConf2
74 Requires(post): GConf2
75 Requires(preun): GConf2
72 76
73 Obsoletes: gaim 77 Obsoletes: gaim
74 Provides: gaim 78 Provides: gaim
75 79
76 %package devel 80 %package devel
294 if [ "$1" -gt 1 -a -n "`which gconftool-2 2>/dev/null`" ]; then 298 if [ "$1" -gt 1 -a -n "`which gconftool-2 2>/dev/null`" ]; then
295 export GCONF_CONFIG_SOURCE=`gconftool-2 --get-default-source` 299 export GCONF_CONFIG_SOURCE=`gconftool-2 --get-default-source`
296 if [ -f %{_sysconfdir}/gconf/schemas/purple.schemas ]; then 300 if [ -f %{_sysconfdir}/gconf/schemas/purple.schemas ]; then
297 gconftool-2 --makefile-uninstall-rule \ 301 gconftool-2 --makefile-uninstall-rule \
298 %{_sysconfdir}/gconf/schemas/purple.schemas >/dev/null || : 302 %{_sysconfdir}/gconf/schemas/purple.schemas >/dev/null || :
299 killall -HUP gconfd-2 || : 303 killall -HUP gconfd-2 &> /dev/null || :
300 fi 304 fi
301 fi 305 fi
302 306
303 %post 307 %post
304 if [ -n "`which gconftool-2 2>/dev/null`" ]; then 308 if [ -n "`which gconftool-2 2>/dev/null`" ]; then
305 export GCONF_CONFIG_SOURCE=`gconftool-2 --get-default-source` 309 export GCONF_CONFIG_SOURCE=`gconftool-2 --get-default-source`
306 gconftool-2 --makefile-install-rule \ 310 gconftool-2 --makefile-install-rule \
307 %{_sysconfdir}/gconf/schemas/purple.schemas > /dev/null || : 311 %{_sysconfdir}/gconf/schemas/purple.schemas > /dev/null || :
308 killall -HUP gconfd-2 || : 312 killall -HUP gconfd-2 &> /dev/null || :
309 fi 313 fi
310 touch --no-create %{_datadir}/icons/hicolor || : 314 touch --no-create %{_datadir}/icons/hicolor || :
311 %{_bindir}/gtk-update-icon-cache --quiet %{_datadir}/icons/hicolor || : 315 %{_bindir}/gtk-update-icon-cache --quiet %{_datadir}/icons/hicolor || :
312 316
313 %post -n libpurple -p /sbin/ldconfig 317 %post -n libpurple -p /sbin/ldconfig
317 %preun 321 %preun
318 if [ "$1" -eq 0 -a -n "`which gconftool-2 2>/dev/null`" ]; then 322 if [ "$1" -eq 0 -a -n "`which gconftool-2 2>/dev/null`" ]; then
319 export GCONF_CONFIG_SOURCE=`gconftool-2 --get-default-source` 323 export GCONF_CONFIG_SOURCE=`gconftool-2 --get-default-source`
320 gconftool-2 --makefile-uninstall-rule \ 324 gconftool-2 --makefile-uninstall-rule \
321 %{_sysconfdir}/gconf/schemas/purple.schemas > /dev/null || : 325 %{_sysconfdir}/gconf/schemas/purple.schemas > /dev/null || :
322 killall -HUP gconfd-2 || : 326 killall -HUP gconfd-2 &> /dev/null || :
323 fi 327 fi
324 328
325 %postun 329 %postun
326 touch --no-create %{_datadir}/icons/hicolor || : 330 touch --no-create %{_datadir}/icons/hicolor || :
327 %{_bindir}/gtk-update-icon-cache --quiet %{_datadir}/icons/hicolor || : 331 %{_bindir}/gtk-update-icon-cache --quiet %{_datadir}/icons/hicolor || :
441 %{_libdir}/libgnt.so 445 %{_libdir}/libgnt.so
442 446
443 %endif 447 %endif
444 448
445 %changelog 449 %changelog
450 * Thu May 10 2007 Stu Tomlinson <stu@nosnilmot.com>
451 - Add scriptlet Requires for GConf2 to fix schema installation
452 - Silence harmless errors when gconfd-2 is not running at install time
453
446 * Thu May 3 2007 Stu Tomlinson <stu@nosnilmot.com> 454 * Thu May 3 2007 Stu Tomlinson <stu@nosnilmot.com>
447 - Add missing BuildRequires: startup-notification-devel, if you really 455 - Add missing BuildRequires: startup-notification-devel, if you really
448 need to build on a distro without it use --without startupnotification 456 need to build on a distro without it use --without startupnotification
449 - Add BuildRequires: libSM-devel, libXScrnSaver-devel for distros with 457 - Add BuildRequires: libSM-devel, libXScrnSaver-devel for distros with
450 modular X. For those without, build with --without modularx 458 modular X. For those without, build with --without modularx