rpms/saxon/devel saxon.1, NONE, 1.1 saxon.build.script, NONE, 1.1 saxon.saxon.script, NONE, 1.1 saxon.spec, NONE, 1.1 .cvsignore, 1.1, 1.2 sources, 1.1, 1.2

Vivek Lakshmanan (vivekl) fedora-extras-commits at redhat.com
Sun Mar 11 19:44:12 UTC 2007


Author: vivekl

Update of /cvs/extras/rpms/saxon/devel
In directory cvs-int.fedora.redhat.com:/tmp/cvs-serv17565/devel

Modified Files:
	.cvsignore sources 
Added Files:
	saxon.1 saxon.build.script saxon.saxon.script saxon.spec 
Log Message:
auto-import saxon-6.5.5-1jpp.1.fc7 on branch devel from saxon-6.5.5-1jpp.1.fc7.src.rpm


--- NEW FILE saxon.1 ---
.\" Kudos to: xsltproc(1), help2man,
.\" http://saxon.sourceforge.net/saxon6.5.5/instant.html
.TH SAXON "1" "July 2004" "6.5.5" "User Commands"
.SH NAME
saxon \- Process XML documents with XSLT stylesheets
.SH SYNOPSIS
.B saxon
\fR[\fIoptions\fR] \fIsource-doc \fR[\fIstyle-doc\fR] [{param=value}\fR...]
.SH DESCRIPTION
saxon is a command line tool for applying XSLT stylesheets to XML
documents.
.PP
It is invoked from the command line with some options, followed by the
name of the source document to be transformed, followed by the the
name of the stylesheet to use for the transformation, and finally
followed by optional XSL parameters.
.PP
A parameter takes the form name=value, name being the name of the
parameter, and value the value of the parameter.  These parameters are
accessible within the stylesheet as normal variables, using the $name
syntax, provided they are declared using a top-level xsl:param
element.  If there is no such declaration, the supplied parameter value
is silently ignored.  You can specify a parameter value containing
spaces by enclosing it in double quotes, for example name="John Brown".
.SH OPTIONS
.TP
\fB\-a\fR
Use the xml-stylesheet processing instruction in the source document
to identify the stylesheet to be used.  When using this option, the
style-doc argument should be omitted.
.SP
The <?xml-stylesheet?> processing instruction must have a
pseudo-attribute href that identifies the relative or absolute URL of
the stylesheet document, and a pseudo-attribute type whose value is
"text/xml", "application/xml", or "text/xsl".  For example:

  <?xml-stylesheet type="text/xsl" href="../style3.xsl"?>

