Please review.

Index: ChangeLog
===================================================================
--- ChangeLog   (revision 11152)
+++ ChangeLog   (working copy)
@@ -1,3 +1,10 @@
+2007-04-19  Laszlo (Laca) Peter  <laca at sun.com>
+
+       * SUNWgnome-libs.spec: add postrun scripts that add/delete a
+         rewrite rule for the scrollkeeper dtd to /etc/xml/catalog,
+         so that libxml2 can find it locally and not try to download
+         it from the net, fixes 6457837.
+
 2007-04-19  Brian Cameron  <brian.cameron at sun.com>
 
         * libmusicbrainz-01-fixduration.diff:  Update patch to reflect
Index: SUNWgnome-libs.spec
===================================================================
--- SUNWgnome-libs.spec (revision 11152)
+++ SUNWgnome-libs.spec (working copy)
@@ -151,10 +151,21 @@
 rm -rf $RPM_BUILD_ROOT
 
 %post
+( echo 'xmlcatalog --noout --add "rewriteSystem" \' ;
+  echo '"http://scrollkeeper.sourceforge.net/dtds/scrollkeeper-omf-1.0"; \' ;
+  echo '"file://%{_datadir}/xml/scrollkeeper/dtds" %{_sysconfdir}/xml/catalog'
+) | $BASEDIR/lib/postrun -c JDS
+
 ( echo 'test -x /usr/bin/scrollkeeper-update || exit 0';
   echo '/usr/bin/scrollkeeper-update'
 ) | $BASEDIR/lib/postrun -b -u -c JDS
 
+%preun
+( echo 'xmlcatalog --noout --delete "rewriteSystem" \' ;
+  echo '"http://scrollkeeper.sourceforge.net/dtds/scrollkeeper-omf-1.0"; \' ;
+  echo '"file://%{_datadir}/xml/scrollkeeper/dtds" %{_sysconfdir}/xml/catalog'
+) | $BASEDIR/lib/postrun -c JDS
+
 %postun
 rm -rf $PKG_INSTALL_ROOT/var/lib/scrollkeeper
 
@@ -291,6 +302,10 @@
 %endif
 
 %changelog
+* Thu Apr 19 2007 - laca at sun.com
+- add postrun scripts that add/delete a rewrite rule for the scrollkeeper
+  dtd to /etc/xml/catalog, so that libxml2 can find it locally and not
+  try to download it from the net
 * Wed Jan 10 2007 - damien.carbery at sun.com
 - Add 2 new schema files to %files and %preun root.
 * Wed Dec 13 2006 - damien.carbery at sun.com



Reply via email to