From b4ed2b81eb52faa0717915b26c74fb75c0726e3c Mon Sep 17 00:00:00 2001 From: MSVSphere Packaging Team Date: Tue, 26 Nov 2024 15:51:14 +0300 Subject: [PATCH] import docbook-style-xsl-1.79.2-23.el10 --- .docbook-style-xsl.metadata | 2 + .gitignore | 2 + ...tyle-xsl-1.79.2-fix-gtk-doc-multilib.patch | 74 +++ ...style-xsl-non-recursive-string-subst.patch | 30 + SOURCES/docbook-style-xsl.Makefile | 52 ++ SOURCES/docbook-xsl-list-item-body.patch | 110 ++++ SOURCES/docbook-xsl-mandir.patch | 19 + SOURCES/docbook-xsl-marginleft.patch | 53 ++ SOURCES/docbook-xsl-newmethods.patch | 394 ++++++++++++ ...docbook-xsl-non-constant-expressions.patch | 25 + SOURCES/docbook-xsl-pagesetup.patch | 281 +++++++++ SPECS/docbook-style-xsl.spec | 588 ++++++++++++++++++ 12 files changed, 1630 insertions(+) create mode 100644 .docbook-style-xsl.metadata create mode 100644 .gitignore create mode 100644 SOURCES/docbook-style-xsl-1.79.2-fix-gtk-doc-multilib.patch create mode 100644 SOURCES/docbook-style-xsl-non-recursive-string-subst.patch create mode 100644 SOURCES/docbook-style-xsl.Makefile create mode 100644 SOURCES/docbook-xsl-list-item-body.patch create mode 100644 SOURCES/docbook-xsl-mandir.patch create mode 100644 SOURCES/docbook-xsl-marginleft.patch create mode 100644 SOURCES/docbook-xsl-newmethods.patch create mode 100644 SOURCES/docbook-xsl-non-constant-expressions.patch create mode 100644 SOURCES/docbook-xsl-pagesetup.patch create mode 100644 SPECS/docbook-style-xsl.spec diff --git a/.docbook-style-xsl.metadata b/.docbook-style-xsl.metadata new file mode 100644 index 0000000..78dd4e8 --- /dev/null +++ b/.docbook-style-xsl.metadata @@ -0,0 +1,2 @@ +e6d847ff26d46f5ab368e9dd76c95acf15c95a72 SOURCES/docbook-xsl-doc-1.79.2.tar.bz2 +fb4f60b3968777b5a794d1e1f9e5867b04517425 SOURCES/docbook-xsl-nons-1.79.2.tar.bz2 diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..1fb60d2 --- /dev/null +++ b/.gitignore @@ -0,0 +1,2 @@ +SOURCES/docbook-xsl-doc-1.79.2.tar.bz2 +SOURCES/docbook-xsl-nons-1.79.2.tar.bz2 diff --git a/SOURCES/docbook-style-xsl-1.79.2-fix-gtk-doc-multilib.patch b/SOURCES/docbook-style-xsl-1.79.2-fix-gtk-doc-multilib.patch new file mode 100644 index 0000000..46d54e2 --- /dev/null +++ b/SOURCES/docbook-style-xsl-1.79.2-fix-gtk-doc-multilib.patch @@ -0,0 +1,74 @@ +diff -urN docbook-xsl-nons-1.79.2/fo/autoidx.xsl docbook-xsl-nons-1.79.2.new/fo/autoidx.xsl +--- docbook-xsl-nons-1.79.2/fo/autoidx.xsl 2016-12-09 22:47:31.000000000 +0000 ++++ docbook-xsl-nons-1.79.2.new/fo/autoidx.xsl 2021-01-15 13:20:25.144862117 +0000 +@@ -295,7 +295,8 @@ + + + +- ++ ientry- ++ + + + +@@ -790,7 +791,10 @@ + + + +- ++ ientry- ++ ++ ++ + + + +@@ -852,7 +856,10 @@ + + + +- ++ ientry- ++ ++ ++ + + + +diff -urN docbook-xsl-nons-1.79.2/html/autoidx.xsl docbook-xsl-nons-1.79.2.new/html/autoidx.xsl +--- docbook-xsl-nons-1.79.2/html/autoidx.xsl 2016-12-09 22:47:30.000000000 +0000 ++++ docbook-xsl-nons-1.79.2.new/html/autoidx.xsl 2021-01-15 13:20:25.145862128 +0000 +@@ -306,7 +306,8 @@ + + + +- ++ ientry- ++ + + + +@@ -729,7 +730,10 @@ + + + +- ++ #ientry- ++ ++ ++ + + + +@@ -788,7 +792,10 @@ + + + +- ++ #ientry- ++ ++ ++ + + + diff --git a/SOURCES/docbook-style-xsl-non-recursive-string-subst.patch b/SOURCES/docbook-style-xsl-non-recursive-string-subst.patch new file mode 100644 index 0000000..ed302a9 --- /dev/null +++ b/SOURCES/docbook-style-xsl-non-recursive-string-subst.patch @@ -0,0 +1,30 @@ +Description: use EXSLT "replace" function when available + A recursive implementation of string.subst is problematic, + long strings with many matches will cause stack overflows. +Author: Peter De Wachter +Bug-Debian: https://bugs.debian.org/750593 + +--- docbook-xsl-1.78.1+dfsg.orig/docbook-xsl/lib/lib.xsl ++++ docbook-xsl-1.78.1+dfsg/docbook-xsl/lib/lib.xsl +@@ -10,7 +10,10 @@ + + This module implements DTD-independent functions + +- ******************************************************************** --> ++ ******************************************************************** --> + + + +@@ -56,6 +59,9 @@ + + + ++ ++ ++ + + + diff --git a/SOURCES/docbook-style-xsl.Makefile b/SOURCES/docbook-style-xsl.Makefile new file mode 100644 index 0000000..281656d --- /dev/null +++ b/SOURCES/docbook-style-xsl.Makefile @@ -0,0 +1,52 @@ +BINDIR = /usr/bin +DESTDIR = ..overridden in spec file.. + +all: install + +install: install-xsl install-img install-extensions install-misc install-epub + +install-xsl: + mkdir -p $(DESTDIR)/{common,eclipse,fo,html,htmlhelp/doc,javahelp,lib,template,xhtml,xhtml-1_1,manpages,profiling,highlighting,roundtrip,website} + cp common/*.dtd $(DESTDIR)/common + cp common/*.ent $(DESTDIR)/common + cp common/*.xml $(DESTDIR)/common + cp common/*.xsl $(DESTDIR)/common + cp eclipse/*.xsl $(DESTDIR)/eclipse + cp fo/*.xml $(DESTDIR)/fo + cp fo/*.xsl $(DESTDIR)/fo + cp html/*.xml $(DESTDIR)/html + cp html/*.xsl $(DESTDIR)/html + cp htmlhelp/*.xsl $(DESTDIR)/htmlhelp + cp javahelp/*.xsl $(DESTDIR)/javahelp + cp lib/*.xsl $(DESTDIR)/lib + cp template/*.xsl $(DESTDIR)/template + cp xhtml/*.xsl $(DESTDIR)/xhtml + cp xhtml-1_1/*.xsl $(DESTDIR)/xhtml-1_1 + cp manpages/*.xsl $(DESTDIR)/manpages + cp profiling/*.xsl $(DESTDIR)/profiling + cp highlighting/*.xml $(DESTDIR)/highlighting + cp highlighting/*.xsl $(DESTDIR)/highlighting + cp roundtrip/*.xml $(DESTDIR)/roundtrip + cp roundtrip/*.xsl $(DESTDIR)/roundtrip + cp roundtrip/*.dtd $(DESTDIR)/roundtrip + cp website/*.xsl $(DESTDIR)/website + +install-img: + mkdir -p $(DESTDIR)/images/callouts + cp images/*.gif $(DESTDIR)/images + cp images/*.png $(DESTDIR)/images + cp images/*.svg $(DESTDIR)/images + cp images/callouts/*.png $(DESTDIR)/images/callouts + cp images/callouts/*.gif $(DESTDIR)/images/callouts + cp images/callouts/*.svg $(DESTDIR)/images/callouts + +install-extensions: + mkdir -p $(DESTDIR)/extensions + cp -r extensions/* $(DESTDIR)/extensions + +install-epub: + mkdir -p $(DESTDIR)/epub + cp -r epub/* ${DESTDIR}/epub + +install-misc: + cp VERSION $(DESTDIR) diff --git a/SOURCES/docbook-xsl-list-item-body.patch b/SOURCES/docbook-xsl-list-item-body.patch new file mode 100644 index 0000000..a3d3819 --- /dev/null +++ b/SOURCES/docbook-xsl-list-item-body.patch @@ -0,0 +1,110 @@ +diff -ruNp docbook-xsl-1.74.0.orig/fo/lists.xsl docbook-xsl-1.74.0/fo/lists.xsl +--- docbook-xsl-1.74.0.orig/fo/lists.xsl 2008-08-06 13:32:46.000000000 +0200 ++++ docbook-xsl-1.74.0/fo/lists.xsl 2008-08-06 13:41:27.000000000 +0200 +@@ -248,9 +248,17 @@ + + + +- +- +- ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ + + + +@@ -446,10 +454,18 @@ + + + +- +- +- +- ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ + + + +@@ -925,9 +941,17 @@ + + + +- +- +- ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ + + + +@@ -951,9 +975,17 @@ + + + +- +- +- ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ + + + +@@ -1141,9 +1173,17 @@ + + + +- +- +- ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ + + + diff --git a/SOURCES/docbook-xsl-mandir.patch b/SOURCES/docbook-xsl-mandir.patch new file mode 100644 index 0000000..2e06b22 --- /dev/null +++ b/SOURCES/docbook-xsl-mandir.patch @@ -0,0 +1,19 @@ +diff -urNp docbook-xsl-1.76.1-orig/manpages/other.xsl docbook-xsl-1.76.1/manpages/other.xsl +--- docbook-xsl-1.76.1-orig/manpages/other.xsl 2010-08-27 05:14:52.000000000 +0200 ++++ docbook-xsl-1.76.1/manpages/other.xsl 2011-09-06 17:17:07.973737258 +0200 +@@ -595,7 +595,14 @@ manvolnum + Note: + (soelim stub) + +- ++ ++ ++ ++ ++ ++ ++ ++ + + + diff --git a/SOURCES/docbook-xsl-marginleft.patch b/SOURCES/docbook-xsl-marginleft.patch new file mode 100644 index 0000000..cb8d121 --- /dev/null +++ b/SOURCES/docbook-xsl-marginleft.patch @@ -0,0 +1,53 @@ +diff -urNp docbook-xsl-1.78.0-orig/fo/lists.xsl docbook-xsl-1.78.0/fo/lists.xsl +--- docbook-xsl-1.78.0-orig/fo/lists.xsl 2012-12-20 11:45:07.870679175 +0100 ++++ docbook-xsl-1.78.0/fo/lists.xsl 2012-12-20 11:55:31.440307881 +0100 +@@ -376,7 +376,7 @@ + + + +- ++ + + + +@@ -385,7 +385,7 @@ + + + +- em * 0.60 ++ em + + + +@@ -394,7 +394,7 @@ + + + +- em * 0.60 ++ em + + + +@@ -409,8 +409,6 @@ + 1em + + +- + +- + + + +diff -ruNp docbook-xsl-1.74.0.orig/fo/param.xsl docbook-xsl-1.74.0/fo/param.xsl +--- docbook-xsl-1.74.0.orig/fo/param.xsl 2008-06-02 01:06:18.000000000 +0200 ++++ docbook-xsl-1.74.0/fo/param.xsl 2008-08-06 13:32:46.000000000 +0200 +@@ -133,8 +133,8 @@ + + always + +- +- ++ ++ + false + + diff --git a/SOURCES/docbook-xsl-newmethods.patch b/SOURCES/docbook-xsl-newmethods.patch new file mode 100644 index 0000000..d5d4d84 --- /dev/null +++ b/SOURCES/docbook-xsl-newmethods.patch @@ -0,0 +1,394 @@ +diff -ruNp docbook-xsl-1.74.0.orig/html/docbook.xsl docbook-xsl-1.74.0/html/docbook.xsl +--- docbook-xsl-1.74.0.orig/html/docbook.xsl 2008-06-01 23:36:39.000000000 +0200 ++++ docbook-xsl-1.74.0/html/docbook.xsl 2008-08-06 13:37:35.000000000 +0200 +@@ -26,6 +26,7 @@ + + + ++ + + + +@@ -44,6 +45,7 @@ + + + ++ + + + +diff -ruNp docbook-xsl-1.74.0.orig/html/dtbl.xsl docbook-xsl-1.74.0/html/dtbl.xsl +--- docbook-xsl-1.74.0.orig/html/dtbl.xsl 1970-01-01 01:00:00.000000000 +0100 ++++ docbook-xsl-1.74.0/html/dtbl.xsl 2008-08-06 13:37:35.000000000 +0200 +@@ -0,0 +1,293 @@ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ " ++ ++ " is not a known unit. Applying scaling factor of 1 instead. ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ entering adjustColumnWidths( ++ ++ ++ ++ ) ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ total relative widths = ( ++ ++ ) ++ ++ ++ total absolute widths = ( ++ ++ ) ++ ++ ++ ++ ++ ++ ++ ++ all widths are absolute ++ ++ ++ ++ ++ ++ all widths are relative ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ result = ( ++ ++ ++ ++ ) ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ first.bad.column = ( ++ ++ ) ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ 1* ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ 0 ++ ++ ++ ++ ++ ++ ++ ++ ++ 0 ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ +diff -ruNp docbook-xsl-1.74.0.orig/html/table.xsl docbook-xsl-1.74.0/html/table.xsl +--- docbook-xsl-1.74.0.orig/html/table.xsl 2008-06-01 23:36:39.000000000 +0200 ++++ docbook-xsl-1.74.0/html/table.xsl 2008-08-06 13:37:35.000000000 +0200 +@@ -5,7 +5,8 @@ + xmlns:xtbl="xalan://com.nwalsh.xalan.Table" + xmlns:lxslt="http://xml.apache.org/xslt" + xmlns:ptbl="http://nwalsh.com/xslt/ext/xsltproc/python/Table" +- exclude-result-prefixes="doc stbl xtbl lxslt ptbl" ++ xmlns:dtbl="http://docbook.sourceforge.net/dtbl" ++ exclude-result-prefixes="doc stbl xtbl lxslt ptbl dtbl" + version='1.0'> + + +@@ -365,6 +366,9 @@ + + ++ ++ ++ + + + +@@ -389,6 +393,9 @@ + + ++ ++ ++ + + + +diff -ruNp docbook-xsl-1.74.0.orig/lib/dumpfragment.xsl docbook-xsl-1.74.0/lib/dumpfragment.xsl +--- docbook-xsl-1.74.0.orig/lib/dumpfragment.xsl 1970-01-01 01:00:00.000000000 +0100 ++++ docbook-xsl-1.74.0/lib/dumpfragment.xsl 2008-08-06 13:37:35.000000000 +0200 +@@ -0,0 +1,30 @@ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ =" ++ ++ " ++ ++ ++ ++ < ++ ++ > ++ ++ </ ++ > ++ ++ ++ +diff -urNp docbook-xsl-1.76.0-orig/html/param.xsl docbook-xsl-1.76.0/html/param.xsl +--- docbook-xsl-1.76.0-orig/html/param.xsl 2010-08-31 09:27:22.000000000 +0200 ++++ docbook-xsl-1.76.0/html/param.xsl 2010-09-06 11:01:07.916914161 +0200 +@@ -68,6 +68,7 @@ div.annotation-close { position: absolut + http://cdn.docbook.org/release/xsl/images/annot-close.png + http://cdn.docbook.org/release/xsl/images/annot-open.png + ++ + + http://cdn.docbook.org/release/xsl/script/AnchorPosition.js http://cdn.docbook.org/release/xsl/script/PopupWindow.js + diff --git a/SOURCES/docbook-xsl-non-constant-expressions.patch b/SOURCES/docbook-xsl-non-constant-expressions.patch new file mode 100644 index 0000000..0c3f6be --- /dev/null +++ b/SOURCES/docbook-xsl-non-constant-expressions.patch @@ -0,0 +1,25 @@ +diff -ruNp docbook-xsl-1.74.0.orig/fo/param.xsl docbook-xsl-1.74.0/fo/param.xsl +--- docbook-xsl-1.74.0.orig/fo/param.xsl 2008-08-06 13:32:46.000000000 +0200 ++++ docbook-xsl-1.74.0/fo/param.xsl 2008-08-06 13:38:36.000000000 +0200 +@@ -23,8 +23,8 @@ + always + always + +- +- ++ ++ + false + center + +@@ -334,8 +334,8 @@ set toc,title + bold + always + +- +- ++ ++ + 0pt + + diff --git a/SOURCES/docbook-xsl-pagesetup.patch b/SOURCES/docbook-xsl-pagesetup.patch new file mode 100644 index 0000000..2c9c62b --- /dev/null +++ b/SOURCES/docbook-xsl-pagesetup.patch @@ -0,0 +1,281 @@ +diff -ruNp docbook-xsl-1.74.0.orig/fo/pagesetup.xsl docbook-xsl-1.74.0/fo/pagesetup.xsl +--- docbook-xsl-1.74.0.orig/fo/pagesetup.xsl 2008-06-01 23:36:39.000000000 +0200 ++++ docbook-xsl-1.74.0/fo/pagesetup.xsl 2008-08-06 13:31:11.000000000 +0200 +@@ -1697,45 +1697,99 @@ + + + +- +- +- proportional-column-width( +- +- header +- +- +- +- +- +- ) +- +- +- +- +- proportional-column-width( +- +- header +- +- +- +- +- +- ) +- +- +- +- +- proportional-column-width( +- +- header +- +- +- +- +- +- ) +- +- ++ ++ ++ ++ ++ ++ header ++ ++ ++ ++ ++ ++ % ++ ++ ++ ++ ++ ++ ++ proportional-column-width( ++ ++ header ++ ++ ++ ++ ++ ++ ) ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ header ++ ++ ++ ++ ++ ++ % ++ ++ ++ ++ ++ ++ ++ proportional-column-width( ++ ++ header ++ ++ ++ ++ ++ ++ ) ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ header ++ ++ ++ ++ ++ ++ % ++ ++ ++ ++ ++ ++ ++ proportional-column-width( ++ ++ header ++ ++ ++ ++ ++ ++ ) ++ ++ ++ ++ + + + +@@ -2021,45 +2066,99 @@ + + + +- +- +- proportional-column-width( +- +- footer +- +- +- +- +- +- ) +- +- +- +- +- proportional-column-width( +- +- footer +- +- +- +- +- +- ) +- +- +- +- +- proportional-column-width( +- +- footer +- +- +- +- +- +- ) +- +- ++ ++ ++ ++ ++ ++ footer ++ ++ ++ ++ ++ ++ % ++ ++ ++ ++ ++ ++ ++ proportional-column-width( ++ ++ footer ++ ++ ++ ++ ++ ++ ) ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ footer ++ ++ ++ ++ ++ ++ % ++ ++ ++ ++ ++ ++ ++ proportional-column-width( ++ ++ footer ++ ++ ++ ++ ++ ++ ) ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ footer ++ ++ ++ ++ ++ ++ % ++ ++ ++ ++ ++ ++ ++ proportional-column-width( ++ ++ footer ++ ++ ++ ++ ++ ++ ) ++ ++ ++ ++ + + + diff --git a/SPECS/docbook-style-xsl.spec b/SPECS/docbook-style-xsl.spec new file mode 100644 index 0000000..3276c6b --- /dev/null +++ b/SPECS/docbook-style-xsl.spec @@ -0,0 +1,588 @@ +Name: docbook-style-xsl +Version: 1.79.2 +Release: 23%{?dist} + +Summary: Norman Walsh's XSL stylesheets for DocBook XML + +License: LicenseRef-DMIT +URL: https://github.com/docbook/xslt10-stylesheets + +Provides: docbook-xsl = %{version} +Requires: docbook-dtd-xml +# xml-common was using /usr/share/xml until 0.6.3-8. +Requires: xml-common >= 0.6.3-8 +# libxml2 required because of usage of /usr/bin/xmlcatalog +Requires(post): libxml2 >= 2.4.8 +Requires(postun): libxml2 >= 2.4.8 +# PassiveTeX before 1.21 can't handle the newer stylesheets. +Conflicts: passivetex < 1.21 +BuildRequires: make + + +BuildArch: noarch +Source0: https://github.com/docbook/xslt10-stylesheets/releases/download/release%2F{%version}/docbook-xsl-nons-%{version}.tar.bz2 +Source1: %{name}.Makefile +Source2: https://github.com/docbook/xslt10-stylesheets/releases/download/release%2F{%version}/docbook-xsl-doc-%{version}.tar.bz2 + + +#Avoid proportional-column-width for passivetex (bug #176766). +Patch1: docbook-xsl-pagesetup.patch +#Hard-code the margin-left work around to expect passivetex (bug #113456). +Patch2: docbook-xsl-marginleft.patch +#fix of #161619 - adjustColumnWidths now available +Patch3: docbook-xsl-newmethods.patch +#change a few non-constant expressions to constant - needed for passivetex(#366441) +Patch4: docbook-xsl-non-constant-expressions.patch +#added fixes for passivetex extension and list-item-body(#161371) +Patch5: docbook-xsl-list-item-body.patch +#workaround missing mandir section problem (#727251) +Patch6: docbook-xsl-mandir.patch +#Non-recursive string.subst that doesn't kill smb.conf.5 generation +Patch7: docbook-style-xsl-non-recursive-string-subst.patch +#Fix multilib problems with gtk-doc documentation +#https://github.com/docbook/xslt10-stylesheets/issues/54 +Patch8: docbook-style-xsl-1.79.2-fix-gtk-doc-multilib.patch + +%description +These XSL stylesheets allow you to transform any DocBook XML document to +other formats, such as HTML, FO, and XHMTL. They are highly customizable. + + +%prep +%setup -c -T -n docbook-xsl-%{version} +tar jxf %{SOURCE0} +mv docbook-xsl-nons-%{version}/* . +pushd .. +tar jxf %{SOURCE2} +popd +%patch1 -p1 -b .pagesetup +%patch2 -p1 -b .marginleft +%patch3 -p1 -b .newmethods +%patch4 -p1 -b .nonconstant +%patch5 -p1 -b .listitembody +%patch6 -p1 -b .mandir +%patch7 -p2 -b .non-recursive-subst +%patch8 -p1 -b .gtk-doc-multilib + +cp -p %{SOURCE1} Makefile + +# fix of non UTF-8 files rpmlint warnings +for fhtml in $(find ./doc -name '*.html' -type f) +do + iconv -f ISO-8859-1 -t UTF-8 "$fhtml" -o "$fhtml".tmp + mv -f "$fhtml".tmp "$fhtml" + sed -i 's/charset=ISO-8859-1/charset=UTF-8/' "$fhtml" +done + +for f in $(find -name "*'*") +do + mv -v "$f" $(echo "$f" | tr -d "'") +done + + +%build + + +%install +DESTDIR=$RPM_BUILD_ROOT +rm -rf $RPM_BUILD_ROOT +make install BINDIR=$DESTDIR%{_bindir} DESTDIR=$DESTDIR%{_datadir}/sgml/docbook/xsl-stylesheets-%{version} +cp -a VERSION.xsl $DESTDIR%{_datadir}/sgml/docbook/xsl-stylesheets-%{version}/VERSION.xsl +ln -s xsl-stylesheets-%{version} \ + $DESTDIR%{_datadir}/sgml/docbook/xsl-stylesheets + +# Don't ship the extensions (bug #177256). +rm -rf $DESTDIR%{_datadir}/sgml/docbook/xsl-stylesheets/extensions/* + + +%files +%doc BUGS +%doc README +%doc TODO +%doc doc +%{_datadir}/sgml/docbook/xsl-stylesheets-%{version} +%{_datadir}/sgml/docbook/xsl-stylesheets + + +%post +CATALOG=%{_sysconfdir}/xml/catalog +%{_bindir}/xmlcatalog --noout --add "rewriteSystem" \ + "http://cdn.docbook.org/release/xsl-nons/%{version}" \ + "file://%{_datadir}/sgml/docbook/xsl-stylesheets-%{version}" $CATALOG +%{_bindir}/xmlcatalog --noout --add "rewriteURI" \ + "http://cdn.docbook.org/release/xsl-nons/%{version}" \ + "file://%{_datadir}/sgml/docbook/xsl-stylesheets-%{version}" $CATALOG +%{_bindir}/xmlcatalog --noout --add "rewriteSystem" \ + "http://cdn.docbook.org/release/xsl-nons/current/" \ + "file://%{_datadir}/sgml/docbook/xsl-stylesheets-%{version}" $CATALOG +%{_bindir}/xmlcatalog --noout --add "rewriteURI" \ + "http://cdn.docbook.org/release/xsl-nons/current/" \ + "file://%{_datadir}/sgml/docbook/xsl-stylesheets-%{version}" $CATALOG +#keep the old one sourceforge URIs at least temporarily +%{_bindir}/xmlcatalog --noout --add "rewriteSystem" \ + "http://docbook.sourceforge.net/release/xsl/current" \ + "file://%{_datadir}/sgml/docbook/xsl-stylesheets-%{version}" $CATALOG +%{_bindir}/xmlcatalog --noout --add "rewriteURI" \ + "http://docbook.sourceforge.net/release/xsl/current" \ + "file://%{_datadir}/sgml/docbook/xsl-stylesheets-%{version}" $CATALOG + + + +%postun +# remove entries only on removal of package +if [ "$1" = 0 ]; then + CATALOG=%{_sysconfdir}/xml/catalog + %{_bindir}/xmlcatalog --noout --del \ + "file://%{_datadir}/sgml/docbook/xsl-stylesheets-%{version}" $CATALOG +fi + +%changelog +* Mon Jun 24 2024 Troy Dawson - 1.79.2-23 +- Bump release for June 2024 mass rebuild + +* Wed Jan 24 2024 Fedora Release Engineering - 1.79.2-22 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_40_Mass_Rebuild + +* Fri Jan 19 2024 Fedora Release Engineering - 1.79.2-21 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_40_Mass_Rebuild + +* Mon Oct 23 2023 Ondrej Sloup - 1.79.2-20 +- Update license tag to the SPDX format + +* Wed Jul 19 2023 Fedora Release Engineering - 1.79.2-19 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_39_Mass_Rebuild + +* Thu Jan 19 2023 Fedora Release Engineering - 1.79.2-18 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_38_Mass_Rebuild + +* Thu Jul 21 2022 Fedora Release Engineering - 1.79.2-17 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_37_Mass_Rebuild + +* Thu Jan 20 2022 Fedora Release Engineering - 1.79.2-16 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_36_Mass_Rebuild + +* Wed Jul 21 2021 Fedora Release Engineering - 1.79.2-15 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_35_Mass_Rebuild + +* Tue Jan 26 2021 Fedora Release Engineering - 1.79.2-14 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_34_Mass_Rebuild + +* Fri Jan 15 2021 David King - 1.79.2-13 +- Fix gtk-doc multilib failures + +* Mon Jul 27 2020 Fedora Release Engineering - 1.79.2-12 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_33_Mass_Rebuild + +* Tue Jan 28 2020 Fedora Release Engineering - 1.79.2-11 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_32_Mass_Rebuild + +* Wed Jul 24 2019 Fedora Release Engineering - 1.79.2-10 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_31_Mass_Rebuild + +* Thu Jan 31 2019 Fedora Release Engineering - 1.79.2-9 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_30_Mass_Rebuild + +* Thu Jul 12 2018 Fedora Release Engineering - 1.79.2-8 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_29_Mass_Rebuild + +* Wed Feb 07 2018 Fedora Release Engineering - 1.79.2-7 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_28_Mass_Rebuild + +* Wed Sep 13 2017 Alexander Bokovoy - 1.79.2-6 +- Use non-recursive string.subst to allow building large documents like smb.conf.5 + +* Wed Jul 26 2017 Fedora Release Engineering - 1.79.2-5 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Mass_Rebuild + +* Fri Feb 10 2017 Fedora Release Engineering - 1.79.2-4 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_26_Mass_Rebuild + +* Tue Jan 03 2017 Ondrej Vasik - 1.79.2-3 +- keep old sourceforge entries at least temporarily (#1409587) + +* Mon Jan 02 2017 Ondrej Vasik - 1.79.2-2 +- update xmlcatalog entries to docbook.org cdn + +* Mon Jan 02 2017 Ondrej Vasik - 1.79.2-1 +- new upstream release 1.79.2 +- upstream moved to github + +* Fri Jul 08 2016 Ondrej Vasik - 1.79.1-1 +- new upstream release 1.79.1 + +* Wed Feb 03 2016 Fedora Release Engineering - 1.78.1-5 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_24_Mass_Rebuild + +* Wed Jun 17 2015 Fedora Release Engineering - 1.78.1-4 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_23_Mass_Rebuild + +* Sat Jun 07 2014 Fedora Release Engineering - 1.78.1-3 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_Mass_Rebuild + +* Mon Jul 29 2013 Ondrej Vasik 1.78.1-2 +- use DMIT (modified MIT) as a license for the + stylesheets (#988715) + +* Mon Mar 18 2013 Ondrej Vasik 1.78.1-1 +- new upstream release 1.78.1 + +* Wed Feb 13 2013 Fedora Release Engineering - 1.78.0-2 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_19_Mass_Rebuild + +* Thu Dec 20 2012 Ondrej Vasik 1.78.0-1 +- new upstream release 1.78.0 + +* Wed Jul 18 2012 Fedora Release Engineering - 1.77.1-3 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_18_Mass_Rebuild + +* Tue Jun 5 2012 Ondrej Vasik 1.77.1-2 +- ship VERSION.xsl file (#829014) + +* Tue Jun 5 2012 Ondrej Vasik 1.77.1-1 +- new stable upstream release 1.77.1 +- defuzz patches + +* Fri Jan 13 2012 Fedora Release Engineering - 1.76.1-5 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_17_Mass_Rebuild + +* Tue Sep 6 2011 Ondrej Vasik 1.76.1-4 +- revert previous change, workaround the mandir links issue + in buildroot (#727251) + +* Mon Aug 29 2011 Ondrej Vasik 1.76.1-3 +- make man.output.in.separate.dir "on" by default (#727251) + +* Tue Feb 08 2011 Fedora Release Engineering - 1.76.1-2 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_15_Mass_Rebuild + +* Tue Nov 02 2010 Ondrej Vasik 1.76.1-1 +- new upstream release 1.76.1 + +* Mon Sep 06 2010 Ondrej Vasik 1.76.0-1 +- new upstream release 1.76.0 + +* Tue May 04 2010 Ondrej Vasik 1.75.2-6 +- ship eclipse help stylesheets(#588613) + +* Fri Dec 18 2009 Ondrej Vasik 1.75.2-5 +- comment patches purpose +- License Copyright only + +* Fri Jul 24 2009 Fedora Release Engineering - 1.75.2-4 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_12_Mass_Rebuild + +* Thu Jul 23 2009 Ondrej Vasik 1.75.2-3 +- upstream changed changed doc tarball after release + (empty reference pdf file in old tarball) + +* Wed Jul 22 2009 Ondrej Vasik 1.75.2-2 +- upstream changed tarballs after release + +* Tue Jul 21 2009 Ondrej Vasik 1.75.2-1 +- New upstream release 1.75.2 + +* Thu May 28 2009 Ondrej Vasik 1.75.1-1 +- New upstream release 1.75.1 + +* Mon May 11 2009 Ondrej Vasik 1.75.0-1 +- New upstream release 1.75.0 +- update marginleft patch + +* Wed Mar 11 2009 Ondrej Vasik 1.74.3-1 +- New upstream release 1.74.3 + +* Tue Feb 24 2009 Fedora Release Engineering - 1.74.2-3 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_11_Mass_Rebuild + +* Mon Feb 23 2009 Ondrej Vasik 1.74.2-2 +- updated Makefile: do ship .svg images(#486849), xsl + stylesheets for website, xhtml-1_1, docbook -> epub + convertor + +* Fri Feb 20 2009 Ondrej Vasik 1.74.2-1 +- New upstream release 1.74.2 + +* Wed Feb 18 2009 Ondrej Vasik 1.74.1-1 +- New upstream release, removed included patches + +* Wed Feb 11 2009 Ondrej Vasik 1.74.0-7 +- fix broken varlistentry (#479683) + +* Mon Feb 02 2009 Ondrej Vasik 1.74.0-6 +- fix improper localization for rtl languages, thanks + Muayyad Alsadi(#475077) + +* Wed Jan 28 2009 Ondrej Vasik 1.74.0-5 +- fix xsl stylesheets for rtl languages(#475077) + +* Fri Dec 12 2008 Ondrej Vasik 1.74.0-4 +- Author_Group "" merged between "" + and "" (#473019) + +* Wed Aug 06 2008 Kamil Dudka 1.74.0-3 +- Rediffed all patches to work with patch --fuzz=0 + +* Wed Aug 06 2008 Kamil Dudka 1.74.0-2 +- Tiny changes in docbook-xsl-newmethods.patch to work with xalan + (#452867) + +* Tue Jun 03 2008 Ondrej Vasik 1.74.0-1 +- New upstream release 1.74.0, adapted patches + +* Fri Dec 14 2007 Ondrej Vasik 1.73.2-9 +- added fixes for passivetex extension and list-item-body + (#161371) + +* Tue Dec 11 2007 Ondrej Vasik 1.73.2-8 +- remove entries from xmlcatalog only on removal of package + (required because of the change with droping release + -caused drop of catalog entries during update) + +* Tue Dec 04 2007 Ondrej Vasik 1.73.2-7 +- change a few non-constant expressions to constant that + could now be handled by passivetex(#366441) + +* Mon Dec 03 2007 Ondrej Vasik 1.73.2-6 +- fixed docbook-xsl-pagesetup.patch to follow Norman Walsh's + documentation for nonpassivetex processing(#307001) + +* Tue Nov 27 2007 Ondrej Vasik 1.73.2-5 +- convert all html files in doc to UTF-8 in prep + (latest rpmlint gives warnings) +- no longer using release in style-xsl dir(#389231) + +* Tue Nov 06 2007 Ondrej Vasik 1.73.2-4 +- Merge review(#225704) +- spec file modified to follow guidelines + +* Wed Oct 24 2007 Ondrej Vasik 1.73.2-3 +- rpmlint check +- fixed License Tag, Requires and some cosmetic issues + +* Fri Sep 7 2007 Ondrej Vasik 1.73.2-2 +- Added PreReq of libxml2(#253962) + +* Wed Sep 5 2007 Ondrej Vasik 1.73.2-1 +- new upstream version + +* Thu Aug 30 2007 Ondrej Vasik 1.73.1-2 +- removed patch for #249294(included in new version other way) + +* Wed Aug 29 2007 Ondrej Vasik 1.73.1-1 +- new upstream version(fixing some bugs) +- small new-methods patch change + +* Mon Jul 23 2007 Ondrej Vasik 1.73.0-2 +- fixed manpages/docbook.xsl failure(Tim Waugh,#249294) + +* Mon Jul 23 2007 Ondrej Vasik 1.73.0-1 +- update to latest upstream version +- patch changes because of rejects + +* Mon Jun 18 2007 Ondrej Vasik 1.72.0-3 +- patch fixing #161619 taken from upstream + +* Wed Jan 24 2007 Tomas Mraz 1.72.0-2 +- Install missing *.ent from common. + +* Tue Jan 23 2007 Tim Waugh 1.72.0-1 +- 1.72.0. + +* Fri Jan 19 2007 Tomas Mraz 1.71.1-2 +- Add new wordml and especially highlighting (which is referenced + from html) subdirs to Makefile. + +* Fri Jan 19 2007 Tim Waugh 1.71.1-1 +- 1.71.1. No longer seem to need lists patch. Removed out of date sp + patch. + +* Wed Jul 12 2006 Jesse Keating - 1.69.1-5.1 +- rebuild + +* Tue Jan 24 2006 Tim Waugh 1.69.1-5 +- Don't ship docsrc/* (bug #177256). +- Don't ship the extensions (bug #177256). + +* Thu Jan 19 2006 Tim Waugh 1.69.1-4 +- Better 'lists' patch (bug #161371). + +* Thu Jan 19 2006 Tim Waugh 1.69.1-3 +- Apply patch to fix simpara manpage output, which asciidoc tends to use + (bug #175592). + +* Tue Jan 3 2006 Tim Waugh 1.69.1-2 +- Patches from W. Michael Petullo: + - Fix lists blocking (bug #161371). + - Avoid proportional-column-width for passivetex (bug #176766). + +* Fri Dec 09 2005 Jesse Keating +- rebuilt + +* Fri Aug 12 2005 Tim Waugh 1.69.1-1 +- 1.69.1. + +* Mon Jul 18 2005 Tim Waugh 1.69.0-1 +- 1.69.0. + +* Mon Feb 14 2005 Tim Waugh 1.68.1-1 +- 1.68.1. + +* Wed Feb 9 2005 Tim Waugh 1.68.0-1 +- 1.68.0. + +* Wed Dec 8 2004 Tim Waugh 1.67.2-2 +- Prevent expressions in passivetex output from index.xsl (bug #142229). + +* Thu Dec 2 2004 Tim Waugh 1.67.2-1 +- 1.67.2. +- No longer need nbsp or listblock patches. + +* Mon Nov 22 2004 Tim Waugh 1.67.0-3 +- Avoid non-ASCII in generated man pages. + +* Wed Nov 10 2004 Tim Waugh 1.67.0-1 +- 1.67.0. + +* Tue Nov 2 2004 Tim Waugh 1.66.1-1 +- 1.66.1 (bug #133586). + +* Fri Jun 4 2004 Tim Waugh 1.65.1-2 +- Fix strange filenames (bug #125311). + +* Tue Mar 9 2004 Tim Waugh 1.65.1-1 +- 1.65.1. + +* Mon Mar 1 2004 Tim Waugh 1.65.0-1 +- 1.65.0. + +* Fri Feb 13 2004 Elliot Lee +- rebuilt + +* Tue Jan 20 2004 Tim Waugh 1.64.1-6 +- Fix last margin-left fix (bug #113456). +- Reduce instances of itemized/ordered lists having misalignments. + +* Sun Jan 18 2004 Tim Waugh 1.64.1-5 +- And another (bug #113456). + +* Thu Jan 15 2004 Tim Waugh 1.64.1-4 +- Fixed another instance of bug #113456 in lists layout. + +* Wed Jan 14 2004 Tim Waugh 1.64.1-3 +- Hard-code the margin-left work around to expect passivetex (bug #113456). + +* Wed Dec 24 2003 Tim Waugh 1.64.1-2 +- Another manpage fix. + +* Fri Dec 19 2003 Tim Waugh 1.64.1-1 +- 1.64.1. + +* Thu Dec 18 2003 Tim Waugh 1.64.0-2 +- Another manpage fix. + +* Tue Dec 16 2003 Tim Waugh 1.64.0-1 +- 1.64.0. + +* Fri Dec 12 2003 Tim Waugh 1.62.4-3 +- Use the fr.xml from 1.62.1 (bug #111989). + +* Thu Dec 11 2003 Tim Waugh 1.62.4-2 +- Manpages fixes. + +* Thu Dec 11 2003 Tim Waugh 1.62.4-1 +- 1.62.4. +- No longer need hyphens patch. +- Avoid expressions in margin-left attributes, since passivetex does not + understand them. + +* Fri Jul 4 2003 Tim Waugh 1.61.2-2.1 +- Rebuilt. + +* Fri Jul 4 2003 Tim Waugh 1.61.2-2 +- Rebuilt. + +* Fri May 23 2003 Tim Waugh 1.61.2-1 +- 1.61.2. + +* Sun May 18 2003 Tim Waugh 1.61.1-1 +- 1.61.1. + +* Fri May 9 2003 Tim Waugh 1.61.0-1 +- Prevent hyphenation-character confusing passivetex. +- 1.61.0. + +* Thu Mar 6 2003 Tim Waugh 1.60.1-1 +- 1.60.1. + +* Wed Jan 22 2003 Tim Powers +- rebuilt + +* Mon Dec 2 2002 Tim Waugh 1.58.1-1 +- 1.58.1. +- No longer need marker patch. + +* Mon Nov 4 2002 Tim Waugh 1.57.0-2 +- Ship profiling directory (bug #77191). + +* Tue Oct 22 2002 Tim Waugh 1.57.0-1 +- 1.57.0. + +* Wed Oct 16 2002 Tim Waugh 1.56.1-1 +- 1.56.1. +- Use value-of not copy-of for fo:marker content. +- Conflict with passivetex < 1.21. + +* Fri Jun 21 2002 Tim Powers +- automated rebuild + +* Thu May 23 2002 Tim Powers +- automated rebuild + +* Wed May 1 2002 Tim Waugh 1.50.0-1 +- 1.50.0. + +* Thu Feb 21 2002 Tim Waugh 1.49-1 +- 1.49. +- Rebuild in new environment. + +* Fri Feb 1 2002 Tim Waugh 1.48-4 +- Put URIs instead of pathnames in the XML catalog. + +* Thu Jan 17 2002 Tim Waugh 1.48-3 +- Back to /usr/share/sgml. + +* Wed Jan 09 2002 Tim Powers 1.48-2 +- automated rebuild + +* Mon Jan 7 2002 Tim Waugh 1.48-1 +- 1.48. + +* Sat Dec 8 2001 Tim Waugh 1.47-2 +- Conflict with PassiveTeX before 1.11. + +* Tue Oct 16 2001 Tim Waugh 1.47-1 +- 1.47-experimental. + +* Tue Oct 9 2001 Tim Waugh 1.45-2 +- Fix unversioned symlink. + +* Mon Oct 8 2001 Tim Waugh 1.45-1 +- XML Catalog entries. +- Move files to /usr/share/xml. + +* Mon Oct 1 2001 Tim Waugh 1.45-0.1 +- 1.45. +- Built for Red Hat Linux. + +* Tue Jun 26 2001 Chris Runge +- 1.40 + +* Sat Jun 09 2001 Chris Runge +- added extensions and additional doc +- bin added to doc; the Perl files are for Win32 Perl and so need some + conversion first + +* Fri Jun 08 2001 Chris Runge +- Initial RPM (based on docbook-style-dsssl RPM) +- note: no catalog right now (I don't know how to do it; and not sure why + it is necessary)