Stylesheets embedded within the source document are not
supported in this release.
.TP
\fB\-d\fR\fImodel\fR
Selects the implementation of the internal tree model.  -dt selects the
"tinytree" model.  -ds selects the traditional tree model.  The default
is -dt.
.TP
\fB\-l\fR
Switches line numbering on for the source document.  Line numbers are
accessible through the extension function saxon:line-number(), or from
a trace listener.
.TP
\fB\-m\fR \fIclassname\fR
Use the specified Emitter to process the output from xsl:message.  The
class must implement the com.icl.saxon.output.Emitter class.  This
interface is similar to a SAX ContentHandler, it takes a stream of
events to generate output.  In general the content of a message is an
XML fragment.  By default the standard XML emitter is used, configured
to write to the standard error stream, and to include no XML
declaration.  Each message is output as a new document.
.TP
\fB\-noext\fR
Suppress calls on extension functions, other than system-supplied
Saxon and EXSLT extension functions.  This option is useful when
loading an untrusted stylesheet, perhaps from a remote site using an
HTTP URL; it ensures that the stylesheet cannot call Java
methods and thereby gain privileged access to resources on your
machine.
.TP
\fB\-o\fR \fIfilename\fR
Send output to named file.  In the absence of this option, output goes
to standard output.  The file extension of the output file is used to
decide the default output method if none is specified.
.TP
\fB\-r\fR \fIclassname\fR
Use the specified URIResolver to process all URIs.  The URIResolver is
a user-defined class, that extends the com.icl.saxon.URIResolver
class, whose function is to take a URI supplied as a string, and
return a SAX InputSource.  It is invoked to process URIs used in the
document() function, in the xsl:include and xsl:import elements, and
(if -u is also specified) to process the URIs of the source file and
stylesheet file provided on the command line.   If xml-commons-resolver
is available, defaults to org.apache.xml.resolver.tools.CatalogResolver.
.TP
\fB\-t\fR
Display version and timing information to the standard error output.
.TP
\fB\-T\fR
Display stylesheet tracing information to the standard error
output.  Also switches line numbering on for the source document.
.TP
\fB\-TL\fR \fIclassname\fR
Run the stylesheet using the specified TraceListener.  The classname
names a user-defined class, which must implement
com.icl.saxon.trace.TraceListener.
.TP
\fB\-u\fR
Indicates that the names of the source document and the style document
are URLs; otherwise they are taken as filenames, unless they start
with "http:" or "file:", in which case they are taken as URLs.
.TP
\fB\-w\fR\fIlevel\fR
Indicates the policy for handling recoverable errors in the
stylesheet: -w0 means recover silently, -w1 means recover after
writing a warning message to the system error output, -w2 means signal
the error and do not attempt recovery.  (Note, this does not currently
apply to all errors that the XSLT recommendation describes as
recoverable).  The default is -w1.
.TP
\fB\-x\fR \fIclassname\fR
Use the specified SAX parser for source file and for any files loaded
using the document() function.  The parser must be the fully-qualified
class name of a Java class that implements the org.xml.sax.Parser or
org.xml.sax.XMLReader interface.  If xml-commons-resolver is available,
defaults to org.apache.xml.resolver.tools.ResolvingXMLReader.
.TP
\fB\-y\fR \fIclassname\fR
Use the specified SAX parser for all stylesheet files, including any
loaded using xsl:include or xsl:import.  The parser must be the
fully-qualified class name of a Java class that implements the
org.xml.sax.Parser or org.xml.sax.XMLReader interface.  If
xml-commons-resolver is available, defaults to
org.apache.xml.resolver.tools.ResolvingXMLReader.
.TP
\fB\-?\fR
Display command syntax.
.SH FILES
.B __RESOLVERDIR__/CatalogManager.properties
.RS
The central catalog manager configuration file used by \fBsaxon\fR
for resolving XML entities and URIs if xml-commons-resolver is
available.
.SH "SEE ALSO"
.BR xsltproc (1)
.SH AUTHOR
Michael H. Kay <mike at saxonica.com>


--- NEW FILE saxon.build.script ---
<!-- simple generic build file -->

