Hello community,

here is the log from the commit of package docbook_5 for openSUSE:Factory 
checked in at 2016-07-01 09:54:54
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Comparing /work/SRC/openSUSE:Factory/docbook_5 (Old)
 and      /work/SRC/openSUSE:Factory/.docbook_5.new (New)
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Package is "docbook_5"

Changes:
--------
--- /work/SRC/openSUSE:Factory/docbook_5/docbook_5.changes      2015-05-15 
07:43:39.000000000 +0200
+++ /work/SRC/openSUSE:Factory/.docbook_5.new/docbook_5.changes 2016-07-01 
09:54:55.000000000 +0200
@@ -1,0 +2,6 @@
+Fri Jun 17 12:00:51 UTC 2016 - fv...@suse.com
+
+- Split documentation into -doc subpackage
+- Use newer sgml-spec
+
+-------------------------------------------------------------------

New:
----
  docbook_5.xml

++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Other differences:
------------------
++++++ docbook_5.spec ++++++
--- /var/tmp/diff_new_pack.e6bv3S/_old  2016-07-01 09:54:56.000000000 +0200
+++ /var/tmp/diff_new_pack.e6bv3S/_new  2016-07-01 09:54:56.000000000 +0200
@@ -1,7 +1,7 @@
 #
 # spec file for package docbook_5
 #
-# Copyright (c) 2015 SUSE LINUX GmbH, Nuernberg, Germany.
+# Copyright (c) 2016 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
@@ -22,11 +22,13 @@
 Group:          Productivity/Publishing/DocBook
 Version:        5.1CR3
 Release:        0
-# Requires:       libxml2
 BuildRequires:  fdupes
 BuildRequires:  sgml-skel
-PreReq:         /usr/bin/xmlcatalog sgml-skel
-PreReq:         sed grep awk
+Requires:       sgml-skel >= 0.7
+Requires(post): sgml-skel >= 0.7
+Requires(postun): sgml-skel >= 0.7
+# XML Catalog Entry
+Source1:        docbook_5.xml
 Source2:        docbook_5-README.SUSE
 # DocBook Specifications:
 Source3:        docbook-5.0-spec-cd-01.pdf
@@ -50,6 +52,14 @@
 spirit of DocBook while simultaneously removing inconsistencies that
 have arisen as a natural consequence of DocBook's long, slow evolution.
 
+%package doc
+Summary:        Documentation for %{name}
+Group:          Documentation/HTML
+BuildArch:      noarch
+
+%description doc
+The documentation for the DocBook 5.x specification (%schemaversions)
+
 %define INSTALL         install -m755 -s
 %define INSTALL_DIR     install -d -m755
 %define INSTALL_DATA    install -m644
@@ -68,6 +78,8 @@
 
 %prep
 %setup -n %{name} -c -T
+# Copy catalog
+cp -p %{S:1} .
 # Copy README
 cp -p %{S:2} .
 # Copy the DocBook Specifications:
@@ -82,55 +94,7 @@
 find . -type f | xargs chmod a-x
 
 %build
-# # build root catalog fragment
 xmlcatbin=/usr/bin/xmlcatalog
-CATALOG=%{name}.xml
-$xmlcatbin --create --noout $CATALOG
-
-# Iterate over all versions...
-for v in %{schemaversions}; do
-
-  docbookdir=%{xml_docbook_dtd_dir}/${v}
-
-  $xmlcatbin --noout --add "public" \
-     "-//OASIS//DTD DocBook XML ${v}//EN" \
-     "file://%{xml_docbook_dtd_dir}/${v}/docbook.dtd" ${CATALOG}
-
-  # We need to create lots of URIs...
-  for http in "http://www.oasis-open.org/docbook/xml"; \
-     "http://www.docbook.org/xml"; \
-     "http://docbook.org/xml"; ; do
-# DTDs
-   $xmlcatbin --noout --add "rewriteSystem" \
-     "${http}/${v}" \
-     "file://$docbookdir" $CATALOG
-   $xmlcatbin --noout --add "rewriteURI" \
-     "${http}/${v}" \
-     "file://$docbookdir" $CATALOG
-# RNG, RNG+XInclude
-   $xmlcatbin --noout --add "rewriteSystem" \
-     "${http}/${v}/rng/" \
-     "file://%{xml_docbook_rng_dir}/${v}/" ${CATALOG}
-   $xmlcatbin --noout --add "rewriteURI" \
-     "${http}/${v}/rng/" \
-     "file://%{xml_docbook_rng_dir}/${v}/" ${CATALOG}
-# XSD, XSD+XInclude
-   $xmlcatbin --noout --add "rewriteSystem" \
-      "${http}/${v}/xsd/" \
-      "file://%{xml_docbook_xsd_dir}/${v}/" ${CATALOG}
-   $xmlcatbin --noout --add "rewriteURI" \
-      "${http}/${v}/xsd/" \
-      "file://%{xml_docbook_xsd_dir}/${v}/" ${CATALOG}
-# Schematron
-   $xmlcatbin --noout --add "rewriteSystem" \
-      "${http}/${v}/sch/" \
-      "file://%{xml_docbook_sch_dir}/${v}/" ${CATALOG}
-   $xmlcatbin --noout --add "rewriteURI" \
-      "${http}/${v}/sch/" \
-      "file://%{xml_docbook_sch_dir}/${v}/" ${CATALOG}
-  done
-
-done
 
 # ---------------------
 # Build XML catalog files for each Schema
