From 193c49b707eaf51258ccc3fed5873fe42d34af07 Mon Sep 17 00:00:00 2001 From: gbenson Date: Tue, 19 Jul 2005 15:11:39 +0000 Subject: [PATCH] Whoops, forgot database stuff for subpackages (like anyone'll notice) --- xalan-j2.spec | 16 ++++++++++++++-- 1 file changed, 14 insertions(+), 2 deletions(-) diff --git a/xalan-j2.spec b/xalan-j2.spec index 7cdcb72..bdf52e0 100644 --- a/xalan-j2.spec +++ b/xalan-j2.spec @@ -42,6 +42,8 @@ Group: Text Processing/Markup/XML Requires: java_cup, bcel, jlex, regexp, jaxp_parser_impl #Requires: /usr/sbin/update-alternatives #Provides: jaxp_transform_impl +Requires(post): java-gcj-compat >= 1.0.31 +Requires(postun): java-gcj-compat >= 1.0.31 %description xsltc The XSLT Compiler is a Java-based tool for compiling XSLT stylesheets into @@ -67,6 +69,8 @@ Summary: Demo for %{name} Group: Text Processing/Markup/XML Requires: %{name} = %{epoch}:%{version}-%{release}, servletapi5 BuildRequires: servletapi5 +Requires(post): java-gcj-compat >= 1.0.31 +Requires(postun): java-gcj-compat >= 1.0.31 %description demo Demonstrations and samples for %{name}. @@ -156,15 +160,23 @@ update-alternatives --install %{_javadir}/jaxp_transform_impl.jar \ update-alternatives --remove jaxp_transform_impl %{_javadir}/%{name}.jar } >/dev/null 2>&1 || : -#%post xsltc +%post xsltc #update-alternatives --install %{_javadir}/jaxp_transform_impl.jar \ # jaxp_transform_impl %{_javadir}/xsltc.jar 10 +%{_bindir}/rebuild-gcj-db -#%preun xsltc +%preun xsltc #{ # [ $1 = 0 ] || exit 0 # update-alternatives --remove jaxp_transform_impl %{_javadir}/xsltc.jar #} >/dev/null 2>&1 || : +%{_bindir}/rebuild-gcj-db + +%post demo +%{_bindir}/rebuild-gcj-db + +%postun demo +%{_bindir}/rebuild-gcj-db %post javadoc rm -f %{_javadocdir}/%{name}