From 04db065b8ec14b9d544c1d3b04d6a02ad22ed7c1 Mon Sep 17 00:00:00 2001 From: Nils Philippsen Date: Thu, 15 Nov 2007 15:44:49 +0000 Subject: [PATCH] explicitely enable building the gimp plugin in configure call reorder spec file sections --- xsane.spec | 30 +++++++++++++++++------------- 1 file changed, 17 insertions(+), 13 deletions(-) diff --git a/xsane.spec b/xsane.spec index 76b1e16..22ed166 100644 --- a/xsane.spec +++ b/xsane.spec @@ -52,7 +52,7 @@ installed to use this package. %{expand:%%define optflags %{optflags} -DGIMP_ENABLE_COMPAT_CRUFT=1} aclocal -I m4 autoconf -%configure +%configure --enable-gimp make LDFLAGS= mv src/xsane src/xsane-gimp @@ -82,6 +82,18 @@ install -m 0644 xsane.conf %{buildroot}%{_sysconfdir}/gimp/plugins.d/xsane.conf %clean rm -rf %{buildroot} +%post gimp +if [ -x "%{_sbindir}/gimp-plugin-mgr" ]; then + %{_sbindir}/gimp-plugin-mgr --install xsane +fi + +%preun gimp +if [ $1 = 0 ]; then + if [ -x "%{_sbindir}/gimp-plugin-mgr" ]; then + %{_sbindir}/gimp-plugin-mgr --uninstall xsane + fi +fi + %files -f XSANE.lang %defattr(-,root,root) %doc xsane.[A-Z]* @@ -101,19 +113,11 @@ rm -rf %{buildroot} %dir %{_sysconfdir}/gimp/plugins.d %config(noreplace) %{_sysconfdir}/gimp/plugins.d/xsane.conf -%post gimp -if [ -x "%{_sbindir}/gimp-plugin-mgr" ]; then - %{_sbindir}/gimp-plugin-mgr --install xsane -fi - -%preun gimp -if [ $1 = 0 ]; then - if [ -x "%{_sbindir}/gimp-plugin-mgr" ]; then - %{_sbindir}/gimp-plugin-mgr --uninstall xsane - fi -fi - %changelog +* Thu Oct 15 2007 Nils Philippsen +- explicitely enable building the gimp plugin in configure call +- reorder spec file sections + * Wed Sep 05 2007 Nils Philippsen - 0.994-4 - fix "Category" entries in desktop file