[openoffice.org-diafilter/el6] Resolves: rhbz#543203 build for RHEL-5

Caolan McNamara caolanm at fedoraproject.org
Thu May 26 14:07:44 UTC 2011


commit 2d070736f28dce60bf7d77ac24236bdef247defa
Author: Caolán McNamara <caolanm at redhat.com>
Date:   Thu May 26 15:07:32 2011 +0100

    Resolves: rhbz#543203 build for RHEL-5

 openoffice.org-diafilter.spec |   20 ++++++++++++++++++--
 1 files changed, 18 insertions(+), 2 deletions(-)
---
diff --git a/openoffice.org-diafilter.spec b/openoffice.org-diafilter.spec
index 7bbe3ac..7f30bd9 100644
--- a/openoffice.org-diafilter.spec
+++ b/openoffice.org-diafilter.spec
@@ -28,6 +28,22 @@ importing the "dia" diagram and shape formats. A gallery of the standard set of
 %prep
 %setup -q
 
+%pre
+if [ $1 -gt 1 ] ; then
+unopkg remove --shared mcnamara.caolan.diafilter || :
+fi
+
+%post
+unopkg add --shared --force --link %{baseinstdir}/extensions/diafilter.oxt || :
+
+%preun
+if [ $1 -eq 0 ] ; then
+unopkg remove --shared mcnamara.caolan.diafilter || :
+fi
+
+%postun
+unopkg list --shared > /dev/null 2>&1 || :
+
 %build
 . %{sdkinstdir}/setsdkenv_unix.sh
 DIA_SHAPES_DIR=/usr/share/dia/shapes make
@@ -48,5 +64,5 @@ rm -rf $RPM_BUILD_ROOT
 %doc README NEWS TODO gpl-3.0.txt lgpl-3.0.txt
 
 %changelog
-* Thu Aug 26 2010 Caolán McNamara <caolanm at redhat.com> - 1.6.0-1
-- Initial import
+* Thu May 26 2011 Caolán McNamara <caolanm at redhat.com> - 1.6.0-1
+- Resolves: rhbz#543203 build for RHEL-5


More information about the scm-commits mailing list