<project name="saxon" default="all" basedir=".">

  <!-- Properties -->

  <property name="name" value="saxon"/>
  <property name="src" value="src"/>
  <property name="build" value="build"/>
  <property name="build.classes" value="${build}/classes"/>
  <property name="build.doc" value="${build}/api"/>
  <property name="build.lib" value="${build}/lib"/>
  <property name="j2se.javadoc" value="/usr/share/javadoc/j2se"/>
  <property name="jdom.javadoc" value="/usr/share/javadoc/jdom"/>
  <property name="fop.javadoc" value="/usr/share/javadoc/fop"/>

  <!-- Targets -->

  <!-- Prepare build directories -->
  <target name="prepare">
    <mkdir dir="${src}"/>
    <mkdir dir="${build}"/>
    <mkdir dir="${build.classes}"/>
    <mkdir dir="${build.lib}"/>
    <mkdir dir="${build.doc}"/>
    <copy todir="${src}">
      <fileset dir="." includes="com/**,org/**"/>
    </copy>
  </target>

  <!-- Kill all the created directories -->
  <target name="clean">
    <delete dir="${build}"/>
    <delete dir="${src}"/>
  </target>

  <!-- Build classes -->
  <target name="classes" depends="prepare">
    <javac srcdir="${src}" destdir="${build.classes}"/>
  </target>

  <!-- Build jar archives -->
  <target name="jar" depends="classes">
    <!-- aelfred -->
    <jar destfile="${build.lib}/${name}-aelfred.jar"
         basedir="${build.classes}"
         includes="com/icl/saxon/aelfred/*">
      <metainf dir="META-INF"
               includes="services/javax.xml.parsers.*" />
    </jar>
    <!-- fop -->
    <jar destfile="${build.lib}/${name}-fop.jar"
         basedir="${build.classes}"
         includes="com/icl/saxon/fop/*"/>
    <!-- jdom -->
    <jar destfile="${build.lib}/${name}-jdom.jar"
         basedir="${build.classes}"
         includes="com/icl/saxon/jdom/*"/>
    <!-- main -->
    <jar jarfile="${build.lib}/${name}.jar"
         basedir="${build.classes}"
         excludes="com/icl/saxon/fop/,com/icl/saxon/jdom/,com/icl/saxon/aelfred/">
      <metainf dir="META-INF"
               includes="services/javax.xml.transform.*" />
      <manifest>
        <attribute name="Main-Class" value="com.icl.saxon.StyleSheet" />
      </manifest>
    </jar>
  </target>

  <!-- Build the full JavaDocs -->
  <target name="javadoc" depends="prepare">
    <javadoc sourcepath="${src}"
            destdir="${build.doc}"
            doctitle="${name} JavaDoc"
            windowtitle="${name} JavaDoc"
            package="true"
            author="true"
            version="true"
            packagenames="com.icl.saxon.*,org.w3c.xsl.*"
      >
      <link href="${j2se.javadoc}"/>
      <link href="${jdom.javadoc}"/>
      <link href="${fop.javadoc}"/>
    </javadoc>
  </target>

  <!-- Build everything -->
  <target name="all" depends="jar,javadoc"/>

</project>


--- NEW FILE saxon.saxon.script ---
#!/bin/sh
# 
# saxon script
# JPackage Project <http://www.jpackage.org/>

. /usr/share/java-utils/java-functions

MAIN_CLASS=com.icl.saxon.StyleSheet

BASE_JARS="saxon.jar xml-commons-apis.jar jaxp_parser_impl.jar"

# Optional jars
CLASSPATH="$CLASSPATH:"$(build-classpath docbook-xsl-saxon saxon-fop \
  avalon-logkit xml-commons-resolver 2>/dev/null) || :

# If we have resolver, add the CatalogManager.properties dir to CLASSPATH,
# and tweak command line options so that it's used.
args=
if echo "$CLASSPATH" | grep xml-commons-resolver >/dev/null 2>&1 ; then
  CLASSPATH="$CLASSPATH:__RESOLVERDIR__"
  # Tune options to use resolver.
  r=org.apache.xml.resolver.tools.ResolvingXMLReader
  for opt in -x -y ; do
    if ! echo $@ | grep "\\$opt " >/dev/null 2>&1 ; then
      args="$args $opt $r"
    fi
  done
  r=org.apache.xml.resolver.tools.CatalogResolver
  if ! echo $@ | grep "\\-r " >/dev/null 2>&1 ; then
    args="$args -r $r"
  fi
fi

# Set parameters
set_jvm
set_classpath $BASE_JARS
set_flags $BASE_FLAGS
set_options $BASE_OPTIONS

# Let's start
run $args "$@"


