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 - fvogt@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 '/