diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..29f1ec2 --- /dev/null +++ b/.gitignore @@ -0,0 +1 @@ +SOURCES/libxslt-1.1.34.tar.gz diff --git a/.libxslt.metadata b/.libxslt.metadata new file mode 100644 index 0000000..2301808 --- /dev/null +++ b/.libxslt.metadata @@ -0,0 +1 @@ +5b42a1166a1688207028e4a5e72090828dd2a61e SOURCES/libxslt-1.1.34.tar.gz diff --git a/SOURCES/f165525fe744e6fe3b377b480d6cc5f9c546d360.patch b/SOURCES/f165525fe744e6fe3b377b480d6cc5f9c546d360.patch new file mode 100644 index 0000000..015550e --- /dev/null +++ b/SOURCES/f165525fe744e6fe3b377b480d6cc5f9c546d360.patch @@ -0,0 +1,887 @@ +From f165525fe744e6fe3b377b480d6cc5f9c546d360 Mon Sep 17 00:00:00 2001 +From: Nick Wellnhofer +Date: Sun, 20 Sep 2020 16:59:23 +0200 +Subject: [PATCH] Recreate xsltproc man page with old Docbook stylesheet URL + +Fixes #31. +--- + doc/xsltproc.1 | 627 ++++++++++++----------------------------------- + doc/xsltproc.xml | 2 +- + 2 files changed, 161 insertions(+), 468 deletions(-) + +diff --git a/doc/xsltproc.1 b/doc/xsltproc.1 +index 7393b6db..bbf4098f 100644 +--- a/doc/xsltproc.1 ++++ b/doc/xsltproc.1 +@@ -1,7 +1,7 @@ + '\" t + .\" Title: xsltproc + .\" Author: John Fleck +-.\" Generator: DocBook XSL Stylesheets vsnapshot ++.\" Generator: DocBook XSL Stylesheets v1.79.1 + .\" Date: $Date$ + .\" Manual: xsltproc Manual + .\" Source: libxslt +@@ -27,72 +27,13 @@ + .\" ----------------------------------------------------------------- + .\" * MAIN CONTENT STARTS HERE * + .\" ----------------------------------------------------------------- +- +- +- +- +- + .SH "NAME" + xsltproc \- command line XSLT processor +- + .SH "SYNOPSIS" +- +- .HP \w'\fBxsltproc\fR\ 'u +- +- \fBxsltproc\fR +- [ +- [ +- | \fB\-V\fR +- | \fB\-\-version\fR +- ] +- [ +- | \fB\-v\fR +- | \fB\-\-verbose\fR +- ] +- [ +- { +- | \fB\-o\fR +- | \fB\-\-output\fR +- } +- { +- | \fIFILE\fR +- | \fIDIRECTORY\fR +- } +- ] +- | \fB\-\-timing\fR +- | \fB\-\-repeat\fR +- | \fB\-\-debug\fR +- | \fB\-\-novalid\fR +- | \fB\-\-noout\fR +- | \fB\-\-maxdepth\ \fR\fB\fIVALUE\fR\fR +- | \fB\-\-html\fR +- | \fB\-\-encoding\ \fR\fB\fIENCODING\fR\fR\fB\ \fR +- | \fB\-\-param\ \fR\fB\fIPARAMNAME\fR\fR\fB\ \fR\fB\fIPARAMVALUE\fR\fR\fB\ \fR +- | \fB\-\-stringparam\ \fR\fB\fIPARAMNAME\fR\fR\fB\ \fR\fB\fIPARAMVALUE\fR\fR\fB\ \fR +- | \fB\-\-nonet\fR +- | \fB\-\-path\ "\fR\fB\fIPATH(S)\fR\fR\fB"\fR +- | \fB\-\-load\-trace\fR +- | \fB\-\-catalogs\fR +- | \fB\-\-xinclude\fR +- | [\ |\ \fB\-\-profile\fR\ |\ \fB\-\-norman\fR\ ] +- | \fB\-\-dumpextensions\fR +- | \fB\-\-nowrite\fR +- | \fB\-\-nomkdir\fR +- | \fB\-\-writesubtree\ \fR\fB\fIPATH\fR\fR +- | \fB\-\-nodtdattr\fR +- ] +- [\fISTYLESHEET\fR] +- { +- | \fIXML\-FILE\fR... +- | \- +- } +- +- +- ++.HP \w'\fBxsltproc\fR\ 'u ++\fBxsltproc\fR [[\fB\-V\fR | \fB\-\-version\fR] [\fB\-v\fR | \fB\-\-verbose\fR] [{\fB\-o\fR | \fB\-\-output\fR} {\fIFILE\fR | \fIDIRECTORY\fR}] | \fB\-\-timing\fR | \fB\-\-repeat\fR | \fB\-\-debug\fR | \fB\-\-novalid\fR | \fB\-\-noout\fR | \fB\-\-maxdepth\ \fR\fB\fIVALUE\fR\fR | \fB\-\-maxvars\ \fR\fB\fIVALUE\fR\fR | \fB\-\-maxparserdepth\ \fR\fB\fIVALUE\fR\fR | \fB\-\-huge\fR | \fB\-\-seed\-rand\ \fR\fB\fIVALUE\fR\fR | \fB\-\-html\fR | \fB\-\-encoding\ \fR\fB\fIENCODING\fR\fR\fB\ \fR | \fB\-\-param\ \fR\fB\fIPARAMNAME\fR\fR\fB\ \fR\fB\fIPARAMVALUE\fR\fR\fB\ \fR | \fB\-\-stringparam\ \fR\fB\fIPARAMNAME\fR\fR\fB\ \fR\fB\fIPARAMVALUE\fR\fR\fB\ \fR | \fB\-\-nonet\fR | \fB\-\-path\ "\fR\fB\fIPATH(S)\fR\fR\fB"\fR | \fB\-\-load\-trace\fR | \fB\-\-catalogs\fR | \fB\-\-xinclude\fR | \fB\-\-xincludestyle\fR | [\fB\-\-profile\fR\ |\ \fB\-\-norman\fR] | \fB\-\-dumpextensions\fR | \fB\-\-nowrite\fR | \fB\-\-nomkdir\fR | \fB\-\-writesubtree\ \fR\fB\fIPATH\fR\fR | \fB\-\-nodtdattr\fR] [\fISTYLESHEET\fR] {\fIXML\-FILE\fR... | \-} + .SH "DESCRIPTION" +- +- +- .PP ++.PP + \fBxsltproc\fR + is a command line tool for applying + XSLT +@@ -100,46 +41,32 @@ stylesheets to + XML + documents\&. It is part of + \fBlibxslt\fR(3), the XSLT C library for GNOME\&. While it was developed as part of the GNOME project, it can operate independently of the GNOME desktop\&. +- +- .PP ++.PP + \fBxsltproc\fR + is invoked from the command line with the name of the stylesheet to be used followed by the name of the file or files to which the stylesheet is to be applied\&. It will use the standard input if a filename provided is + \fB\-\fR + \&. +- +- .PP ++.PP + If a stylesheet is included in an + XML + document with a Stylesheet Processing Instruction, no stylesheet need to be named at the command line\&. + \fBxsltproc\fR + will automatically detect the included stylesheet and use it\&. +- +- .PP ++.PP + By default, output is to + stdout\&. You can specify a file for output using the + \fB\-o\fR + or + \fB\-\-output\fR + option\&. +- +- + .SH "OPTIONS" +- +- +- .PP ++.PP + \fBxsltproc\fR + accepts the following options (in alphabetical order): +- +- +- +- +- .PP ++.PP + \fB\-\-catalogs\fR + .RS 4 +- +- +- +- Use the ++Use the + SGML + catalog specified in + \fBSGML_CATALOG_FILES\fR +@@ -148,154 +75,101 @@ to resolve the location of external entities\&. By default, + looks for the catalog specified in + \fBXML_CATALOG_FILES\fR\&. If that is not specified, it uses + /etc/xml/catalog\&. +- +- +- .RE +- +- .PP ++.RE ++.PP + \fB\-\-debug\fR + .RS 4 +- +- +- +- Output an ++Output an + XML + tree of the transformed document for debugging purposes\&. +- +- +- .RE +- +- .PP ++.RE ++.PP + \fB\-\-dumpextensions\fR + .RS 4 +- +- +- +- Dumps the list of all registered extensions on ++Dumps the list of all registered extensions on + stdout\&. +- +- +- .RE +- +- .PP ++.RE ++.PP + \fB\-\-html\fR + .RS 4 +- +- +- +- The input document is an ++The input document is an + HTML + file\&. +- +- +- .RE +- +- .PP ++.RE ++.PP + \fB\-\-load\-trace\fR + .RS 4 +- +- +- +- Display all the documents loaded during the processing to ++Display all the documents loaded during the processing to + stderr\&. +- +- +- .RE +- +- .PP ++.RE ++.PP + \fB\-\-maxdepth \fR\fB\fIVALUE\fR\fR + .RS 4 +- +- +- +- Adjust the maximum depth of the template stack before ++Adjust the maximum depth of the template stack before + \fBlibxslt\fR(3) + concludes it is in an infinite loop\&. The default is 3000\&. +- +- +- .RE +- +- .PP ++.RE ++.PP ++\fB\-\-maxvars \fR\fB\fIVALUE\fR\fR ++.RS 4 ++Maximum number of variables\&. The default is 15000\&. ++.RE ++.PP ++\fB\-\-maxparserdepth \fR\fB\fIVALUE\fR\fR ++.RS 4 ++Maximum element nesting level of parsed XML documents\&. The default is 256\&. ++.RE ++.PP ++\fB\-\-huge\fR ++.RS 4 ++Relax hardcoded limits of the XML parser by setting the XML_PARSE_HUGE parser option\&. ++.RE ++.PP ++\fB\-\-seed\-rand \fR\fB\fIVALUE\fR\fR ++.RS 4 ++Initialize pseudo random number generator with specific seed\&. ++.RE ++.PP + \fB\-\-nodtdattr\fR + .RS 4 +- +- +- +- Do not apply default attributes from the document\*(Aqs ++Do not apply default attributes from the document\*(Aqs + DTD\&. +- +- +- .RE +- +- .PP ++.RE ++.PP + \fB\-\-nomkdir\fR + .RS 4 +- +- +- +- Refuses to create directories\&. +- +- +- .RE +- +- .PP ++Refuses to create directories\&. ++.RE ++.PP + \fB\-\-nonet\fR + .RS 4 +- +- +- +- Do not use the Internet to fetch ++Do not use the Internet to fetch + DTDs, entities or documents\&. +- +- +- .RE +- +- .PP ++.RE ++.PP + \fB\-\-noout\fR + .RS 4 +- +- +- +- Do not output the result\&. +- +- +- .RE +- +- .PP ++Do not output the result\&. ++.RE ++.PP + \fB\-\-novalid\fR + .RS 4 +- +- +- +- Skip loading the document\*(Aqs ++Skip loading the document\*(Aqs + DTD\&. +- +- +- .RE +- +- .PP ++.RE ++.PP + \fB\-\-nowrite\fR + .RS 4 +- +- +- +- Refuses to write to any file or resource\&. +- +- +- .RE +- +- .PP ++Refuses to write to any file or resource\&. ++.RE ++.PP + \fB\-o\fR or \fB\-\-output\fR \fIFILE\fR | \fIDIRECTORY\fR + .RS 4 +- +- +- +- Direct output to the given ++Direct output to the given + \fIFILE\fR\&. Using the option with a + \fIDIRECTORY\fR + directs the output files to the specified directory\&. This can be useful for multiple outputs (also known as "chunking") or manpage processing\&. +- +- .if n \{\ ++.if n \{\ + .sp + .\} + .RS 4 +@@ -307,14 +181,12 @@ directs the output files to the specified directory\&. This can be useful for mu + \fBImportant\fR + .ps -1 + .br +- +- The given directory ++The given directory + \fBmust\fR + already exist\&. +- +- .sp .5v ++.sp .5v + .RE +- .if n \{\ ++.if n \{\ + .sp + .\} + .RS 4 +@@ -326,8 +198,7 @@ already exist\&. + \fBNote\fR + .ps -1 + .br +- +- Make sure that ++Make sure that + \fIFILE\fR + and + \fIDIRECTORY\fR +@@ -338,82 +209,47 @@ as described in RFC 2396 and laters\&. This means, that e\&.g\&. + will maybe not work, but + \fB\-o directory/\fR + will\&. +- +- .sp .5v ++.sp .5v + .RE +- +- .RE +- +- .PP ++.RE ++.PP + \fB\-\-encoding \fR\fB\fIENCODING\fR\fR + .RS 4 +- +- +- +- Allow to specify the encoding for the input\&. +- +- +- .RE +- .PP ++Allow to specify the encoding for the input\&. ++.RE ++.PP + \fB\-\-param \fR\fB\fIPARAMNAME\fR\fR\fB \fR\fB\fIPARAMVALUE\fR\fR + .RS 4 +- +- +- +- Pass a parameter of name ++Pass a parameter of name + \fIPARAMNAME\fR + and value + \fIPARAMVALUE\fR + to the stylesheet\&. You may pass multiple name/value pairs up to a maximum of 32\&. If the value being passed is a string, you can use + \fB\-\-stringparam\fR + instead, to avoid additional quote characters that appear in string expressions\&. Note: the XPath expression must be UTF\-8 encoded\&. +- +- +- .RE +- +- .PP ++.RE ++.PP + \fB\-\-path "\fR\fB\fIPATH(S)\fR\fR\fB"\fR + .RS 4 +- +- +- +- Use the (space\- or colon\-separated) list of filesystem paths specified by ++Use the (space\- or colon\-separated) list of filesystem paths specified by + \fIPATHS\fR + to load + DTDs, entities or documents\&. Enclose space\-separated lists by quotation marks\&. +- +- +- .RE +- +- .PP ++.RE ++.PP + \fB\-\-profile\fR or \fB\-\-norman\fR + .RS 4 +- +- +- +- Output profiling information detailing the amount of time spent in each part of the stylesheet\&. This is useful in optimizing stylesheet performance\&. +- +- +- .RE +- +- .PP ++Output profiling information detailing the amount of time spent in each part of the stylesheet\&. This is useful in optimizing stylesheet performance\&. ++.RE ++.PP + \fB\-\-repeat\fR + .RS 4 +- +- +- +- Run the transformation 20 times\&. Used for timing tests\&. +- +- +- .RE +- +- .PP ++Run the transformation 20 times\&. Used for timing tests\&. ++.RE ++.PP + \fB\-\-stringparam \fR\fB\fIPARAMNAME\fR\fR\fB \fR\fB\fIPARAMVALUE\fR\fR + .RS 4 +- +- +- +- Pass a parameter of name ++Pass a parameter of name + \fIPARAMNAME\fR + and value + \fIPARAMVALUE\fR +@@ -422,268 +258,136 @@ where + is a string rather than a node identifier\&. + \fBNote:\fR + The string must be UTF\-8 encoded\&. +- +- +- .RE +- +- .PP ++.RE ++.PP + \fB\-\-timing\fR + .RS 4 +- +- +- +- Display the time used for parsing the stylesheet, parsing the document and applying the stylesheet and saving the result\&. Displayed in milliseconds\&. +- +- +- .RE +- +- .PP ++Display the time used for parsing the stylesheet, parsing the document and applying the stylesheet and saving the result\&. Displayed in milliseconds\&. ++.RE ++.PP + \fB\-v\fR or \fB\-\-verbose\fR + .RS 4 +- +- +- +- Output each step taken by ++Output each step taken by + \fBxsltproc\fR + in processing the stylesheet and the document\&. +- +- +- .RE +- +- .PP ++.RE ++.PP + \fB\-V\fR or \fB\-\-version\fR + .RS 4 +- +- +- +- Show the version of ++Show the version of + \fBlibxml\fR(3) + and + \fBlibxslt\fR(3) + used\&. +- +- +- .RE +- +- .PP ++.RE ++.PP + \fB\-\-writesubtree \fR\fB\fIPATH\fR\fR + .RS 4 +- +- +- +- Allow file write only within the ++Allow file write only within the + \fIPATH\fR + subtree\&. +- +- +- .RE +- +- .PP ++.RE ++.PP + \fB\-\-xinclude\fR + .RS 4 +- +- +- +- Process the input document using the XInclude specification\&. More details on this can be found in the XInclude specification: ++Process the input document using the XInclude specification\&. More details on this can be found in the XInclude specification: + \m[blue]\fB\%http://www.w3.org/TR/xinclude/\fR\m[] +- +- +- .RE +- +- +- ++.RE ++.PP ++\fB\-\-xincludestyle\fR ++.RS 4 ++Process the stylesheet with XInclude\&. ++.RE + .SH "ENVIRONMENT" +- +- +- +- +- +- .PP ++.PP + \fBSGML_CATALOG_FILES\fR + .RS 4 +- +- +- +- SGML ++SGML + catalog behavior can be changed by redirecting queries to the user\*(Aqs own set of catalogs\&. This can be done by setting the + \fBSGML_CATALOG_FILES\fR + environment variable to a list of catalogs\&. An empty one should deactivate loading the default + /etc/sgml/catalog + catalog\&. +- +- +- .RE +- +- .PP ++.RE ++.PP + \fBXML_CATALOG_FILES\fR + .RS 4 +- +- +- +- XML ++XML + catalog behavior can be changed by redirecting queries to the user\*(Aqs own set of catalogs\&. This can be done by setting the + \fBXML_CATALOG_FILES\fR + environment variable to a list of catalogs\&. An empty one should deactivate loading the default + /etc/xml/catalog + catalog\&. +- +- +- .RE +- +- +- ++.RE + .SH "DIAGNOSTICS" +- +- +- .PP ++.PP + \fBxsltproc\fR + return codes provide information that can be used when calling it from scripts\&. +- +- +- +- +- .PP ++.PP + \fB0\fR + .RS 4 +- +- +- +- No error (normal operation) +- +- +- .RE +- +- .PP ++No error (normal operation) ++.RE ++.PP + \fB1\fR + .RS 4 +- +- +- +- No argument +- +- +- .RE +- +- .PP ++No argument ++.RE ++.PP + \fB2\fR + .RS 4 +- +- +- +- Too many parameters +- +- +- .RE +- +- .PP ++Too many parameters ++.RE ++.PP + \fB3\fR + .RS 4 +- +- +- +- Unknown option +- +- +- .RE +- +- .PP ++Unknown option ++.RE ++.PP + \fB4\fR + .RS 4 +- +- +- +- Failed to parse the stylesheet +- +- +- .RE +- +- .PP ++Failed to parse the stylesheet ++.RE ++.PP + \fB5\fR + .RS 4 +- +- +- +- Error in the stylesheet +- +- +- .RE +- +- .PP ++Error in the stylesheet ++.RE ++.PP + \fB6\fR + .RS 4 +- +- +- +- Error in one of the documents +- +- +- .RE +- +- .PP ++Error in one of the documents ++.RE ++.PP + \fB7\fR + .RS 4 +- +- +- +- Unsupported xsl:output method +- +- +- .RE +- +- .PP ++Unsupported xsl:output method ++.RE ++.PP + \fB8\fR + .RS 4 +- +- +- +- String parameter contains both quote and double\-quotes +- +- +- .RE +- +- .PP ++String parameter contains both quote and double\-quotes ++.RE ++.PP + \fB9\fR + .RS 4 +- +- +- +- Internal processing error +- +- +- .RE +- +- .PP ++Internal processing error ++.RE ++.PP + \fB10\fR + .RS 4 +- +- +- +- Processing was stopped by a terminating message +- +- +- .RE +- +- .PP ++Processing was stopped by a terminating message ++.RE ++.PP + \fB11\fR + .RS 4 +- +- +- +- Could not write the result to the output file +- +- +- .RE +- +- +- ++Could not write the result to the output file ++.RE + .SH "SEE ALSO" +- +- +- .PP ++.PP + \fBlibxml\fR(3), + \fBlibxslt\fR(3) +- +- .PP ++.PP + More information can be found at + .sp + .RS 4 +@@ -694,12 +398,10 @@ More information can be found at + .sp -1 + .IP \(bu 2.3 + .\} +- +- \fBlibxml\fR(3) ++\fBlibxml\fR(3) + web page + \m[blue]\fB\%http://www.xmlsoft.org/\fR\m[] +- +- .RE ++.RE + .sp + .RS 4 + .ie n \{\ +@@ -709,24 +411,15 @@ web page + .sp -1 + .IP \(bu 2.3 + .\} +- +- W3C ++W3C + XSLT + page + \m[blue]\fB\%http://www.w3.org/TR/xslt\fR\m[] +- +- .RE ++.RE + .sp +- +- +- + .SH "AUTHOR" + .PP + \fBJohn Fleck\fR <\&jfleck@inkstain\&.net\&> +-.br +- +- +- + .RS 4 + Author. + .RE +diff --git a/doc/xsltproc.xml b/doc/xsltproc.xml +index 8b78693e..051cbc01 100644 +--- a/doc/xsltproc.xml ++++ b/doc/xsltproc.xml +@@ -1,6 +1,6 @@ + + ++ href="http://docbook.sourceforge.net/release/xsl/current/manpages/docbook.xsl"?> + + +- * libexslt/date.c: apply patch from Bj�rn Wiberg fixing build on AIX ++ * libexslt/date.c: apply patch from Björn Wiberg fixing build on AIX + and closing bug #332173 + + Fri Aug 3 15:49:26 CEST 2007 Daniel Veillard +@@ -2112,7 +2112,7 @@ + Tue Feb 17 11:29:15 CET 2004 Daniel Veillard + + * libxslt/templates.c: applied patch from #134588 provided by +- Mariano Su�rez-Alvarez, attribute text node without doc. ++ Mariano Suárez-Alvarez, attribute text node without doc. + + Mon Feb 16 15:55:57 CET 2004 Daniel Veillard + +@@ -3121,7 +3121,7 @@ + * python/generator.py: fixed a problem in the generator where + the way functions are remapped as methods on classes was + not symetric and dependant on python internal hash order, +- as reported by St�phane Bidoul ++ as reported by Stéphane Bidoul + * libexslt/strings.c: attempt at fixing an object type pbm + * libxslt/triodef.h: update for OpenVMS from libxml2 + +@@ -3497,7 +3497,7 @@ + + Thu Jan 2 23:23:30 CET 2003 Daniel Veillard + +- * libexslt/strings.c: applied patch from J�rg Walter to provide ++ * libexslt/strings.c: applied patch from Jörg Walter to provide + URI escaping and unescaping functions. + + Thu Dec 26 15:43:31 CET 2002 Daniel Veillard +@@ -3507,7 +3507,7 @@ + + Mon Dec 23 15:43:59 CET 2002 Daniel Veillard + +- * python/libxslt.c: patch from St�phane Bidoul for Python 2.1 ++ * python/libxslt.c: patch from Stéphane Bidoul for Python 2.1 + + Sun Dec 22 22:54:04 CET 2002 Daniel Veillard + +@@ -3648,7 +3648,7 @@ + + Sun Nov 24 13:58:48 CET 2002 Daniel Veillard + +- * python/libxsl.py: updated with new version from St�phane Bidoul ++ * python/libxsl.py: updated with new version from Stéphane Bidoul + + Sat Nov 23 22:49:08 CET 2002 Igor Zlatkovic + +@@ -5036,7 +5036,7 @@ + + Mon Nov 26 11:21:27 CET 2001 Daniel Veillard + +- * libxslt/pattern.c: fixing bug #64044 reported by Gero Mei�ner, ++ * libxslt/pattern.c: fixing bug #64044 reported by Gero Meißner, + template matches compilation was failing to skip blanks bewteen + consecutive predicates + +@@ -5119,7 +5119,7 @@ + + Tue Oct 30 19:32:08 CET 2001 Daniel Veillard + +- * configure.in: applied patches from David H�rdeman closing ++ * configure.in: applied patches from David Härdeman closing + bug #62891 + + Tue Oct 30 15:25:19 CET 2001 Daniel Veillard +--- libxslt-1.1.26/NEWS.utf8 2009-09-24 16:38:20.000000000 +0200 ++++ libxslt-1.1.26/NEWS 2011-03-20 03:27:37.440684281 +0100 +@@ -312,7 +312,7 @@ + + + 1.1.4: Feb 23 2004: +- - bugfixes: attributes without doc (Mariano Su�rez-Alvarez), problem with ++ - bugfixes: attributes without doc (Mariano Suárez-Alvarez), problem with + Yelp, extension problem + - display extension modules (Steve Little) + - Windows compilation patch (Mark Vadoc), Mingw (Mikhail Grushinskiy) +@@ -472,7 +472,7 @@ + + + 1.0.24: Jan 14 2003: +- - bug fixes: imported global varables, python bindings (St�phane Bidoul), ++ - bug fixes: imported global varables, python bindings (Stéphane Bidoul), + EXSLT memory leak (Charles Bozeman), namespace generation on + xsl:attribute, space handling with imports (Daniel Stodden), + extension-element-prefixes (Josh Parsons), comments within xsl:text (Matt +@@ -485,7 +485,7 @@ + - fix the API generation scripts + - API to provide the sorting routines (Richard Jinks) + - added XML description of the EXSLT API +- - added ESXLT URI (un)escaping (J�rg Walter) ++ - added ESXLT URI (un)escaping (Jörg Walter) + - Some memory leaks have been found and fixed + - document() now support fragment identifiers in URIs + diff --git a/SOURCES/multilib.patch b/SOURCES/multilib.patch new file mode 100644 index 0000000..94715d2 --- /dev/null +++ b/SOURCES/multilib.patch @@ -0,0 +1,24 @@ +*** XSLT/xslt-config.in.orig 2006-06-06 17:32:23.000000000 +0200 +--- XSLT/xslt-config.in 2006-06-06 17:32:48.000000000 +0200 +*************** +*** 4,10 **** + exec_prefix=@exec_prefix@ + exec_prefix_set=no + includedir=@includedir@ +! libdir=@libdir@ + + usage() + { +--- 4,15 ---- + exec_prefix=@exec_prefix@ + exec_prefix_set=no + includedir=@includedir@ +! if [ "`ldd /bin/sh | grep lib64`" = "" ] +! then +! libdir=${exec_prefix}/lib +! else +! libdir=${exec_prefix}/lib64 +! fi + + usage() + { diff --git a/SOURCES/multilib2.patch b/SOURCES/multilib2.patch new file mode 100644 index 0000000..22ffe7e --- /dev/null +++ b/SOURCES/multilib2.patch @@ -0,0 +1,28 @@ +diff -urN libxslt-1.1.32/libxslt/xsltconfig.h.in libxslt-1.1.32.completemultilib/libxslt/xsltconfig.h.in +--- libxslt-1.1.32/libxslt/xsltconfig.h.in 2017-10-26 07:55:47.000000000 +0000 ++++ libxslt-1.1.32.completemultilib/libxslt/xsltconfig.h.in 2019-05-06 11:35:57.948191169 +0000 +@@ -120,7 +120,11 @@ + #ifndef WITH_MODULES + #define WITH_MODULES + #endif +-#define LIBXSLT_DEFAULT_PLUGINS_PATH() "@LIBXSLT_DEFAULT_PLUGINS_PATH@" ++#ifdef __LP64__ ++#define LIBXSLT_DEFAULT_PLUGINS_PATH() "/usr/lib64/libxslt-plugins" ++#else ++#define LIBXSLT_DEFAULT_PLUGINS_PATH() "/usr/lib/libxslt-plugins" ++#endif + #endif + + /** +diff -urN libxslt-1.1.32/xslt-config.in libxslt-1.1.32.completemultilib/xslt-config.in +--- libxslt-1.1.32/xslt-config.in 2015-05-10 14:11:30.000000000 +0000 ++++ libxslt-1.1.32.completemultilib/xslt-config.in 2019-05-06 11:34:59.670592304 +0000 +@@ -65,7 +65,7 @@ + ;; + + --plugins) +- echo @LIBXSLT_DEFAULT_PLUGINS_PATH@ ++ echo ${libdir}/libxslt-plugins + exit 0 + ;; + diff --git a/SPECS/libxslt.spec b/SPECS/libxslt.spec new file mode 100644 index 0000000..3a9cba4 --- /dev/null +++ b/SPECS/libxslt.spec @@ -0,0 +1,375 @@ +Name: libxslt +Summary: Library providing the Gnome XSLT engine +Version: 1.1.34 +Release: 7%{?dist} + +License: MIT +URL: http://xmlsoft.org/XSLT +Source: ftp://xmlsoft.org/XSLT/%{name}-%{version}.tar.gz + +BuildRequires: autoconf +BuildRequires: automake +BuildRequires: libtool +BuildRequires: make +BuildRequires: gcc +BuildRequires: pkgconfig(libxml-2.0) >= 2.6.27 + +# Fedora specific patches +Patch0: multilib.patch +Patch1: libxslt-1.1.26-utf8-docs.patch +# https://bugzilla.redhat.com/show_bug.cgi?id=1467435 +Patch2: multilib2.patch +Patch3: f165525fe744e6fe3b377b480d6cc5f9c546d360.patch + +%description +This C library allows to transform XML files into other XML files +(or HTML, text, ...) using the standard XSLT stylesheet transformation +mechanism. To use it you need to have a version of libxml2 >= 2.6.27 +installed. The xsltproc command is a command line interface to the XSLT engine + +%package devel +Summary: Development libraries and header files for %{name} +Requires: %{name}%{?_isa} = %{version}-%{release} +Requires: libgpg-error-devel%{?_isa} + +%description devel +The %{name}-devel package contains libraries and header files for +developing applications that use %{name}. + +%if 0 +# Upstream package has not been ported to Python 3. I have +# converted this section so it could be used to compile the +# Python 3 bindings one day once that has happened, but +# commented it out. - RWMJ 2019-09-10 +%package -n python3-libxslt +Summary: Python 3 bindings for %{name} +BuildRequires: python3-devel +BuildRequires: python3-libxml2 +Requires: %{name}%{?_isa} = %{version}-%{release} +Requires: python3-libxml2 +%{?python_provide:%python_provide python3-%{name}} + +%description -n python3-libxslt +The libxslt-python package contains a module that permits applications +written in the Python programming language to use the interface +supplied by the libxslt library to apply XSLT transformations. + +This library allows to parse sytlesheets, uses the libxml2-python +to load and save XML and HTML files. Direct access to XPath and +the XSLT transformation context are possible to extend the XSLT language +with XPath functions written in Python. +%endif + +%prep +%autosetup -p1 +chmod 644 python/tests/* + +%build +autoreconf -vfi +#export PYTHON=%{__python3} +#%configure --disable-static --disable-silent-rules --with-python +%configure --disable-static --disable-silent-rules --with-python=no --with-crypto=no +%make_build + +%install +%make_install +find %{buildroot} -name '*.la' -print -delete +# multiarch crazyness on timestamp differences +touch -m --reference=%{buildroot}%{_includedir}/libxslt/xslt.h %{buildroot}%{_bindir}/xslt-config +rm -vrf %{buildroot}%{_docdir} + +%check +%make_build tests + +%ldconfig_scriptlets + +%files +%license Copyright +%doc AUTHORS ChangeLog NEWS README FEATURES +%{_bindir}/xsltproc +%{_libdir}/libxslt.so.* +%{_libdir}/libexslt.so.* +%{_libdir}/libxslt-plugins/ +%{_mandir}/man1/xsltproc.1* + +%files devel +%doc doc/libxslt-api.xml +%doc doc/libxslt-refs.xml +%doc doc/EXSLT/libexslt-api.xml +%doc doc/EXSLT/libexslt-refs.xml +%doc %{_mandir}/man3/libxslt.3* +%doc %{_mandir}/man3/libexslt.3* +%doc doc/*.html doc/html doc/*.gif doc/*.png +%doc doc/images +%doc doc/tutorial +%doc doc/tutorial2 +%doc doc/EXSLT +%{_libdir}/libxslt.so +%{_libdir}/libexslt.so +%{_libdir}/xsltConf.sh +%{_datadir}/aclocal/libxslt.m4 +%{_includedir}/libxslt/ +%{_includedir}/libexslt/ +%{_libdir}/pkgconfig/libxslt.pc +%{_libdir}/pkgconfig/libexslt.pc +%{_bindir}/xslt-config + +%if 0 +%files -n python3-libxslt +%{python3_sitearch}/libxslt.py* +%{python3_sitearch}/libxsltmod.so +%{python3_sitearch}/__pycache__/nbd*.py* +%doc python/libxsltclass.txt +%doc python/tests/*.py +%doc python/tests/*.xml +%doc python/tests/*.xsl +%endif + +%changelog +* Mon Aug 09 2021 Mohan Boddu - 1.1.34-7 +- Rebuilt for IMA sigs, glibc 2.34, aarch64 flags + Related: rhbz#1991688 + +* Fri Apr 16 2021 Mohan Boddu - 1.1.34-6 +- Rebuilt for RHEL 9 BETA on Apr 15th 2021. Related: rhbz#1947937 + +* Tue Jan 26 2021 Fedora Release Engineering - 1.1.34-5 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_34_Mass_Rebuild + +* Mon Sep 14 2020 Gwyn Ciesla - 1.1.34-4 +- Patch for incorrect man page stylesheet. + +* Tue Sep 1 2020 Simo Sorce - 1.1.34-3 +- Drop crypto dependency. +- The "cryptography" implemented in exslt is outdated and bad supporting only + insecure algorithms (RC4, SHA1, MD5, MD4), and should not be used anyway. + +* Tue Jul 28 2020 Fedora Release Engineering - 1.1.34-2 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_33_Mass_Rebuild + +* Mon Mar 09 2020 Gwyn Ciesla - 1.1.34-1 +- 1.1.34 + +* Wed Jan 29 2020 Fedora Release Engineering - 1.1.33-5 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_32_Mass_Rebuild + +* Fri Oct 11 2019 Jakub Jelen - 1.1.33-4 +- Do not build python bindings even if the python is available +- Fix CVE-2019-13117 (#1728547) +- Fix CVE-2019-13118 (#1728542) + +* Tue Sep 10 2019 Richard W.M. Jones - 1.1.33-3 +- Comment out Python bindings until upstream can convert them to Python 3. + +* Thu Jul 25 2019 Fedora Release Engineering - 1.1.33-2 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_31_Mass_Rebuild + +* Fri Jun 07 2019 David King - 1.1.33-1 +- Update to 1.1.33 +- Fix CVE-2019-11068 (#1709698) + +* Mon May 06 2019 Artem S. Tashkinov - 1.1.32-5 +- Apply an extra patch to fix PR1467435 and make it possible to coinstall + libxslt-devel.x64 and libxslt-devel.i686 + +* Fri Feb 01 2019 Fedora Release Engineering - 1.1.32-4 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_30_Mass_Rebuild + +* Fri Jul 13 2018 Fedora Release Engineering - 1.1.32-3 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_29_Mass_Rebuild + +* Fri Feb 09 2018 Igor Gnatenko - 1.1.32-2 +- Fix typo in Requires + +* Fri Feb 09 2018 Igor Gnatenko - 1.1.32-1 +- Update to 1.1.32 +- Cleanup spec +- Re-enable hardened build + +* Wed Feb 07 2018 Fedora Release Engineering - 1.1.30-5 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_28_Mass_Rebuild + +* Wed Jan 31 2018 Igor Gnatenko - 1.1.30-4 +- Switch to %%ldconfig_scriptlets + +* Tue Jan 09 2018 Iryna Shcherbina - 1.1.30-3 +- Update Python 2 dependency declarations to new packaging standards + (See https://fedoraproject.org/wiki/FinalizingFedoraSwitchtoPython3) + +* Wed Oct 04 2017 Igor Gnatenko - 1.1.30-2 +- Fix broken xslt-config binary + +* Mon Sep 4 2017 Daniel Veillard 1.1.30-1 +- Update to 1.1.30 + +* Sun Aug 20 2017 Zbigniew Jędrzejewski-Szmek - 1.1.29-6 +- Add Provides for the old name without %%_isa + +* Sat Aug 19 2017 Zbigniew Jędrzejewski-Szmek - 1.1.29-5 +- Python 2 binary package renamed to python2-libxslt + See https://fedoraproject.org/wiki/FinalizingFedoraSwitchtoPython3 + +* Thu Aug 03 2017 Fedora Release Engineering - 1.1.29-4 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Binutils_Mass_Rebuild + +* Wed Jul 26 2017 Fedora Release Engineering - 1.1.29-3 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Mass_Rebuild + +* Mon Jun 26 2017 Petr Pisar - 1.1.29-2 +- Rebuild against glibc without xlocale.h (bug #1464640) + +* Wed Mar 08 2017 Petr Šabata - 1.1.29-1 +- 1.1.29 bump + +* Fri Feb 10 2017 Fedora Release Engineering - 1.1.28-14 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_26_Mass_Rebuild + +* Tue Jul 19 2016 Fedora Release Engineering - 1.1.28-13 +- https://fedoraproject.org/wiki/Changes/Automatic_Provides_for_Python_RPM_Packages + +* Thu Feb 04 2016 Fedora Release Engineering - 1.1.28-12 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_24_Mass_Rebuild + +* Wed Jun 17 2015 Fedora Release Engineering - 1.1.28-11 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_23_Mass_Rebuild + +* Fri Mar 6 2015 Daniel Veillard 1.1.28-10 +- desactivate the hardened build as it seems buggy #1199522 + +* Sat Feb 21 2015 Till Maas - 1.1.28-9 +- Rebuilt for Fedora 23 Change + https://fedoraproject.org/wiki/Changes/Harden_all_packages_with_position-independent_code + +* Sun Aug 17 2014 Fedora Release Engineering - 1.1.28-8 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_22_Mass_Rebuild + +* Sat Jun 07 2014 Fedora Release Engineering - 1.1.28-7 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_Mass_Rebuild + +* Thu Apr 24 2014 Tomas Mraz - 1.1.28-6 +- Rebuild for new libgcrypt + +* Tue Aug 6 2013 Ville Skyttä - 1.1.28-5 +- Fix build with unversioned %%{_docdir_fmt}, ship Python examples only once. + +* Sat Aug 03 2013 Fedora Release Engineering - 1.1.28-4 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_20_Mass_Rebuild + +* Fri Jun 21 2013 Matthias Clasen - 1.1.28-3 +- Don't ship api docs twice (they were included in both + the main and the devel package, by accident (need to save + space on the f19 live images) + +* Thu Feb 14 2013 Fedora Release Engineering - 1.1.28-2 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_19_Mass_Rebuild + +* Wed Nov 21 2012 Daniel Veillard - 1.1.28-1 +- upstream release of libxslt-1.1.28 +- a few bug fixes and cleanups + +* Tue Oct 9 2012 Daniel Veillard - 1.1.27-2 +- fix a regression in default namespace handling + +* Wed Sep 12 2012 Daniel Veillard - 1.1.27-1 +- upstream release of libxslt-1.1.27 +- a lot of bug fixes and improvements + +* Thu Jul 19 2012 Fedora Release Engineering - 1.1.26-10 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_18_Mass_Rebuild + +* Fri Jan 13 2012 Fedora Release Engineering - 1.1.26-9 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_17_Mass_Rebuild + +* Sun Mar 20 2011 Michel Salim - 1.1.26-8 +- ChangeLog: fix character encoding +- Restore timestamps for patched documentation files + +* Tue Feb 08 2011 Fedora Release Engineering - 1.1.26-7 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_15_Mass_Rebuild + +* Fri Dec 17 2010 Dan Horák - 1.1.26-6 +- libexslt needs libgcrypt-devel via its pkgconfig file + +* Mon Oct 25 2010 Parag Nemade - 1.1.26-5 +- Patch from Paul Howarth for converting files to utf8 (#226088) + +* Tue Oct 05 2010 Parag Nemade - 1.1.26-4 +- Merge-review cleanup (#226088) + +* Wed Jul 21 2010 David Malcolm - 1.1.26-3 +- Rebuilt for https://fedoraproject.org/wiki/Features/Python_2.7/MassRebuild + +* Mon May 24 2010 Tom "spot" Callaway 1.1.26-2 +- disable static libs + +* Thu Sep 24 2009 Daniel Veillard 1.1.26-1 +- couple of bug fixes +- export a symbol needed by lxml + +* Mon Sep 21 2009 Daniel Veillard 1.1.25-2 +- fix a locking bug in 1.1.25 + +* Thu Sep 17 2009 Daniel Veillard 1.1.25-1 +- release of 1.1.25 +- Add API versioning for libxslt shared library +- xsl:sort lang support using the locale +- many bug fixes + +* Sat Jul 25 2009 Fedora Release Engineering - 1.1.24-5 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_12_Mass_Rebuild + +* Wed Feb 25 2009 Fedora Release Engineering - 1.1.24-4 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_11_Mass_Rebuild + +* Sat Nov 29 2008 Ignacio Vazquez-Abrams 1.1.24-3 +- Rebuild for Python 2.6 + +* Wed Oct 8 2008 Daniel Veillard 1.1.24-2.fc10 +- CVE-2008-2935 fix + +* Tue May 13 2008 Daniel Veillard 1.1.24-1.fc10 +- release of 1.1.24 +- fixes a few bugs including the key initialization problem +- tentative fix for multiarch devel problems + +* Mon Apr 28 2008 Daniel Veillard 1.1.23-3.fc10 +- and the previous patch was incomplte breaking the python bindings + see 444317 and 444455 + +* Tue Apr 22 2008 Daniel Veillard 1.1.23-2.fc10 +- revert a key initialization patch from 1.1.23 which seems broken + see rhbz#442097 + +* Tue Apr 8 2008 Daniel Veillard 1.1.23-1.fc9 +- upstream release 1.1.23 +- bugfixes + +* Wed Feb 20 2008 Fedora Release Engineering - 1.1.22-2 +- Autorebuild for GCC 4.3 + +* Thu Aug 23 2007 Daniel Veillard 1.1.22-1 +- upstream release 1.1.22 see http://xmlsoft.org/XSLT/news.html + +* Tue Jun 12 2007 Daniel Veillard 1.1.21-1 +- upstream release 1.1.21 see http://xmlsoft.org/XSLT/news.html + +* Thu Feb 15 2007 Adam Jackson +- Add dist tag to Release to fix 6->7 upgrades. + +* Wed Jan 17 2007 Daniel Veillard +- upstream release 1.1.20 see http://xmlsoft.org/XSLT/news.html + +* Thu Dec 7 2006 Jeremy Katz - 1.1.19-2 +- rebuild against python 2.5 + +* Wed Nov 29 2006 Daniel Veillard +- upstream release 1.1.19 see http://xmlsoft.org/XSLT/news.html + +* Thu Oct 26 2006 Daniel Veillard +- upstream release 1.1.18 see http://xmlsoft.org/XSLT/news.html + +* Wed Jul 12 2006 Jesse Keating - 1.1.17-1.1 +- rebuild + +* Tue Jun 6 2006 Daniel Veillard +- upstream release 1.1.17 see http://xmlsoft.org/XSLT/news.html