--- NEW FILE saxon.spec ---
# Copyright (c) 2000-2005, JPackage Project
# All rights reserved.
#
# Redistribution and use in source and binary forms, with or without
# modification, are permitted provided that the following conditions
# are met:
#
# 1. Redistributions of source code must retain the above copyright
#    notice, this list of conditions and the following disclaimer.
# 2. Redistributions in binary form must reproduce the above copyright
#    notice, this list of conditions and the following disclaimer in the
#    documentation and/or other materials provided with the
#    distribution.
# 3. Neither the name of the JPackage Project nor the names of its
#    contributors may be used to endorse or promote products derived
#    from this software without specific prior written permission.
#
# THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
# "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
# LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
# A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
# OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
# SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
# LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
# DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
# THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
# (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
# OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
#

%define resolverdir %{_sysconfdir}/java/resolver

Summary:        Java XSLT processor
Name:           saxon
Version:        6.5.5
Release:        1jpp.1%{?dist}
Epoch:          0
License:        MPL
Group:          Text Processing/Markup/XML
URL:            http://saxon.sourceforge.net/
Source0:        http://download.sf.net/saxon/saxon6-5-5.zip
Source1:        %{name}.saxon.script
Source2:        %{name}.build.script
Source3:        %{name}.1
BuildRequires:  jpackage-utils >= 0:1.6
BuildRequires:  xml-commons-apis
BuildRequires:  jdom >= 0:1.0
Requires:       xml-commons-apis
Requires:       jpackage-utils >= 0:1.6
Requires:       jdom >= 0:1.0

Requires:       jaxp_parser_impl
Requires:       /usr/sbin/update-alternatives
Provides:       jaxp_transform_impl
BuildArch:      noarch
BuildRoot:      %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)

%description
The SAXON package is a collection of tools for processing XML documents.
The main components are:
- An XSLT processor, which implements the Version 1.0 XSLT and XPath
  Recommendations from the World Wide Web Consortium, found at
  http://www.w3.org/TR/1999/REC-xslt-19991116 and
  http://www.w3.org/TR/1999/REC-xpath-19991116 with a number of powerful
  extensions. This version of Saxon also includes many of the new features
  defined in the XSLT 1.1 working draft, but for conformance and portability
  reasons these are not available if the stylesheet header specifies
  version="1.0".
- A Java library, which supports a similar processing model to XSL, but allows
  full programming capability, which you need if you want to perform complex
  processing of the data or to access external services such as a relational
  database.
So you can use SAXON with any SAX-compliant XML parser by writing XSLT
stylesheets, by writing Java applications, or by any combination of the two.

%package        aelfred
Summary:        Java XML parser
Group:          Text Processing/Markup/XML
Requires:       xml-commons-apis

%description    aelfred
A slightly improved version of the AElfred Java XML parser from Microstar.

%package        manual
Summary:        Manual for %{name}
Group:          Documentation

%description    manual
Manual for %{name}.

%package        javadoc
Summary:        Javadoc for %{name}
Group:          Documentation
BuildRequires:  java-javadoc
BuildRequires:  jdom-javadoc >= 0:1.0
Requires:       java-javadoc
Requires:       jdom-javadoc >= 0:1.0

%description    javadoc
Javadoc for %{name}.

%package        demo
Summary:        Demos for %{name}
Group:          Text Processing/Markup/XML
Requires:       %{name} = %{epoch}:%{version}-%{release}

%description    demo
Demonstrations and samples for %{name}.

%package        jdom
Summary:        JDOM support for %{name}
Group:          Text Processing/Markup/XML
Requires:       %{name} = %{epoch}:%{version}-%{release}
Requires:       jdom >= 0:1.0

%description    jdom
JDOM support for %{name}.

%package        scripts
Summary:        Utility scripts for %{name}
Group:          Text Processing/Markup/XML
Requires:       jpackage-utils >= 0:1.6
Requires:       %{name} = %{epoch}:%{version}-%{release}

%description    scripts
Utility scripts for %{name}.


%prep
%setup -q -c
unzip -q source.zip
cp -p %{SOURCE2} ./build.xml
# cleanup unnecessary stuff we'll build ourselves
rm -rf *.jar docs/api


