install VERSION as VERSION.xsl and add a compatibility symlink to VERSION [release 1.78.1-2mamba;Sat Apr 27 2013]
This commit is contained in:
parent
ab8db05b98
commit
2bddbf612c
@ -1,2 +1,4 @@
|
||||
# docbook-xsl
|
||||
|
||||
These XSL stylesheets allow you to transform any DocBook XML document to other formats, such as HTML, FO, and XHMTL. They are highly customizable.
|
||||
|
||||
|
134
docbook-xsl-listblock.patch
Normal file
134
docbook-xsl-listblock.patch
Normal file
@ -0,0 +1,134 @@
|
||||
--- docbook-xsl-1.64.1/fo/lists.xsl.listblock 2004-01-20 11:12:15.000000000 +0000
|
||||
+++ docbook-xsl-1.64.1/fo/lists.xsl 2004-01-20 11:38:17.000000000 +0000
|
||||
@@ -112,9 +112,18 @@
|
||||
</fo:block>
|
||||
</fo:list-item-label>
|
||||
<fo:list-item-body start-indent="body-start()">
|
||||
- <fo:block>
|
||||
- <xsl:apply-templates/>
|
||||
- </fo:block>
|
||||
+ <xsl:choose>
|
||||
+ <xsl:when test="child::*[1][local-name()='para' or
|
||||
+ local-name()='simpara' or
|
||||
+ local-name()='formalpara']">
|
||||
+ <xsl:apply-templates/>
|
||||
+ </xsl:when>
|
||||
+ <xsl:otherwise>
|
||||
+ <fo:block>
|
||||
+ <xsl:apply-templates/>
|
||||
+ </fo:block>
|
||||
+ </xsl:otherwise>
|
||||
+ </xsl:choose>
|
||||
</fo:list-item-body>
|
||||
</xsl:variable>
|
||||
|
||||
@@ -222,9 +231,18 @@
|
||||
</fo:block>
|
||||
</fo:list-item-label>
|
||||
<fo:list-item-body start-indent="body-start()">
|
||||
- <fo:block>
|
||||
- <xsl:apply-templates/>
|
||||
- </fo:block>
|
||||
+ <xsl:choose>
|
||||
+ <xsl:when test="child::*[1][local-name()='para' or
|
||||
+ local-name()='simpara' or
|
||||
+ local-name()='formalpara']">
|
||||
+ <xsl:apply-templates/>
|
||||
+ </xsl:when>
|
||||
+ <xsl:otherwise>
|
||||
+ <fo:block>
|
||||
+ <xsl:apply-templates/>
|
||||
+ </fo:block>
|
||||
+ </xsl:otherwise>
|
||||
+ </xsl:choose>
|
||||
</fo:list-item-body>
|
||||
</xsl:variable>
|
||||
|
||||
@@ -397,9 +415,18 @@
|
||||
</fo:block>
|
||||
</fo:list-item-label>
|
||||
<fo:list-item-body start-indent="body-start()">
|
||||
- <fo:block>
|
||||
- <xsl:apply-templates select="listitem"/>
|
||||
- </fo:block>
|
||||
+ <xsl:choose>
|
||||
+ <xsl:when test="child::*[1][local-name()='para' or
|
||||
+ local-name()='simpara' or
|
||||
+ local-name()='formalpara']">
|
||||
+ <xsl:apply-templates/>
|
||||
+ </xsl:when>
|
||||
+ <xsl:otherwise>
|
||||
+ <fo:block>
|
||||
+ <xsl:apply-templates select="listitem"/>
|
||||
+ </fo:block>
|
||||
+ </xsl:otherwise>
|
||||
+ </xsl:choose>
|
||||
</fo:list-item-body>
|
||||
</fo:list-item>
|
||||
</xsl:template>
|
||||
@@ -766,9 +793,18 @@
|
||||
</fo:block>
|
||||
</fo:list-item-label>
|
||||
<fo:list-item-body start-indent="body-start()">
|
||||
- <fo:block>
|
||||
- <xsl:apply-templates/>
|
||||
- </fo:block>
|
||||
+ <xsl:choose>
|
||||
+ <xsl:when test="child::*[1][local-name()='para' or
|
||||
+ local-name()='simpara' or
|
||||
+ local-name()='formalpara']">
|
||||
+ <xsl:apply-templates/>
|
||||
+ </xsl:when>
|
||||
+ <xsl:otherwise>
|
||||
+ <fo:block>
|
||||
+ <xsl:apply-templates/>
|
||||
+ </fo:block>
|
||||
+ </xsl:otherwise>
|
||||
+ </xsl:choose>
|
||||
</fo:list-item-body>
|
||||
</fo:list-item>
|
||||
</xsl:template>
|
||||
@@ -792,9 +828,18 @@
|
||||
</fo:block>
|
||||
</fo:list-item-label>
|
||||
<fo:list-item-body start-indent="body-start()">
|
||||
- <fo:block>
|
||||
- <xsl:apply-templates/>
|
||||
- </fo:block>
|
||||
+ <xsl:choose>
|
||||
+ <xsl:when test="child::*[1][local-name()='para' or
|
||||
+ local-name()='simpara' or
|
||||
+ local-name()='formalpara']">
|
||||
+ <xsl:apply-templates/>
|
||||
+ </xsl:when>
|
||||
+ <xsl:otherwise>
|
||||
+ <fo:block>
|
||||
+ <xsl:apply-templates/>
|
||||
+ </fo:block>
|
||||
+ </xsl:otherwise>
|
||||
+ </xsl:choose>
|
||||
</fo:list-item-body>
|
||||
</fo:list-item>
|
||||
</xsl:template>
|
||||
@@ -942,9 +987,18 @@
|
||||
</fo:block>
|
||||
</fo:list-item-label>
|
||||
<fo:list-item-body start-indent="body-start()">
|
||||
- <fo:block>
|
||||
- <xsl:apply-templates/>
|
||||
- </fo:block>
|
||||
+ <xsl:choose>
|
||||
+ <xsl:when test="child::*[1][local-name()='para' or
|
||||
+ local-name()='simpara' or
|
||||
+ local-name()='formalpara']">
|
||||
+ <xsl:apply-templates/>
|
||||
+ </xsl:when>
|
||||
+ <xsl:otherwise>
|
||||
+ <fo:block>
|
||||
+ <xsl:apply-templates/>
|
||||
+ </fo:block>
|
||||
+ </xsl:otherwise>
|
||||
+ </xsl:choose>
|
||||
</fo:list-item-body>
|
||||
</fo:list-item>
|
||||
</xsl:template>
|
73
docbook-xsl-marginleft.patch
Normal file
73
docbook-xsl-marginleft.patch
Normal file
@ -0,0 +1,73 @@
|
||||
--- docbook-xsl-1.64.1/fo/pagesetup.xsl.marginleft 2003-12-17 00:57:36.000000000 +0000
|
||||
+++ docbook-xsl-1.64.1/fo/pagesetup.xsl 2004-01-18 16:29:32.000000000 +0000
|
||||
@@ -34,29 +34,11 @@
|
||||
margin-left="{$page.margin.outer} - {$title.margin.left}"
|
||||
-->
|
||||
<xsl:param name="margin.left.outer">
|
||||
- <xsl:choose>
|
||||
- <xsl:when test="$passivetex.extensions != 0">
|
||||
- <xsl:value-of select="$page.margin.outer"/>
|
||||
- </xsl:when>
|
||||
- <xsl:otherwise>
|
||||
- <xsl:value-of select="$page.margin.outer"/>
|
||||
- <xsl:text> - </xsl:text>
|
||||
- <xsl:value-of select="$title.margin.left"/>
|
||||
- </xsl:otherwise>
|
||||
- </xsl:choose>
|
||||
+ <xsl:value-of select="$page.margin.outer"/>
|
||||
</xsl:param>
|
||||
|
||||
<xsl:param name="margin.left.inner">
|
||||
- <xsl:choose>
|
||||
- <xsl:when test="$passivetex.extensions != 0">
|
||||
- <xsl:value-of select="$page.margin.inner"/>
|
||||
- </xsl:when>
|
||||
- <xsl:otherwise>
|
||||
- <xsl:value-of select="$page.margin.inner"/>
|
||||
- <xsl:text> - </xsl:text>
|
||||
- <xsl:value-of select="$title.margin.left"/>
|
||||
- </xsl:otherwise>
|
||||
- </xsl:choose>
|
||||
+ <xsl:value-of select="$page.margin.inner"/>
|
||||
</xsl:param>
|
||||
|
||||
<xsl:template name="setup.pagemasters">
|
||||
--- docbook-xsl-1.64.1/fo/lists.xsl.marginleft 2003-12-04 20:13:46.000000000 +0000
|
||||
+++ docbook-xsl-1.64.1/fo/lists.xsl 2004-01-18 16:31:51.000000000 +0000
|
||||
@@ -303,7 +303,7 @@
|
||||
</xsl:when>
|
||||
<xsl:when test="@termlength">
|
||||
<xsl:variable name="termlength.is.number">
|
||||
- <xsl:value-of select="@termlength + 0"/>
|
||||
+ <xsl:value-of select="@termlength"/>
|
||||
</xsl:variable>
|
||||
<xsl:choose>
|
||||
<xsl:when test="$termlength.is.number = 'NaN'">
|
||||
@@ -312,7 +312,7 @@
|
||||
</xsl:when>
|
||||
<xsl:otherwise>
|
||||
<xsl:value-of select="@termlength"/>
|
||||
- <xsl:text>em * 0.60</xsl:text>
|
||||
+ <xsl:text>em</xsl:text>
|
||||
</xsl:otherwise>
|
||||
</xsl:choose>
|
||||
</xsl:when>
|
||||
@@ -321,7 +321,7 @@
|
||||
<xsl:with-param name="terms" select="varlistentry/term"/>
|
||||
<xsl:with-param name="maxlength" select="$variablelist.max.termlength"/>
|
||||
</xsl:call-template>
|
||||
- <xsl:text>em * 0.60</xsl:text>
|
||||
+ <xsl:text>em</xsl:text>
|
||||
</xsl:otherwise>
|
||||
</xsl:choose>
|
||||
</xsl:variable>
|
||||
@@ -348,8 +348,7 @@
|
||||
|processing-instruction()[not(preceding-sibling::varlistentry)]"/>
|
||||
|
||||
<fo:list-block id="{$id}"
|
||||
- provisional-distance-between-starts=
|
||||
- "{$termlength}+{$label-separation}"
|
||||
+ provisional-distance-between-starts="{$termlength}"
|
||||
provisional-label-separation="{$label-separation}"
|
||||
xsl:use-attribute-sets="list.block.spacing">
|
||||
<xsl:apply-templates mode="vl.as.list"
|
39
docbook-xsl.Makefile
Normal file
39
docbook-xsl.Makefile
Normal file
@ -0,0 +1,39 @@
|
||||
BINDIR = /usr/bin
|
||||
DESTDIR = ..overridden in spec file..
|
||||
|
||||
all: install
|
||||
|
||||
install: install-xsl install-img install-extensions install-misc
|
||||
|
||||
install-xsl:
|
||||
mkdir -p $(DESTDIR)/{common,fo,html,htmlhelp/doc,javahelp,lib,template,xhtml,manpages,profiling}
|
||||
cp common/*.dtd $(DESTDIR)/common
|
||||
cp common/*.xml $(DESTDIR)/common
|
||||
cp common/*.xsl $(DESTDIR)/common
|
||||
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/lib.xsl $(DESTDIR)/lib
|
||||
cp template/README $(DESTDIR)/template
|
||||
cp template/*.xml $(DESTDIR)/template
|
||||
cp template/*.xsl $(DESTDIR)/template
|
||||
cp xhtml/*.xsl $(DESTDIR)/xhtml
|
||||
cp manpages/README $(DESTDIR)/manpages
|
||||
cp manpages/*.xsl $(DESTDIR)/manpages
|
||||
cp profiling/*.xsl $(DESTDIR)/profiling
|
||||
|
||||
install-img:
|
||||
mkdir -p $(DESTDIR)/images/callouts
|
||||
cp images/*.gif $(DESTDIR)/images
|
||||
cp images/*.png $(DESTDIR)/images
|
||||
cp images/callouts/*.png $(DESTDIR)/images/callouts
|
||||
|
||||
install-extensions:
|
||||
mkdir -p $(DESTDIR)/extensions
|
||||
cp -r extensions/* $(DESTDIR)/extensions
|
||||
|
||||
install-misc:
|
||||
cp VERSION $(DESTDIR)
|
162
docbook-xsl.spec
Normal file
162
docbook-xsl.spec
Normal file
@ -0,0 +1,162 @@
|
||||
Name: docbook-xsl
|
||||
Version: 1.78.1
|
||||
Release: 2mamba
|
||||
Summary: Norman Walsh's XSL stylesheets for DocBook XML
|
||||
Group: Applications/Publishing
|
||||
Vendor: openmamba
|
||||
Distribution: openmamba
|
||||
Packager: Silvan Calarco <silvan.calarco@mambasoft.it>
|
||||
URL: http://docbook.sourceforge.net/projects/xsl
|
||||
Source0: http://downloads.sourceforge.net/sourceforge/docbook/docbook-xsl-%version.tar.bz2
|
||||
Source1: %{name}.Makefile
|
||||
Source2: http://downloads.sourceforge.net/sourceforge/docbook/docbook-xsl-ns-%version.tar.bz2
|
||||
Patch0: docbook-xsl-marginleft.patch
|
||||
Patch1: docbook-xsl-listblock.patch
|
||||
License: Distributable
|
||||
## AUTOBUILDREQ-BEGIN
|
||||
## AUTOBUILDREQ-END
|
||||
Requires(pre): libxml2-utils
|
||||
Requires: docbook-dtds >= 1.0
|
||||
BuildArch: noarch
|
||||
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
||||
|
||||
%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 -q -a2
|
||||
#%patch0 -p1 -b .marginleft
|
||||
#%patch1 -p1 -b .listblock
|
||||
cp %{SOURCE1} Makefile
|
||||
|
||||
%build
|
||||
|
||||
%install
|
||||
[ "%{buildroot}" != / ] && rm -rf "%{buildroot}"
|
||||
|
||||
install -d %{buildroot}%{_datadir}/sgml/docbook/xsl-stylesheets-%{version}
|
||||
for d in common docsrc eclipse epub extensions fo highlighting html \
|
||||
htmlhelp images javahelp lib manpages params profiling roundtrip \
|
||||
slides template tests tools website xhtml; do
|
||||
cp -a $d %{buildroot}%{_datadir}/sgml/docbook/xsl-stylesheets-%{version}
|
||||
done
|
||||
cp catalog.xml %{buildroot}%{_datadir}/sgml/docbook/xsl-stylesheets-%{version}/catalog
|
||||
cp VERSION %{buildroot}%{_datadir}/sgml/docbook/xsl-stylesheets-%{version}/VERSION.xsl
|
||||
ln -s VERSION.xsl %{buildroot}%{_datadir}/sgml/docbook/xsl-stylesheets-%{version}/VERSION
|
||||
|
||||
cd docbook-xsl-ns-%{version}
|
||||
install -d %{buildroot}%{_datadir}/sgml/docbook/xsl-stylesheets-ns-%{version}
|
||||
for d in common docsrc eclipse epub extensions fo highlighting html \
|
||||
htmlhelp images javahelp lib manpages params profiling roundtrip \
|
||||
slides template tests website xhtml xhtml-1_1; do
|
||||
cp -a $d %{buildroot}%{_datadir}/sgml/docbook/xsl-stylesheets-ns-%{version}
|
||||
done
|
||||
cp catalog.xml %{buildroot}%{_datadir}/sgml/docbook/xsl-stylesheets-ns-%{version}/catalog
|
||||
cp VERSION %{buildroot}%{_datadir}/sgml/docbook/xsl-stylesheets-ns-%{version}/VERSION.xsl
|
||||
ln -s VERSION.xsl %{buildroot}%{_datadir}/sgml/docbook/xsl-stylesheets-ns-%{version}/VERSION
|
||||
|
||||
ln -s xsl-stylesheets-%{version} %{buildroot}%{_datadir}/sgml/docbook/xsl-stylesheets
|
||||
ln -s xsl-stylesheets-ns-%{version} %{buildroot}%{_datadir}/sgml/docbook/xsl-stylesheets-ns
|
||||
|
||||
%clean
|
||||
[ "%{buildroot}" != / ] && rm -rf "%{buildroot}"
|
||||
|
||||
%post
|
||||
if [ $1 -ge 1 ]; then
|
||||
#new install or upgrade
|
||||
CATALOG=/etc/xml/catalog
|
||||
[ -e $CATALOG ] || /usr/bin/xmlcatalog --noout --create $CATALOG
|
||||
|
||||
%{_bindir}/xmlcatalog --noout --add "rewriteSystem" \
|
||||
"http://docbook.sourceforge.net/release/xsl/%{version}" \
|
||||
"file:///usr/share/sgml/docbook/xsl-stylesheets-%{version}" $CATALOG
|
||||
%{_bindir}/xmlcatalog --noout --add "rewriteURI" \
|
||||
"http://docbook.sourceforge.net/release/xsl/%{version}" \
|
||||
"file:///usr/share/sgml/docbook/xsl-stylesheets-%{version}" $CATALOG
|
||||
%{_bindir}/xmlcatalog --noout --add "rewriteSystem" \
|
||||
"http://docbook.sourceforge.net/release/xsl/current" \
|
||||
"file:///usr/share/sgml/docbook/xsl-stylesheets-%{version}" $CATALOG
|
||||
%{_bindir}/xmlcatalog --noout --add "rewriteURI" \
|
||||
"http://docbook.sourceforge.net/release/xsl/current" \
|
||||
"file:///usr/share/sgml/docbook/xsl-stylesheets-%{version}" $CATALOG
|
||||
|
||||
%{_bindir}/xmlcatalog --noout --add "rewriteSystem" \
|
||||
"http://docbook.sourceforge.net/release/xsl-ns/%{version}" \
|
||||
"file:///usr/share/sgml/docbook/xsl-stylesheets-ns-%{version}" $CATALOG
|
||||
%{_bindir}/xmlcatalog --noout --add "rewriteURI" \
|
||||
"http://docbook.sourceforge.net/release/xsl-ns/%{version}" \
|
||||
"file:///usr/share/sgml/docbook/xsl-stylesheets-ns-%{version}" $CATALOG
|
||||
%{_bindir}/xmlcatalog --noout --add "rewriteSystem" \
|
||||
"http://docbook.sourceforge.net/release/xsl-ns/current" \
|
||||
"file:///usr/share/sgml/docbook/xsl-stylesheets-ns-%{version}" $CATALOG
|
||||
%{_bindir}/xmlcatalog --noout --add "rewriteURI" \
|
||||
"http://docbook.sourceforge.net/release/xsl-ns/current" \
|
||||
"file:///usr/share/sgml/docbook/xsl-stylesheets-ns-%{version}" $CATALOG
|
||||
fi
|
||||
exit 0
|
||||
|
||||
%postun
|
||||
if [ $1 -eq 0 ]; then
|
||||
#erase
|
||||
CATALOG=/etc/xml/catalog
|
||||
%{_bindir}/xmlcatalog --noout --del \
|
||||
"file:///usr/share/sgml/docbook/xsl-stylesheets-%{version}" $CATALOG
|
||||
%{_bindir}/xmlcatalog --noout --del \
|
||||
"file:///usr/share/sgml/docbook/xsl-stylesheets-ns-%{version}" $CATALOG
|
||||
fi
|
||||
exit 0
|
||||
|
||||
%files
|
||||
%defattr(-,root,root)
|
||||
%{_datadir}/sgml/docbook/xsl-stylesheets
|
||||
%dir %{_datadir}/sgml/docbook/xsl-stylesheets-%{version}
|
||||
%{_datadir}/sgml/docbook/xsl-stylesheets-%{version}/*
|
||||
%{_datadir}/sgml/docbook/xsl-stylesheets-ns
|
||||
%dir %{_datadir}/sgml/docbook/xsl-stylesheets-ns-%{version}
|
||||
%{_datadir}/sgml/docbook/xsl-stylesheets-ns-%{version}/*
|
||||
%doc COPYING
|
||||
#%doc BUGS README RELEASE-NOTES.* TODO doc docsrc
|
||||
|
||||
%changelog
|
||||
* Sat Apr 27 2013 Silvan Calarco <silvan.calarco@mambasoft.it> 1.78.1-2mamba
|
||||
- install VERSION as VERSION.xsl and add a compatibility symlink to VERSION
|
||||
|
||||
* Mon Apr 22 2013 Automatic Build System <autodist@mambasoft.it> 1.78.1-1mamba
|
||||
- automatic version update by autodist
|
||||
|
||||
* Tue Nov 09 2010 Automatic Build System <autodist@mambasoft.it> 1.76.1-1mamba
|
||||
- automatic update by autodist
|
||||
|
||||
* Wed Aug 11 2010 Davide Madrisan <davide.madrisan@gmail.com> 1.75.2-2mamba
|
||||
- create symlinks xsl-stylesheets and xsl-stylesheets in %{_datadir}/sgml/docbook
|
||||
|
||||
* Mon Jul 27 2009 Automatic Build System <autodist@mambasoft.it> 1.75.2-1mamba
|
||||
- automatic update by autodist
|
||||
|
||||
* Fri Jul 03 2009 Automatic Build System <autodist@mambasoft.it> 1.75.1-1mamba
|
||||
- automatic update by autodist
|
||||
|
||||
* Sun Apr 26 2009 Silvan Calarco <silvan.calarco@mambasoft.it> 1.74.3-2mamba
|
||||
- set libxml2-utils as PreReq
|
||||
|
||||
* Fri Mar 06 2009 Silvan Calarco <silvan.calarco@mambasoft.it> 1.74.3-1mamba
|
||||
- automatic update by autodist
|
||||
|
||||
* Fri Sep 26 2008 Silvan Calarco <silvan.calarco@mambasoft.it> 1.74.0-2mamba
|
||||
- don't use make install which won't install most needed files and directories
|
||||
|
||||
* Tue Sep 23 2008 Silvan Calarco <silvan.calarco@mambasoft.it> 1.74.0-1mamba
|
||||
- update to 1.74.0
|
||||
|
||||
* Fri Nov 04 2005 Stefano Cotta Ramusino <stefano.cotta@qilinux.it> 1.68.1-3qilnx
|
||||
- architecture changed to noarch
|
||||
|
||||
* Wed Feb 23 2005 Silvan Calarco <silvan.calarco@mambasoft.it> 1.68.1-2qilnx
|
||||
- create catalog if empty
|
||||
- fix libxml2 requirements
|
||||
|
||||
* Tue Feb 22 2005 Silvan Calarco <silvan.calarco@mambasoft.it> 1.68.1-1qilnx
|
||||
- update to version 1.68.1 by autospec
|
||||
|
||||
* Tue Jul 27 2004 Davide Madrisan <davide.madrisan@qilinux.it> 1.65.1-1qilnx
|
||||
- initial build
|
Loading…
Reference in New Issue
Block a user