Accepting request 64430 from Java:packages

Accepted submit request 64430 from user mvyskocil

OBS-URL: https://build.opensuse.org/request/show/64430
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/jdom?expand=0&rev=10
This commit is contained in:
Sascha Peilicke
2011-03-18 09:02:18 +00:00
committed by Git OBS Bridge
parent 498bf04a30
commit ebd2387532
2 changed files with 28 additions and 91 deletions

View File

@@ -1,3 +1,19 @@
-------------------------------------------------------------------
Thu Mar 17 14:48:00 UTC 2011 - mvyskocil@suse.cz
- move to gcj back - the java.lang.StackOverflow is nothing nice
-------------------------------------------------------------------
Fri Mar 11 12:48:25 UTC 2011 - mvyskocil@suse.cz
- build using openjdk, split BR one per-line
-------------------------------------------------------------------
Fri Mar 11 12:46:55 UTC 2011 - mvyskocil@suse.cz
- build using openjdk, write one BuildRequire per line,
no authors in description
-------------------------------------------------------------------
Wed May 20 11:44:18 CEST 2009 - mvyskocil@suse.cz

103
jdom.spec
View File

@@ -17,8 +17,6 @@
# norootforbuild
Name: jdom
%define xom_version 1.2b1
%define xom_suffix ""
%define xom_dir %{_builddir}/%{name}-%{jdom_version}/XOM
@@ -36,11 +34,8 @@ Name: jdom
%define jaxen_dir %{_builddir}/%{name}-%{jdom_version}/jaxen-%{jaxen_version}
%define jdom_dir %{_builddir}/%{name}-%{jdom_version}/%{name}-%{jdom_version}
%define stage1_build_dir %{_builddir}/build
#<<< defines
#>>> package info
#>>> jdom
BuildRequires: ant ant-junit junit servletapi5 xalan-j2 xerces-j2
BuildRequires: fastjar java-1_5_0-gcj-compat-devel unzip
Name: jdom
License: The Apache Software License
Group: Development/Libraries/Java
AutoReqProv: on
@@ -64,7 +59,15 @@ Patch1: include-glibj.jar.patch
Patch2: jdom-1.1-xom-get-jaxen.patch
BuildRoot: %{_tmppath}/%{name}-%{version}-build
BuildArch: noarch
#ExclusiveArch: %ix86
BuildRequires: ant
BuildRequires: ant-junit
BuildRequires: junit
BuildRequires: servletapi5
BuildRequires: xalan-j2
BuildRequires: xerces-j2
BuildRequires: java-1_5_0-gcj-compat-devel
#!BuildIgnore: java-1_6_0-openjdk java-1_6_0-openjdk-devel
BuildRequires: unzip
%description
JDOM is, quite simply, a Java representation of an XML document. JDOM
@@ -74,13 +77,6 @@ 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
License: The Apache Software License
Version: 1.0_FCS
@@ -95,38 +91,6 @@ 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<EFBFBD>r<EFBFBD>me N<EFBFBD>gre
Eddie McGreal
Steen Lehmann
%package -n xom
License: LGPL v2.1 or later
Version: 1.2b1
@@ -170,11 +134,6 @@ 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
License: The Apache Software License
Version: 1.1.1
@@ -187,38 +146,6 @@ 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<EFBFBD>r<EFBFBD>me N<EFBFBD>gre
Eddie McGreal
Steen Lehmann
%prep
%setup -q -c foo -a 1 -a 2 -a 3 -a 4
rm %{xom_dir}/%{xom_included_jaxen_archive}
@@ -249,13 +176,7 @@ do
${JAVACMD} -classpath ${CLASSPATH} -d %{stage1_build_dir} $file || FAILED_FILES="$FAILED_FILES $file"
done
unset CLASSPATH SOURCE_DIRS MAX
## 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) \