%build
export CLASSPATH=%(build-classpath xml-commons-apis jdom)
ant \
  -Dj2se.javadoc=%{_javadocdir}/java \
  -Djdom.javadoc=%{_javadocdir}/jdom

%install
rm -rf $RPM_BUILD_ROOT

# jars
mkdir -p $RPM_BUILD_ROOT%{_javadir}
cp -p build/lib/%{name}.jar $RPM_BUILD_ROOT%{_javadir}/%{name}-%{version}.jar

cp -p build/lib/%{name}-aelfred.jar \
    $RPM_BUILD_ROOT%{_javadir}/%{name}-aelfred-%{version}.jar

cp -p build/lib/%{name}-jdom.jar \
    $RPM_BUILD_ROOT%{_javadir}/%{name}-jdom-%{version}.jar

(cd $RPM_BUILD_ROOT%{_javadir} && for jar in *-%{version}*; do \
    ln -sf ${jar} `echo $jar| sed "s|-%{version}||g"`; done)

# javadoc
mkdir -p $RPM_BUILD_ROOT%{_javadocdir}/%{name}-%{version}
cp -pr build/api/* $RPM_BUILD_ROOT%{_javadocdir}/%{name}-%{version}
ln -s %{name}-%{version} $RPM_BUILD_ROOT%{_javadocdir}/%{name}

# demo
mkdir -p $RPM_BUILD_ROOT%{_datadir}/%{name}
cp -pr samples/* $RPM_BUILD_ROOT%{_datadir}/%{name}

# scripts
mkdir -p $RPM_BUILD_ROOT%{_bindir}
sed 's,__RESOLVERDIR__,%{resolverdir},' < %{SOURCE1} \
  > $RPM_BUILD_ROOT%{_bindir}/%{name}
mkdir -p $RPM_BUILD_ROOT%{_mandir}/man1
sed 's,__RESOLVERDIR__,%{resolverdir},' < %{SOURCE3} \
  > $RPM_BUILD_ROOT%{_mandir}/man1/%{name}.1

# jaxp_transform_impl ghost symlink
ln -s %{_sysconfdir}/alternatives \
  $RPM_BUILD_ROOT%{_javadir}/jaxp_transform_impl.jar

# fix newlines in docs
for i in doc/*.html; do
    tr -d \\r < $i > temp_file.html; mv temp_file.html $i
done

%clean
rm -rf $RPM_BUILD_ROOT

%post
update-alternatives --install %{_javadir}/jaxp_transform_impl.jar \
  jaxp_transform_impl %{_javadir}/%{name}.jar 25

%preun
{
  [ $1 -eq 0 ] || exit 0
  update-alternatives --remove jaxp_transform_impl %{_javadir}/%{name}.jar
} >/dev/null 2>&1 || :

%files
%defattr(0644,root,root,0755)
%{_javadir}/%{name}.jar
%{_javadir}/%{name}-%{version}.jar
%ghost %{_javadir}/jaxp_transform_impl.jar

%files aelfred
%defattr(0644,root,root,0755)
%{_javadir}/%{name}-aelfred*

%files jdom
%defattr(0644,root,root,0755)
%{_javadir}/%{name}-jdom*

%files manual
%defattr(0644,root,root,0755)
%doc doc/*.html

%files javadoc
%defattr(0644,root,root,0755)
%doc %{_javadocdir}/*

%files demo
%defattr(0644,root,root,0755)
%{_datadir}/%{name}

%files scripts
%defattr(0755,root,root,0755)
%{_bindir}/%{name}
%attr(0644,root,root) %{_mandir}/man1/%{name}.1*

%changelog
* Wed Feb 14 2007 Deepak Bhole <dbhole at redhat.com> - 0:6.5.5-1jpp.1
- Update to 6.5.5
- Fix per Fedora guidelines

* Tue May 02 2006 Ralph Apel <r.apel at r-apel.de> - 0:6.5.3-4jpp
- First JPP-1.7 release

* Fri Sep 03 2004 Fernando Nasser <fnasser at redhat.com> - 0:6.5.3-3jpp
- Rebuilt with Ant 1.6.2

* Mon Jul 19 2004 Ville Skyttä <ville.skytta at iki.fi> - 0:6.5.3-2jpp
- Apply two patches for known limitations from
  http://saxon.sourceforge.net/saxon6.5.3/limitations.html
- Make the command line script use xml-commons-resolver if it's available.
- Include man page for command line script.
- Add patch to fix command line option handling and document missing options.
- New style versionless javadoc dir symlinking.
- Crosslink with local J2SE javadocs.
- Add missing jdom-javadoc build dependency.

* Sun Aug 31 2003 Ville Skyttä <ville.skytta at iki.fi> - 0:6.5.3-1jpp
- Update to 6.5.3.
- Crosslink with local xml-commons-apis and fop javadocs.

* Tue Jun  3 2003 Ville Skyttä <ville.skytta at iki.fi> - 0:6.5.2-7jpp
- Non-versioned javadoc symlinking.
- Include Main-Class attribute in saxon.jar.
- Own (ghost) %%{_javadir}/jaxp_transform_impl.jar.
- Remove alternatives in preun instead of postun.

* Thu Apr 17 2003 Ville Skyttä <ville.skytta at iki.fi> - 6.5.2-6jpp
- Rebuild for JPackage 1.5.
- Split shell script to -scripts subpackage.
- Use non-versioned jar in jaxp_transform_impl alternative, and don't remove
  it on upgrade.
- Spec file cleanups.

* Thu Jul 25 2002 Ville Skyttä <ville.skytta at iki.fi> 6.5.2-5jpp
- Fix shell script (again).
- Rebuild with -Dbuild.compiler=modern (saxon-fop won't build with jikes).

* Fri Jul 19 2002 Ville Skyttä <ville.skytta at iki.fi> 6.5.2-4jpp
- First public JPackage release.
- Compile with build.xml by yours truly.
- AElfred no more provides jaxp_parser_impl; it's SAX only, no DOM.
- Fix shell script.

* Mon Jul  1 2002 Ville Skyttä <ville.skytta at iki.fi> 6.5.2-3jpp
- Provides jaxp_parser_impl.
- Requires xml-commons-apis.

* Sun Jun 30 2002 Ville Skyttä <ville.skytta at iki.fi> 6.5.2-2jpp
- Use sed instead of bash 2 extension when symlinking jars.
- Provides jaxp_transform_impl.

* Sat May 11 2002 Ville Skyttä <ville.skytta at iki.fi> 6.5.2-1jpp
- First JPackage release.
- Provides jaxp_parser2 though there's no DOM implementation in this AElfred.


Index: .cvsignore
===================================================================
RCS file: /cvs/extras/rpms/saxon/devel/.cvsignore,v
retrieving revision 1.1
retrieving revision 1.2
diff -u -r1.1 -r1.2
--- .cvsignore	4 Mar 2007 22:44:43 -0000	1.1
+++ .cvsignore	11 Mar 2007 19:43:40 -0000	1.2
@@ -0,0 +1 @@
+saxon6-5-5.zip


Index: sources
===================================================================
RCS file: /cvs/extras/rpms/saxon/devel/sources,v
retrieving revision 1.1
retrieving revision 1.2
diff -u -r1.1 -r1.2
--- sources	4 Mar 2007 22:44:43 -0000	1.1
+++ sources	11 Mar 2007 19:43:40 -0000	1.2
@@ -0,0 +1 @@
+e913002af9c6bbb4c4361ff41baac3af  saxon6-5-5.zip




More information about the fedora-extras-commits mailing list