@@ -193,57 +157,14 @@
   done
 done
 
-%define FOR_ROOT_CAT for-catalog-%{name}-%{version}.xml
-CATALOG=etc/xml/$CATALOG
-rm -f %{FOR_ROOT_CAT}.tmp
-$xmlcatbin --noout --create %{FOR_ROOT_CAT}.tmp
-
-for v in %{schemaversions}; do
-
-  cat=%{xml_docbook_dtd_dir}/${v}/catalog.xml
-# DTDs
-  $xmlcatbin --noout --add "delegatePublic" \
-     "-//OASIS//DTD DocBook XML ${v}//EN" \
-     "file://%{xml_docbook_dtd_dir}/${v}/catalog.xml" \
-     %{FOR_ROOT_CAT}.tmp
-
-   for http in "http://www.oasis-open.org/docbook/xml"; \
-               "http://www.docbook.org/xml"; \
-               "http://docbook.org/xml"; ; do
-    $xmlcatbin --noout --add "delegateSystem" \
-      "${http}/${v}/dtd/" \
-      "file://%{xml_docbook_dtd_dir}/${v}/catalog.xml" \
-      %{FOR_ROOT_CAT}.tmp
-    $xmlcatbin --noout --add "delegateSystem" \
-      "${http}/${v}/rng/" \
-      "file://%{xml_docbook_rng_dir}/${v}/catalog.xml" \
-      %{FOR_ROOT_CAT}.tmp
-    $xmlcatbin --noout --add "delegateSystem" \
-      "${http}/${v}/xsd/" \
-      "file://%{xml_docbook_xsd_dir}/${v}/catalog.xml" \
-      %{FOR_ROOT_CAT}.tmp
-    $xmlcatbin --noout --add "delegateSystem" \
-      "${http}/${v}/sch/" \
-      "file://%{xml_docbook_sch_dir}/${v}/catalog.xml" \
-      %{FOR_ROOT_CAT}.tmp
-  done
-done
-
-# Create tag
-sed '/<catalog/a\
-  <group id="%{name}-%{version}">
-/<\/catalog/i\
-  </group>' \
-  %{FOR_ROOT_CAT}.tmp > %{FOR_ROOT_CAT}
-
 %install
 # Create installation structure
 %{INSTALL_DIR} $RPM_BUILD_ROOT%{xml_config_dir} \
                $RPM_BUILD_ROOT%{_bindir} \
                $RPM_BUILD_ROOT%{xml_docbook_style_dir}/upgrade
-cat_dir=%{buildroot}/etc/xml
+cat_dir=%{buildroot}/etc/xml/catalog.d
 %{INSTALL_DIR} $cat_dir
-%{INSTALL_DATA} %{FOR_ROOT_CAT} %{name}.xml $cat_dir
+%{INSTALL_DATA} %{name}.xml $cat_dir
 
 for v in %{schemaversions}; do
   # Create directories
@@ -276,31 +197,17 @@
 %fdupes $RPM_BUILD_ROOT
 
 %post
-# in case of an update, remove old
-if [ "2" = "$1" ]; then
-  /usr/bin/edit-xml-catalog --group --catalog /etc/xml/suse-catalog.xml \
-      --del %{name}-%{version} || true
-fi
-/usr/bin/edit-xml-catalog --group --catalog /etc/xml/suse-catalog.xml \
-      --add /etc/xml/%{FOR_ROOT_CAT}
+update-xml-catalog
 
 %postun
-# remove entries only on removal of file
-
-if [ "0" = "$1" -a ! -f %{xml_sysconf_dir}/%{FOR_ROOT_CAT} ] ; then
-  /usr/bin/edit-xml-catalog --group --catalog /etc/xml/suse-catalog.xml \
-      --del %{name}-%{version}
-fi
+update-xml-catalog
 
 %files
 %defattr(-, root, root)
-%config %{xml_sysconf_dir}/docbook_5.xml
-%config %{xml_sysconf_dir}/%{FOR_ROOT_CAT}
+%config %{xml_sysconf_dir}/catalog.d/docbook_5.xml
 %doc *README*
-%doc docbook-5.0-spec-cd-01.{pdf,html,xml}
 # Use the last version of DocBook:
-%doc docbook-5.0/docs/* docbook-%{lastschemaversion}/docbook.nvdl
-#%%{sgml_dir}/CATALOG.*
+%doc docbook-%{lastschemaversion}/docbook.nvdl
 %dir %{xml_docbook_dir}/schema
 %dir %{xml_docbook_dtd_dir}
 %dir %{xml_docbook_rng_dir}
@@ -318,7 +225,10 @@
 %{xml_docbook_rng_dir}/%{lastschemaversion}
 %{xml_docbook_sch_dir}/%{lastschemaversion}
 %{xml_docbook_xsd_dir}/%{lastschemaversion}
-
 %{_bindir}/db4-entities.pl
 
+%files doc
+%defattr(-, root, root)
+%doc docbook-5.0/docs/* docbook-5.0-spec-cd-01.{pdf,html,xml}
+
 %changelog


Reply via email to