Hello community, here is the log from the commit of package sgml-skel for openSUSE:Factory checked in at 2015-07-20 15:13:46 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Comparing /work/SRC/openSUSE:Factory/sgml-skel (Old) and /work/SRC/openSUSE:Factory/.sgml-skel.new (New) ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Package is "sgml-skel" Changes: -------- --- /work/SRC/openSUSE:Factory/sgml-skel/sgml-skel.changes 2014-12-03 22:52:24.000000000 +0100 +++ /work/SRC/openSUSE:Factory/.sgml-skel.new/sgml-skel.changes 2015-07-20 15:13:47.000000000 +0200 @@ -1,0 +2,12 @@ +Wed Jul 15 13:08:00 UTC 2015 - [email protected] + +- only create suse-catalog.xml at installation time; not in the update case. +- Add Requires(post): libxml2-tools for xmlcatalog. + +------------------------------------------------------------------- +Tue Jul 14 14:37:24 UTC 2015 - [email protected] + +- %post: create %{_sysconfdir}/xml/suse-catalog.xml to avoid validation + errors if in case no other DTD is installed [bsc#936596]. + +------------------------------------------------------------------- ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Other differences: ------------------ ++++++ sgml-skel.spec ++++++ --- /var/tmp/diff_new_pack.SVUFCY/_old 2015-07-20 15:13:48.000000000 +0200 +++ /var/tmp/diff_new_pack.SVUFCY/_new 2015-07-20 15:13:48.000000000 +0200 @@ -1,7 +1,7 @@ # # spec file for package sgml-skel # -# Copyright (c) 2014 SUSE LINUX Products GmbH, Nuernberg, Germany. +# Copyright (c) 2015 SUSE Linux GmbH, Nuernberg, Germany. # # All modifications and additions to the file contributed by third parties # remain the property of their copyright owners, unless otherwise agreed @@ -25,12 +25,12 @@ Version: 0.6 Release: 0 Requires: libxml2 +Requires(post): libxml2-tools PreReq: /bin/awk PreReq: /bin/mv PreReq: /bin/chmod # URL: Source0: http://www.suse.de/~ke/%{name}/%{name}-%{version}.tar.bz2 -# :pserver:[email protected]:/cvs/docbook-tools Source1: docbook-tools/sgml-common/bin/install-catalog.in Source2: edit-xml-catalog.sh Patch: sgml-skel-regcat.diff @@ -90,6 +90,14 @@ %clean rm -fr $RPM_BUILD_ROOT +%post +# only create suse-catalog.xml at installation time; not in the update case +if [ "$1" = 1 ]; then + [ -r %{_sysconfdir}/xml/suse-catalog.xml ] \ + || xmlcatalog --create | sed 's:/>:>\ +</catalog>:' >%{_sysconfdir}/xml/suse-catalog.xml +fi + %files %defattr(-, root, root) %doc AUTHORS COPYING NEWS README*
