| 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 |