From e5dee461bec89daeb0e81446c7783bd8450ae24c Mon Sep 17 00:00:00 2001 From: Nils Philippsen Date: Fri, 10 Dec 2004 11:40:10 +0000 Subject: [PATCH] use xsane plugin (un)install script if available --- gimp.spec | 14 +++++++++++++- 1 file changed, 13 insertions(+), 1 deletion(-) diff --git a/gimp.spec b/gimp.spec index 83b2068..690f50d 100644 --- a/gimp.spec +++ b/gimp.spec @@ -16,7 +16,7 @@ Summary: The GNU Image Manipulation Program Name: gimp Version: 2.2 -Release: %{?prever:0.0.%{prever}.}1 +Release: %{?prever:0.0.%{prever}.}2 Epoch: 2 License: GPL, LGPL Group: Applications/Multimedia @@ -178,6 +178,15 @@ cat gimp-plugin-files gimp-all.lang > gimp.files %post /sbin/ldconfig /usr/bin/update-desktop-database %{_datadir}/applications +if [ -x %{_sbindir}/xsane-install-gimp-plugin ]; then + %{_sbindir}/xsane-install-gimp-plugin --install %{interfacever} +fi + +%preun +# Do this always, because interfacever could be different +if [ -x %{_sbindir}/xsane-install-gimp-plugin ]; then + %{_sbindir}/xsane-install-gimp-plugin --uninstall %{interfacever} +fi %postun /sbin/ldconfig @@ -295,6 +304,9 @@ fi %{_libdir}/pkgconfig/* %changelog +* Fri Dec 10 2004 Nils Philippsen +- use xsane plugin (un)install script if available + * Mon Nov 22 2004 Nils Philippsen - version 2.2-pre2