2007-04-19 Laszlo (Laca) Peter <[email protected]>
authorlaca
Thu, 19 Apr 2007 20:58:36 +0000
changeset 9761 3596ceacc183
parent 9760 bde25639c3d1
child 9762 e141fc170c52
2007-04-19 Laszlo (Laca) Peter <[email protected]> * 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.
ChangeLog
SUNWgnome-libs.spec
--- a/ChangeLog	Thu Apr 19 03:45:38 2007 +0000
+++ b/ChangeLog	Thu Apr 19 20:58:36 2007 +0000
@@ -1,3 +1,10 @@
+2007-04-19  Laszlo (Laca) Peter  <[email protected]>
+
+	* 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  <[email protected]>
 
         * libmusicbrainz-01-fixduration.diff:  Update patch to reflect
--- a/SUNWgnome-libs.spec	Thu Apr 19 03:45:38 2007 +0000
+++ b/SUNWgnome-libs.spec	Thu Apr 19 20:58:36 2007 +0000
@@ -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 - [email protected]
+- 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 - [email protected]
 - Add 2 new schema files to %files and %preun root.
 * Wed Dec 13 2006 - [email protected]