This commit is contained in:
commit
178e24c643
23
.gitattributes
vendored
Normal file
23
.gitattributes
vendored
Normal file
@ -0,0 +1,23 @@
|
|||||||
|
## Default LFS
|
||||||
|
*.7z filter=lfs diff=lfs merge=lfs -text
|
||||||
|
*.bsp filter=lfs diff=lfs merge=lfs -text
|
||||||
|
*.bz2 filter=lfs diff=lfs merge=lfs -text
|
||||||
|
*.gem filter=lfs diff=lfs merge=lfs -text
|
||||||
|
*.gz filter=lfs diff=lfs merge=lfs -text
|
||||||
|
*.jar filter=lfs diff=lfs merge=lfs -text
|
||||||
|
*.lz filter=lfs diff=lfs merge=lfs -text
|
||||||
|
*.lzma filter=lfs diff=lfs merge=lfs -text
|
||||||
|
*.obscpio filter=lfs diff=lfs merge=lfs -text
|
||||||
|
*.oxt filter=lfs diff=lfs merge=lfs -text
|
||||||
|
*.pdf filter=lfs diff=lfs merge=lfs -text
|
||||||
|
*.png filter=lfs diff=lfs merge=lfs -text
|
||||||
|
*.rpm filter=lfs diff=lfs merge=lfs -text
|
||||||
|
*.tbz filter=lfs diff=lfs merge=lfs -text
|
||||||
|
*.tbz2 filter=lfs diff=lfs merge=lfs -text
|
||||||
|
*.tgz filter=lfs diff=lfs merge=lfs -text
|
||||||
|
*.ttf filter=lfs diff=lfs merge=lfs -text
|
||||||
|
*.txz filter=lfs diff=lfs merge=lfs -text
|
||||||
|
*.whl filter=lfs diff=lfs merge=lfs -text
|
||||||
|
*.xz filter=lfs diff=lfs merge=lfs -text
|
||||||
|
*.zip filter=lfs diff=lfs merge=lfs -text
|
||||||
|
*.zst filter=lfs diff=lfs merge=lfs -text
|
1
.gitignore
vendored
Normal file
1
.gitignore
vendored
Normal file
@ -0,0 +1 @@
|
|||||||
|
.osc
|
6
check-build.sh
Normal file
6
check-build.sh
Normal file
@ -0,0 +1,6 @@
|
|||||||
|
#!/bin/bash
|
||||||
|
if [ `ulimit -v` -le 2500000 ] ; then
|
||||||
|
echo "build does not work on `hostname`: not enough memory"
|
||||||
|
exit 1
|
||||||
|
fi
|
||||||
|
|
3
dom4j-1.6.1.tar.bz2
Normal file
3
dom4j-1.6.1.tar.bz2
Normal file
@ -0,0 +1,3 @@
|
|||||||
|
version https://git-lfs.github.com/spec/v1
|
||||||
|
oid sha256:68cf5b06dee7a617cd7078946d78ef0084f0c01306c5787819dc085299afe337
|
||||||
|
size 8287503
|
39
include-glibj.jar.patch
Normal file
39
include-glibj.jar.patch
Normal file
@ -0,0 +1,39 @@
|
|||||||
|
Index: jdom-1.0/XOM/build.xml
|
||||||
|
===================================================================
|
||||||
|
--- jdom-1.0.orig/XOM/build.xml
|
||||||
|
+++ jdom-1.0/XOM/build.xml
|
||||||
|
@@ -72,6 +72,7 @@ subject line. The XOM home page is http:
|
||||||
|
<property name="gnujaxp.jar" value="${lib2.dir}/gnujaxp.jar"/>
|
||||||
|
<property name="resolver.jar" value="${lib2.dir}/resolver.jar"/>
|
||||||
|
<property name="dom4j.jar" value="${lib2.dir}/dom4j-1.5.1.jar"/>
|
||||||
|
+ <property name="glibj.jar" value="/usr/share/java/glibj.jar"/>
|
||||||
|
|
||||||
|
<property name="excludes" value=".clover, .DS_Store, **/.DS_Store, **/.thumbnails/**, clover_html/**, clover/**, xom.gif, data/XInclude-Test-Suite/**, data/xmlconf/**, data/canonical/xmlconf/**, data/oasis*/**, **/testresults/**, **/pantry/**, **/workspace/**, **/junit*properties, **/.nautilus-metafile.xml, website/**, **/.project, **/.classpath, build/**, dist/**, .settings/**, lib2/**, xom.fb, jester*, trademark*"/>
|
||||||
|
|
||||||
|
@@ -95,6 +96,7 @@ subject line. The XOM home page is http:
|
||||||
|
<pathelement location="${junit.jar}"/>
|
||||||
|
<pathelement location="${jaxen.dir}"/>
|
||||||
|
<pathelement location="${servlet.jar}"/>
|
||||||
|
+ <pathelement location="${glibj.jar}"/>
|
||||||
|
</path>
|
||||||
|
|
||||||
|
<path id="run.class.path">
|
||||||
|
Index: jdom-1.0/jdom-1.0/build.xml
|
||||||
|
===================================================================
|
||||||
|
--- jdom-1.0.orig/jdom-1.0/build.xml
|
||||||
|
+++ jdom-1.0/jdom-1.0/build.xml
|
||||||
|
@@ -68,12 +68,14 @@ For instructions on how to build JDOM, p
|
||||||
|
<property name="parser.jar" value="${lib.dir}/xerces.jar"/>
|
||||||
|
<property name="jdom-core" value="${build.dest}"/>
|
||||||
|
<property name="jaxen.lib.dir" value="${lib.dir}"/>
|
||||||
|
+ <property name="glibj.jar" value="/usr/share/java/glibj.jar"/>
|
||||||
|
|
||||||
|
<!-- Compilation class path -->
|
||||||
|
<path id="compile.class.path">
|
||||||
|
<pathelement location="${xml-apis.jar}"/>
|
||||||
|
<pathelement location="${parser.jar}"/>
|
||||||
|
<pathelement location="${jaxen.lib.dir}"/>
|
||||||
|
+ <pathelement location="${glibj.jar}"/>
|
||||||
|
|
||||||
|
<fileset dir="${jaxen.lib.dir}">
|
||||||
|
<include name="jaxen-*.jar"/>
|
171
java150_build.patch
Normal file
171
java150_build.patch
Normal file
@ -0,0 +1,171 @@
|
|||||||
|
Index: jdom-1.0/XOM/build.xml
|
||||||
|
===================================================================
|
||||||
|
--- jdom-1.0.orig/XOM/build.xml
|
||||||
|
+++ jdom-1.0/XOM/build.xml
|
||||||
|
@@ -381,6 +381,7 @@ XOM Build file
|
||||||
|
<mkdir dir="${build.javadocs}"/>
|
||||||
|
|
||||||
|
<javadoc packagenames="nu.xom.xslt, nu.xom.canonical, nu.xom.xinclude, nu.xom, nu.xom.converters"
|
||||||
|
+ source="1.4"
|
||||||
|
sourcepath="${build.src}"
|
||||||
|
destdir="${build.javadocs}"
|
||||||
|
author="true"
|
||||||
|
@@ -437,6 +438,7 @@ XOM Build file
|
||||||
|
destdir="${build.javadocs}"
|
||||||
|
author="true"
|
||||||
|
version="true"
|
||||||
|
+ source="1.4"
|
||||||
|
overview="overview.html"
|
||||||
|
use="true"
|
||||||
|
splitindex="true"
|
||||||
|
Index: jdom-1.0/dom4j-1.6.1/build.xml
|
||||||
|
===================================================================
|
||||||
|
--- jdom-1.0.orig/dom4j-1.6.1/build.xml
|
||||||
|
+++ jdom-1.0/dom4j-1.6.1/build.xml
|
||||||
|
@@ -154,6 +154,7 @@
|
||||||
|
<!-- =================================================================== -->
|
||||||
|
<target name="compile-test" depends="compile">
|
||||||
|
<javac srcdir="${test.dir}"
|
||||||
|
+ source="1.4" target="1.4"
|
||||||
|
destdir="${build.dest}"
|
||||||
|
debug="${debug}"
|
||||||
|
optimize="${optimize}"
|
||||||
|
@@ -167,6 +168,7 @@
|
||||||
|
<!-- =================================================================== -->
|
||||||
|
<target name="samples" depends="compile,prepare-samples,prepare-jaxb">
|
||||||
|
<javac srcdir="src/samples"
|
||||||
|
+ source="1.4" target="1.4"
|
||||||
|
destdir="${build.dest}"
|
||||||
|
debug="${debug}"
|
||||||
|
optimize="${optimize}"
|
||||||
|
@@ -189,6 +191,7 @@
|
||||||
|
<target name="javadoc" depends="prepare-src">
|
||||||
|
<mkdir dir="${build.javadocs}"/>
|
||||||
|
<javadoc packagenames="${packages}"
|
||||||
|
+ source="1.4"
|
||||||
|
sourcepath="${build.src}"
|
||||||
|
destdir="${build.javadocs}"
|
||||||
|
author="true"
|
||||||
|
@@ -208,6 +211,7 @@
|
||||||
|
<target name="release-javadoc" depends="prepare-src">
|
||||||
|
<mkdir dir="${build.javadocs}"/>
|
||||||
|
<javadoc packagenames="${packages}"
|
||||||
|
+ source="1.4"
|
||||||
|
sourcepath="${build.src}"
|
||||||
|
destdir="${build.javadocs}"
|
||||||
|
author="true"
|
||||||
|
@@ -225,6 +229,7 @@
|
||||||
|
|
||||||
|
<mkdir dir="${build.apidocs}"/>
|
||||||
|
<javadoc packagenames="${api.packages}"
|
||||||
|
+ source="1.4"
|
||||||
|
sourcepath="${build.src}"
|
||||||
|
destdir="${build.apidocs}"
|
||||||
|
author="true"
|
||||||
|
@@ -351,7 +356,9 @@
|
||||||
|
<produces dir="${build.generated.src}" />
|
||||||
|
</xjc>
|
||||||
|
|
||||||
|
- <javac destdir="${build.dest}">
|
||||||
|
+ <javac
|
||||||
|
+ source="1.4" target="1.4"
|
||||||
|
+ destdir="${build.dest}">
|
||||||
|
<src path="${build.generated.src}"/>
|
||||||
|
<classpath>
|
||||||
|
<path refid="classpath.jaxb"/>
|
||||||
|
Index: jdom-1.0/jdom-1.0/build.xml
|
||||||
|
===================================================================
|
||||||
|
--- jdom-1.0.orig/jdom-1.0/build.xml
|
||||||
|
+++ jdom-1.0/jdom-1.0/build.xml
|
||||||
|
@@ -164,6 +164,7 @@ For instructions on how to build JDOM, p
|
||||||
|
classpathref="compile.class.path"/>
|
||||||
|
|
||||||
|
<javac srcdir="${build.src}"
|
||||||
|
+ source="1.4" target="1.4"
|
||||||
|
destdir="${build.dest}"
|
||||||
|
debug="${compile.debug}"
|
||||||
|
optimize="${compile.optimize}"
|
||||||
|
@@ -181,6 +182,7 @@ For instructions on how to build JDOM, p
|
||||||
|
<target name="about"
|
||||||
|
description="Compiles the About code">
|
||||||
|
<javac srcdir="${package.dir}"
|
||||||
|
+ source="1.4" target="1.4"
|
||||||
|
destdir="${build.dest}"
|
||||||
|
debug="${compile.debug}"
|
||||||
|
optimize="${compile.optimize}"
|
||||||
|
@@ -195,6 +197,7 @@ For instructions on how to build JDOM, p
|
||||||
|
<target name="samples" depends="prepare-samples,package"
|
||||||
|
description="Compiles the samples directory">
|
||||||
|
<javac srcdir="${samples.dest}"
|
||||||
|
+ source="1.4" target="1.4"
|
||||||
|
destdir="${samples.dest}"
|
||||||
|
debug="${compile.debug}"
|
||||||
|
optimize="${compile.optimize}"
|
||||||
|
@@ -234,6 +237,7 @@ For instructions on how to build JDOM, p
|
||||||
|
description="Creates the API documentation">
|
||||||
|
<mkdir dir="${build.javadocs}"/>
|
||||||
|
<javadoc packagenames="${packages}"
|
||||||
|
+ source="1.4"
|
||||||
|
sourcepath="${build.src}"
|
||||||
|
destdir="${build.javadocs}"
|
||||||
|
author="true"
|
||||||
|
@@ -257,6 +261,7 @@ For instructions on how to build JDOM, p
|
||||||
|
description="Creates the API documentation with links to JDK 1.4 classes">
|
||||||
|
<mkdir dir="${build.javadocs}"/>
|
||||||
|
<javadoc packagenames="${packages}"
|
||||||
|
+ source="1.4"
|
||||||
|
sourcepath="${build.src}"
|
||||||
|
destdir="${build.javadocs}"
|
||||||
|
author="true"
|
||||||
|
Index: jdom-1.0/saxpath-1.0-FCS/build.xml
|
||||||
|
===================================================================
|
||||||
|
--- jdom-1.0.orig/saxpath-1.0-FCS/build.xml
|
||||||
|
+++ jdom-1.0/saxpath-1.0-FCS/build.xml
|
||||||
|
@@ -153,6 +153,7 @@
|
||||||
|
<!-- =================================================================== -->
|
||||||
|
<target name="compile" depends="collections">
|
||||||
|
<javac srcdir="${build.src}"
|
||||||
|
+ source="1.4" target="1.4"
|
||||||
|
destdir="${build.dest}"
|
||||||
|
debug="${debug}"
|
||||||
|
optimize="${optimize}"
|
||||||
|
@@ -164,6 +165,7 @@
|
||||||
|
<!-- =================================================================== -->
|
||||||
|
<target name="compile-test" depends="compile">
|
||||||
|
<javac srcdir="${test.dir}"
|
||||||
|
+ source="1.4" target="1.4"
|
||||||
|
destdir="${build.dest}"
|
||||||
|
debug="${debug}"
|
||||||
|
optimize="${optimize}"
|
||||||
|
@@ -178,6 +180,7 @@
|
||||||
|
<!-- =================================================================== -->
|
||||||
|
<target name="samples" depends="prepare-samples,collections">
|
||||||
|
<javac srcdir="${build.src}"
|
||||||
|
+ source="1.4" target="1.4"
|
||||||
|
destdir="${build.dest}"
|
||||||
|
debug="${debug}"
|
||||||
|
optimize="${optimize}"/>
|
||||||
|
@@ -218,6 +221,7 @@
|
||||||
|
author="true"
|
||||||
|
version="true"
|
||||||
|
use="true"
|
||||||
|
+ source="1.4"
|
||||||
|
splitindex="true"
|
||||||
|
noindex="false"
|
||||||
|
windowtitle="${Name} Full JavaDoc"
|
||||||
|
@@ -232,6 +236,7 @@
|
||||||
|
<target name="release-javadoc" depends="prepare-src,collections,doc">
|
||||||
|
<mkdir dir="${build.javadocs}"/>
|
||||||
|
<javadoc packagenames="${packages}"
|
||||||
|
+ source="1.4"
|
||||||
|
sourcepath="${build.src}"
|
||||||
|
destdir="${build.javadocs}"
|
||||||
|
author="true"
|
||||||
|
@@ -254,6 +259,7 @@
|
||||||
|
author="true"
|
||||||
|
version="true"
|
||||||
|
use="true"
|
||||||
|
+ source="1.4"
|
||||||
|
splitindex="true"
|
||||||
|
noindex="false"
|
||||||
|
windowtitle="${Name} API"
|
12
jdom-1.0-build.xml.patch
Normal file
12
jdom-1.0-build.xml.patch
Normal file
@ -0,0 +1,12 @@
|
|||||||
|
Index: jdom-1.0/jdom-1.0/build.xml
|
||||||
|
===================================================================
|
||||||
|
--- jdom-1.0.orig/jdom-1.0/build.xml
|
||||||
|
+++ jdom-1.0/jdom-1.0/build.xml
|
||||||
|
@@ -73,6 +73,7 @@ For instructions on how to build JDOM, p
|
||||||
|
<path id="compile.class.path">
|
||||||
|
<pathelement location="${xml-apis.jar}"/>
|
||||||
|
<pathelement location="${parser.jar}"/>
|
||||||
|
+ <pathelement location="${jaxen.lib.dir}"/>
|
||||||
|
|
||||||
|
<fileset dir="${jaxen.lib.dir}">
|
||||||
|
<include name="jaxen-*.jar"/>
|
3
jdom-1.0.tar.bz2
Normal file
3
jdom-1.0.tar.bz2
Normal file
@ -0,0 +1,3 @@
|
|||||||
|
version https://git-lfs.github.com/spec/v1
|
||||||
|
oid sha256:607b1d4b21e64ff7ae40776191d2f6b55ca999c6eecf18e27ccc19f882fae574
|
||||||
|
size 3449689
|
23
jdom.changes
Normal file
23
jdom.changes
Normal file
@ -0,0 +1,23 @@
|
|||||||
|
-------------------------------------------------------------------
|
||||||
|
Wed Jan 23 15:58:46 CET 2008 - mvyskocil@suse.cz
|
||||||
|
|
||||||
|
- fixed beta build
|
||||||
|
|
||||||
|
-------------------------------------------------------------------
|
||||||
|
Thu Mar 29 12:15:04 CEST 2007 - dbornkessel@suse.de
|
||||||
|
|
||||||
|
- added unzip to build requires
|
||||||
|
|
||||||
|
-------------------------------------------------------------------
|
||||||
|
Mon Jan 15 12:55:41 CET 2007 - dbornkessel@suse.de
|
||||||
|
|
||||||
|
- removed xml-commons-apis build req. (Bug #232127)
|
||||||
|
|
||||||
|
-------------------------------------------------------------------
|
||||||
|
Thu Sep 28 10:05:09 CEST 2006 - dbornkessel@suse.de
|
||||||
|
|
||||||
|
- first versions
|
||||||
|
- fixes necessary to compile with Java 1.5.0
|
||||||
|
- set source="1.4" and target="1.4" for ant "javac" tasks
|
||||||
|
- set source="1.4" for ant "javadoc" tasks
|
||||||
|
|
313
jdom.spec
Normal file
313
jdom.spec
Normal file
@ -0,0 +1,313 @@
|
|||||||
|
#
|
||||||
|
# spec file for package jdom (Version 1.0)
|
||||||
|
#
|
||||||
|
# Copyright (c) 2008 SUSE LINUX Products GmbH, Nuernberg, Germany.
|
||||||
|
# This file and all modifications and additions to the pristine
|
||||||
|
# package are under the same license as the package itself.
|
||||||
|
#
|
||||||
|
# Please submit bugfixes or comments via http://bugs.opensuse.org/
|
||||||
|
#
|
||||||
|
|
||||||
|
# norootforbuild
|
||||||
|
|
||||||
|
Name: jdom
|
||||||
|
%define xom_version 1.2b1
|
||||||
|
%define xom_suffix ""
|
||||||
|
%define xom_dir %{_builddir}/%{name}-%{jdom_version}/XOM
|
||||||
|
%define xom_included_jaxen_archive jaxen-%{jaxen_version}-src.zip
|
||||||
|
%define jdom_version 1.0
|
||||||
|
%define jdom_suffix ""
|
||||||
|
%define dom4j_version 1.6.1
|
||||||
|
%define dom4j_suffix ""
|
||||||
|
%define dom4j_dir %{_builddir}/%{name}-%{jdom_version}/dom4j-%{dom4j_version}
|
||||||
|
%define saxpath_version 1.0
|
||||||
|
%define saxpath_suffix -FCS
|
||||||
|
%define saxpath_dir %{_builddir}/%{name}-%{jdom_version}/saxpath-%{saxpath_version}%{saxpath_suffix}
|
||||||
|
%define jaxen_version 1.1
|
||||||
|
%define jaxen_suffix ""
|
||||||
|
%define jaxen_dir %{_builddir}/%{name}-%{jdom_version}/jaxen
|
||||||
|
%define jdom_dir %{_builddir}/%{name}-%{jdom_version}/%{name}-%{jdom_version}
|
||||||
|
%define stage1_build_dir %{_builddir}/build
|
||||||
|
#<<< defines
|
||||||
|
#>>> package info
|
||||||
|
#>>> jdom
|
||||||
|
BuildRequires: ant ant-junit gcc-java junit servletapi5 xalan-j2 xerces-j2
|
||||||
|
BuildRequires: classpath fastjar gcc-gij gjdoc java-1_4_2-gcj-compat java-1_4_2-gcj-compat-devel unzip
|
||||||
|
#BuildRequires: java2-devel-packages
|
||||||
|
License: The Apache Software License
|
||||||
|
Group: Development/Libraries/Java
|
||||||
|
AutoReqProv: on
|
||||||
|
Version: 1.0
|
||||||
|
Release: 156
|
||||||
|
Summary: JDOM is a Java Representation of an XML Document
|
||||||
|
Url: http://www.jdom.org
|
||||||
|
Source0: %{name}-%{version}.tar.bz2
|
||||||
|
Source1: saxpath-%{saxpath_version}.tar.bz2
|
||||||
|
Source2: xom-%{xom_version}-src.tar.bz2
|
||||||
|
Source3: dom4j-1.6.1.tar.bz2
|
||||||
|
Patch0: jdom-1.0-build.xml.patch
|
||||||
|
Patch1: include-glibj.jar.patch
|
||||||
|
Patch150: java150_build.patch
|
||||||
|
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
||||||
|
BuildArch: noarch
|
||||||
|
#ExclusiveArch: %ix86
|
||||||
|
|
||||||
|
%description
|
||||||
|
JDOM is, quite simply, a Java representation of an XML document. JDOM
|
||||||
|
provides a way to represent that document for easy and efficient
|
||||||
|
reading, manipulation, and writing. It has a straightforward API, is
|
||||||
|
lightweight and fast, and is optimized for the Java programmer. It is
|
||||||
|
an alternative to DOM and SAX, although it integrates well with both
|
||||||
|
DOM and SAX.
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
Authors:
|
||||||
|
--------
|
||||||
|
Jason Hunter <jhunter@servlets.com>
|
||||||
|
Brett McLaughlin <brett@newInstance.com>
|
||||||
|
|
||||||
|
%package -n saxpath
|
||||||
|
Version: 1.0_FCS
|
||||||
|
Release: 156
|
||||||
|
Summary: SAXPath is an event-based API for XPath parsers
|
||||||
|
Group: Development/Libraries/Java
|
||||||
|
|
||||||
|
%description -n saxpath
|
||||||
|
SAXPath is an event-based API for XPath parsers, that is, for parsers
|
||||||
|
which parse XPath expressions. SAXPath is intended to be for XPath
|
||||||
|
what SAX is for XML. Note that the SAXPath package only parses XPath
|
||||||
|
expressions; it does not evaluate them, or even provide an object
|
||||||
|
structure for representing them once they have been parsed.
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
Authors:
|
||||||
|
--------
|
||||||
|
Bob McWhirter
|
||||||
|
James Strachan
|
||||||
|
David Megginson
|
||||||
|
Erwin Bolwidt
|
||||||
|
Mark A. Belonga
|
||||||
|
Christian Nentwich
|
||||||
|
Alexander Day Chaffee
|
||||||
|
Jan Dvorak
|
||||||
|
Attila Szegedi
|
||||||
|
Peter Royal
|
||||||
|
Scott Sanders
|
||||||
|
Brian Ewins
|
||||||
|
Elliotte Rusty Harold
|
||||||
|
|
||||||
|
David Peterson
|
||||||
|
Mark Wilson
|
||||||
|
Jacob Kjome
|
||||||
|
Michael Brennan
|
||||||
|
Jason Hunter
|
||||||
|
Brett Mclaughlin
|
||||||
|
Bradley S. Huffman
|
||||||
|
K. Ari Krupnikov
|
||||||
|
Paul R. Brown
|
||||||
|
Guoliang Cao
|
||||||
|
Jérôme Nègre
|
||||||
|
Eddie McGreal
|
||||||
|
Steen Lehmann
|
||||||
|
|
||||||
|
%package -n xom
|
||||||
|
Version: 1.0_FCS
|
||||||
|
Release: 156
|
||||||
|
Summary: XOM™ is a new XML object model
|
||||||
|
Group: Development/Languages/Java
|
||||||
|
|
||||||
|
%description -n xom
|
||||||
|
XOM is designed to be easy to learn and easy to use. It works very
|
||||||
|
straight-forwardly, and has a very shallow learning curve. Assuming
|
||||||
|
you're already familiar with XML, you should be able to get up and
|
||||||
|
running with XOM very quickly.
|
||||||
|
|
||||||
|
XOM is the only XML API that makes no compromises on correctness. XOM
|
||||||
|
only accepts namespace well-formed XML documents, and only allows you
|
||||||
|
to create namespace well-formed XML documents. (In fact, it's a little
|
||||||
|
stricter than that: it actually guarantees that all documents are
|
||||||
|
round-trippable and have well-defined XML infosets.) XOM manages your
|
||||||
|
XML so you don't have to. With XOM, you can focus on the unique value
|
||||||
|
of your application, and trust XOM to get the XML right.
|
||||||
|
|
||||||
|
XOM is fairly unique in that it is a dual streaming/tree-based API.
|
||||||
|
Individual nodes in the tree can be processed while the document is
|
||||||
|
still being built. The enables XOM programs to operate almost as fast
|
||||||
|
as the underlying parser can supply data. You don't need to wait for
|
||||||
|
the document to be completely parsed before you can start working with
|
||||||
|
it.
|
||||||
|
|
||||||
|
XOM is very memory efficient. If you read an entire document into
|
||||||
|
memory, XOM uses as little memory as possible. More importantly, XOM
|
||||||
|
allows you to filter documents as they're built so you don't have to
|
||||||
|
build the parts of the tree you aren't interested in. For instance, you
|
||||||
|
can skip building text nodes that only represent boundary white space,
|
||||||
|
if such white space is not significant in your application. You can
|
||||||
|
even process a document piece by piece and throw away each piece when
|
||||||
|
you're done with it. XOM has been used to process documents that are
|
||||||
|
gigabytes in size.
|
||||||
|
|
||||||
|
XOM includes built-in support for a number of XML technologies
|
||||||
|
including Namespaces in XML, XPath, XSLT, XInclude, xml:id, and
|
||||||
|
Canonical XML. XOM documents can be converted to and from SAX and DOM.
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
Authors:
|
||||||
|
--------
|
||||||
|
Elliotte Rusty Harold
|
||||||
|
|
||||||
|
%package -n jaxen
|
||||||
|
Version: 1.0_FCS
|
||||||
|
Release: 156
|
||||||
|
Summary: The jaxen project is a Java XPath Engine
|
||||||
|
Group: Development/Libraries/Java
|
||||||
|
|
||||||
|
%description -n jaxen
|
||||||
|
Jaxen is a universal object model walker, capable of evaluating XPath
|
||||||
|
expressions across multiple models. Currently supported are dom4j,
|
||||||
|
JDOM, and DOM.
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
Authors:
|
||||||
|
--------
|
||||||
|
Bob McWhirter
|
||||||
|
James Strachan
|
||||||
|
David Megginson
|
||||||
|
Erwin Bolwidt
|
||||||
|
Mark A. Belonga
|
||||||
|
Christian Nentwich
|
||||||
|
Alexander Day Chaffee
|
||||||
|
Jan Dvorak
|
||||||
|
Attila Szegedi
|
||||||
|
Peter Royal
|
||||||
|
Scott Sanders
|
||||||
|
Brian Ewins
|
||||||
|
Elliotte Rusty Harold
|
||||||
|
|
||||||
|
David Peterson
|
||||||
|
Mark Wilson
|
||||||
|
Jacob Kjome
|
||||||
|
Michael Brennan
|
||||||
|
Jason Hunter
|
||||||
|
Brett Mclaughlin
|
||||||
|
Bradley S. Huffman
|
||||||
|
K. Ari Krupnikov
|
||||||
|
Paul R. Brown
|
||||||
|
Guoliang Cao
|
||||||
|
Jérôme Nègre
|
||||||
|
Eddie McGreal
|
||||||
|
Steen Lehmann
|
||||||
|
|
||||||
|
%prep
|
||||||
|
%setup -c foo -a 1 -a 2 -a 3
|
||||||
|
unzip %{xom_dir}/%{xom_included_jaxen_archive}
|
||||||
|
mkdir %{stage1_build_dir}
|
||||||
|
# delete all inlcuded jar files:
|
||||||
|
find . -name "*.jar" -delete -name "*.class" -delete
|
||||||
|
%patch0 -p1
|
||||||
|
%patch1 -p1
|
||||||
|
%patch150 -p1
|
||||||
|
#<<< prep
|
||||||
|
#>>> build
|
||||||
|
|
||||||
|
%build
|
||||||
|
LIBGCJ=$(ls /usr/share/java/libgcj* | tail -n1 )
|
||||||
|
LIBGCJ=$(basename $LIBGCJ)
|
||||||
|
export JAVACMD_OPTS="-Xss8M -C -ftarget=1.4"
|
||||||
|
export GC_MAXIMUM_HEAP_SIZE="134217728" #128M
|
||||||
|
export JAVACMD="javac -C ${JAVACMD_OPTS} "
|
||||||
|
i=0
|
||||||
|
for file in $(find %{jaxen_dir}/src/java/main/ %{jdom_dir}/src/java/ %{saxpath_dir}/src/java/main/ %{xom_dir}/src/ %{dom4j_dir}/src/java -name "*.java")
|
||||||
|
do
|
||||||
|
i=$((i+1))
|
||||||
|
echo compiling class \# $i
|
||||||
|
${JAVACMD} -classpath %{stage1_build_dir}:$(build-classpath $LIBGCJ xerces-j2 xalan-j2 xalan-j2-serializer junit servletapi5):%{jaxen_dir}/src/java/main/:%{jdom_dir}/src/java/:%{saxpath_dir}/src/java/main/:%{xom_dir}/src/:%{dom4j_dir}/src/java -target 1.4 -source 1.4 -d %{stage1_build_dir} $file || FAILED_FILES="$FAILED_FILES $file"
|
||||||
|
done
|
||||||
|
## some files faile with the ibm compiler ... lets try them wiht the gcj:
|
||||||
|
#for file in $FAILED_FILES
|
||||||
|
#do
|
||||||
|
# echo compiling class with gcj:
|
||||||
|
# gcj -C --classpath %{stage1_build_dir}:$(build-classpath $LIBGCJ xerces-j2 xalan-j2 xalan-j2-serializer junit servletapi5):%{jaxen_dir}/src/java/main/:%{jdom_dir}/src/java/:%{saxpath_dir}/src/java/main/:%{xom_dir}/src/:%{dom4j_dir}/src/java -d %{stage1_build_dir} $file || :
|
||||||
|
#done
|
||||||
|
#
|
||||||
|
pushd %{jdom_dir}
|
||||||
|
ant -Dparser.jar=$(build-classpath xerces-j2) \
|
||||||
|
-Dxml-apis.jar=$(build-classpath xml-commons-apis) \
|
||||||
|
-Dglibj.jar=$(build-classpath glibj) \
|
||||||
|
-Djaxen.lib.dir=%{stage1_build_dir} package
|
||||||
|
mv build/jdom.jar %{_builddir}/jdom-%{jdom_version}.jar
|
||||||
|
popd
|
||||||
|
pushd %{jaxen_dir}/src/java/main
|
||||||
|
mkdir build
|
||||||
|
#mkdir %{_builddir}/jaxen-excluded
|
||||||
|
#mv org/jaxen/dom4j %{_builddir}/jaxen-excluded
|
||||||
|
${JAVACMD} -classpath $(build-classpath glibj):%{_builddir}/jdom-%{jdom_version}.jar:%{stage1_build_dir} -d build/ $(find . -name "*.java")
|
||||||
|
cd build
|
||||||
|
jar -cf %{_builddir}/jaxen-%{jaxen_version}.jar *
|
||||||
|
popd
|
||||||
|
pushd %{saxpath_dir}
|
||||||
|
mkdir src/conf
|
||||||
|
touch src/conf/MANIFEST.MF
|
||||||
|
CLASSPATH=$(build-classpath glibj):%{_builddir}/jaxen-%{jaxen_version}.jar:%{_builddir}/jdom-%{jdom_version}.jar:%{stage1_build_dir} ant package
|
||||||
|
mv build/saxpath.jar %{_builddir}/saxpath-%{saxpath_version}.jar
|
||||||
|
popd
|
||||||
|
pushd %{xom_dir}
|
||||||
|
ant \
|
||||||
|
-Djaxen.dir=%{stage1_build_dir} \
|
||||||
|
-Dxml-apis.jar=$(build-classpath xml-commons-apis) \
|
||||||
|
-Dparser.jar=$(build-classpath xerces-j2) \
|
||||||
|
-Dxslt.jar=$(build-classpath xalan-j2) \
|
||||||
|
-Dserializer.jar=$(build-classpath xalan-j2-serializer) \
|
||||||
|
-Djunit.jar=$(build-classpath junit) \
|
||||||
|
-Dresolver.jar=$(build-classpath xml-commons-resolver) \
|
||||||
|
-Ddom4j.jar=%{stage1_build_dir} \
|
||||||
|
-Dglibj.jar=$(build-classpath glibj) \
|
||||||
|
compile compile15 jar
|
||||||
|
mv build/xom-%{xom_version}.jar %{_builddir}
|
||||||
|
popd
|
||||||
|
#<<< build
|
||||||
|
|
||||||
|
%install
|
||||||
|
mkdir -p $RPM_BUILD_ROOT/%{_javadir}
|
||||||
|
mv %{_builddir}/*.jar $RPM_BUILD_ROOT/%{_javadir}
|
||||||
|
ln -sf %{_javadir}/jdom-%{jdom_version}.jar $RPM_BUILD_ROOT/%{_javadir}/jdom.jar
|
||||||
|
ln -sf %{_javadir}/jaxen-%{jaxen_version}.jar $RPM_BUILD_ROOT/%{_javadir}/jaxen.jar
|
||||||
|
ln -sf %{_javadir}/saxpath-%{saxpath_version}.jar $RPM_BUILD_ROOT/%{_javadir}/saxpath.jar
|
||||||
|
ln -sf %{_javadir}/xom-%{xom_version}.jar $RPM_BUILD_ROOT/%{_javadir}/xom.jar
|
||||||
|
|
||||||
|
%clean
|
||||||
|
rm -rf $RPM_BUILD_ROOT
|
||||||
|
|
||||||
|
%files
|
||||||
|
%defattr(-,root,root)
|
||||||
|
%{_javadir}/jdom*.jar
|
||||||
|
|
||||||
|
%files -n xom
|
||||||
|
%defattr(-,root,root)
|
||||||
|
%{_javadir}/xom*.jar
|
||||||
|
|
||||||
|
%files -n saxpath
|
||||||
|
%defattr(-,root,root)
|
||||||
|
%{_javadir}/saxpath*.jar
|
||||||
|
|
||||||
|
%files -n jaxen
|
||||||
|
%defattr(-,root,root)
|
||||||
|
%{_javadir}/jaxen*.jar
|
||||||
|
# vim:fdm=marker:foldmarker=#>>>,#<<<:foldcolumn=6:foldlevel=42:
|
||||||
|
|
||||||
|
%changelog
|
||||||
|
* Wed Jan 23 2008 mvyskocil@suse.cz
|
||||||
|
- fixed beta build
|
||||||
|
* Thu Mar 29 2007 dbornkessel@suse.de
|
||||||
|
- added unzip to build requires
|
||||||
|
* Mon Jan 15 2007 dbornkessel@suse.de
|
||||||
|
- removed xml-commons-apis build req. (Bug #232127)
|
||||||
|
* Thu Sep 28 2006 dbornkessel@suse.de
|
||||||
|
- first versions
|
||||||
|
- fixes necessary to compile with Java 1.5.0
|
||||||
|
- set source="1.4" and target="1.4" for ant "javac" tasks
|
||||||
|
- set source="1.4" for ant "javadoc" tasks
|
3
saxpath-1.0.tar.bz2
Normal file
3
saxpath-1.0.tar.bz2
Normal file
@ -0,0 +1,3 @@
|
|||||||
|
version https://git-lfs.github.com/spec/v1
|
||||||
|
oid sha256:67863cb4111628f382b8f7cd7c628ff4750d23c1a6fce9cee48c091ac5a411c2
|
||||||
|
size 2125559
|
3
xom-1.2b1-src.tar.bz2
Normal file
3
xom-1.2b1-src.tar.bz2
Normal file
@ -0,0 +1,3 @@
|
|||||||
|
version https://git-lfs.github.com/spec/v1
|
||||||
|
oid sha256:63e96ced3183a62a6aa5ef6c8bab0106d9931cafe0036905eab8a7904c12dda7
|
||||||
|
size 4904084
|
Loading…
Reference in New Issue
Block a user