SHA256
1
0
forked from pool/ws-jaxme
OBS User unknown 2009-05-31 02:56:32 +00:00 committed by Git OBS Bridge
commit 6d8f4f9c91
9 changed files with 402 additions and 0 deletions

23
.gitattributes vendored Normal file
View 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
View File

@ -0,0 +1 @@
.osc

0
ready Normal file
View File

View File

@ -0,0 +1,3 @@
version https://git-lfs.github.com/spec/v1
oid sha256:39e4a1f6aff304ad70d127988d70234c972eeebda99e2e0c11636144de7f9f6b
size 5204769

29
ws-jaxme-catalog.patch Normal file
View File

@ -0,0 +1,29 @@
--- ./ant/docs.xml.sav 2006-05-19 20:00:29.000000000 -0400
+++ ./ant/docs.xml 2006-05-19 20:01:01.000000000 -0400
@@ -165,7 +165,9 @@
force="${force}"
style="${docbookxsl.home}/html/chunk.xsl">
<xmlcatalog>
- <dtd publicid="-//OASIS//DTD DocBook XML V4.1.2//EN" location="${docbook.home}/docbookx.dtd"/>
+ <catalogpath>
+ <pathelement location="/etc/sgml/catalog"/>
+ </catalogpath>
</xmlcatalog>
</style>
</target>
@@ -180,10 +182,12 @@
force="${force}"
style="${docbookxsl.home}/html/chunk.xsl">
<xmlcatalog>
- <dtd publicid="-//OASIS//DTD DocBook XML V4.1.2//EN" location="${docbook.home}/docbookx.dtd"/>
+ <catalogpath>
+ <pathelement location="/etc/sgml/catalog"/>
+ </catalogpath>
</xmlcatalog>
<factory name="org.apache.xalan.processor.TransformerFactoryImpl"/>
</style>
</target>
</project>
-
\ No newline at end of file
+

11
ws-jaxme-docs_xml.patch Normal file
View File

@ -0,0 +1,11 @@
--- ./ant/docs.xml.sav 2006-05-19 19:59:02.000000000 -0400
+++ ./ant/docs.xml 2006-05-19 19:59:07.000000000 -0400
@@ -69,7 +69,7 @@
<fail>Missing DocBook, terminating.</fail>
</target>
- <target name="Docs.all" depends="javadoc,docbook.html,old.releases,forrest,replace"
+ <target name="Docs.all" depends="javadoc,docbook.html,old.releases"
description="Generates the documentation"/>
<target name="javadoc" depends="all"

158
ws-jaxme-java6.patch Normal file
View File

@ -0,0 +1,158 @@
--- ant/jm.xml
+++ ant/jm.xml
@@ -127,7 +127,6 @@
<target name="JM.compile" depends="dirs,JM.precompile">
<javac classpathref="jaxme.class.path" debug="${debug}"
optimize="${optimize}" destdir="${build.jm.classes}"
- source="1.3" target="1.3"
failonerror="true">
<src>
<pathelement location="${src.jm}"/>
@@ -184,7 +183,6 @@
<target name="JM.localtest" depends="JM.generate">
<javac debug="${debug}"
optimize="${optimize}" destdir="${build.jm.classes}"
- source="1.3" target="1.3"
failonerror="true">
<src>
<pathelement location="${src.jm}"/>
--- src/jaxme/org/apache/ws/jaxme/impl/JMMarshallerImpl.java
+++ src/jaxme/org/apache/ws/jaxme/impl/JMMarshallerImpl.java
@@ -428,6 +428,55 @@
}
public Node getNode(java.lang.Object contentTree) throws JAXBException {
- throw new UnsupportedOperationException("JaxMe doesn't support live DOM views");
+ throw new UnsupportedOperationException("JaxMe doesn't support live DOM views");
}
+
+ public javax.xml.bind.Marshaller.Listener getListener() {
+ throw new RuntimeException("Not implemented method getListener()");
+ }
+
+ public void setListener(javax.xml.bind.Marshaller.Listener listener) {
+ throw new RuntimeException("Not implemented method setListener()");
+ }
+
+ public javax.xml.validation.Schema getSchema() {
+ throw new RuntimeException("Not implemented method getSchema()");
+ }
+
+ public void setSchema(javax.xml.validation.Schema schema) {
+ throw new RuntimeException("Not implemented method setSchema()");
+ }
+
+ public javax.xml.bind.attachment.AttachmentMarshaller getAttachmentMarshaller() {
+ throw new RuntimeException("Not implemented method getAttachmentMarshaller()");
+ }
+
+ public void setAttachmentMarshaller(javax.xml.bind.attachment.AttachmentMarshaller am) {
+ throw new RuntimeException("Not implemented method getAttachmentMarshaller()");
+ }
+
+ public <A extends javax.xml.bind.annotation.adapters.XmlAdapter> A getAdapter(Class<A> type) {
+ throw new RuntimeException("Not implemented method getAdapter()");
+ }
+
+ public <A extends javax.xml.bind.annotation.adapters.XmlAdapter> void setAdapter(Class<A> type, A adapter) {
+ throw new RuntimeException("Not implemented method setAdapter()");
+ }
+
+ public void setAdapter(javax.xml.bind.annotation.adapters.XmlAdapter adapter) {
+ throw new RuntimeException("Not implemented method setAdapter()");
+ }
+
+ public void marshal(Object jaxbElement, javax.xml.stream.XMLEventWriter writer) throws JAXBException {
+ throw new RuntimeException("Not implemented method marshal()");
+ }
+
+ public void marshal(Object jaxbElement, javax.xml.stream.XMLStreamWriter writer) throws JAXBException {
+ throw new RuntimeException("Not implemented method marshal()");
+ }
+
+ public void marshal(Object jaxbElement, java.io.File file) throws JAXBException {
+ throw new RuntimeException("Not implemented method marshal()");
+ }
+
}
--- src/jaxme/org/apache/ws/jaxme/impl/JMUnmarshallerImpl.java
+++ src/jaxme/org/apache/ws/jaxme/impl/JMUnmarshallerImpl.java
@@ -170,11 +170,76 @@
return unmarshal(node);
} else {
throw new IllegalArgumentException("Unknown type of Source: " + pSource.getClass().getName() +
- ", only SAXSource, StreamSource and DOMSource are supported.");
+ ", only SAXSource, StreamSource and DOMSource are supported.");
}
}
-
+
public UnmarshallerHandler getUnmarshallerHandler() {
return new JMUnmarshallerHandlerImpl(this);
}
+
+ public javax.xml.bind.Unmarshaller.Listener getListener() {
+ throw new RuntimeException("Not implemented method getListener()");
+ }
+
+ public void setListener(javax.xml.bind.Unmarshaller.Listener listener) {
+ throw new RuntimeException("Not implemented method setListener()");
+ }
+
+ public <A extends javax.xml.bind.annotation.adapters.XmlAdapter> A getAdapter(Class<A> type) {
+ throw new RuntimeException("Not implemented method getAdapter()");
+ }
+
+ public <A extends javax.xml.bind.annotation.adapters.XmlAdapter> void setAdapter(Class<A> type, A adapter) {
+ throw new RuntimeException("Not implemented method setAdapter()");
+ }
+
+ public void setAdapter(javax.xml.bind.annotation.adapters.XmlAdapter adapter) {
+ throw new RuntimeException("Not implemented method setAdapter()");
+ }
+
+ public javax.xml.validation.Schema getSchema() {
+ throw new RuntimeException("Not implemented method getSchema()");
+ }
+
+ public void setSchema(javax.xml.validation.Schema schema) {
+ throw new RuntimeException("Not implemented method setSchema()");
+ }
+
+ public <T> javax.xml.bind.JAXBElement<T> unmarshal(javax.xml.stream.XMLEventReader reader, Class<T> declaredType) throws JAXBException {
+ throw new RuntimeException("Not implemented method unmarshal()");
+ }
+
+ public Object unmarshal(javax.xml.stream.XMLEventReader reader) throws JAXBException {
+ throw new RuntimeException("Not implemented method unmarshal()");
+ }
+
+ public <T> javax.xml.bind.JAXBElement<T> unmarshal(javax.xml.stream.XMLStreamReader reader, Class<T> declaredType) throws JAXBException {
+ throw new RuntimeException("Not implemented method unmarshal()");
+ }
+
+ public Object unmarshal(javax.xml.stream.XMLStreamReader reader) throws JAXBException {
+ throw new RuntimeException("Not implemented method unmarshal()");
+ }
+
+ public <T> javax.xml.bind.JAXBElement<T> unmarshal(org.w3c.dom.Node node, Class<T> declaredType) throws JAXBException {
+ throw new RuntimeException("Not implemented method unmarshal()");
+ }
+
+ public Object unmarshal(java.io.Reader reader) throws JAXBException {
+ throw new RuntimeException("Not implemented method unmarshal()");
+ }
+
+ public <T> javax.xml.bind.JAXBElement<T> unmarshal(javax.xml.transform.Source source, Class<T> declaredType) {
+ throw new RuntimeException("Not implemented method unmarshal()");
+ }
+
+ public javax.xml.bind.attachment.AttachmentUnmarshaller getAttachmentUnmarshaller() {
+ throw new RuntimeException("Not implemented method getAttachmentUnmarshaller()");
+ }
+
+ public void setAttachmentUnmarshaller(javax.xml.bind.attachment.AttachmentUnmarshaller foo) {
+ throw new RuntimeException("Not implemented method setAttachmentUnmarshaller()");
+ }
+
}

5
ws-jaxme.changes Normal file
View File

@ -0,0 +1,5 @@
-------------------------------------------------------------------
Thu May 14 08:53:05 CEST 2009 - mvyskocil@suse.cz
- Initial SUSE packaging (based on jpackage.org 5.0)

172
ws-jaxme.spec Normal file
View File

@ -0,0 +1,172 @@
#
# spec file for package ws-jaxme (Version 0.5.1)
#
# Copyright (c) 2009 SUSE LINUX Products GmbH, Nuernberg, Germany.
#
# All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed
# upon. The license for this file, and modifications and additions to the
# file, is the same license as for the pristine package itself (unless the
# license for the pristine package is not an Open Source License, in which
# case the license is the MIT License). An "Open Source License" is a
# license that conforms to the Open Source Definition (Version 1.9)
# published by the Open Source Initiative.
# Please submit bugfixes or comments via http://bugs.opensuse.org/
#
%define section free
%define base_name jaxme
Name: ws-jaxme
Version: 0.5.1
Release: 2
Summary: Open source implementation of JAXB
Group: Development/Libraries/Java
License: The Apache Software License
Url: http://ws.apache.org/jaxme/
Source0: ws-jaxme-%{version}-src.tar.bz2
Patch0: ws-jaxme-docs_xml.patch
Patch1: ws-jaxme-catalog.patch
Patch2: ws-jaxme-java6.patch
BuildRequires: jpackage-utils >= 1.5.32
BuildRequires: ant >= 1.6
BuildRequires: ant-apache-resolver
BuildRequires: ant-trax
BuildRequires: antlr
BuildRequires: docbook-xsl-stylesheets
BuildRequires: jaxp_transform_impl
BuildRequires: junit >= 3.8.1
BuildRequires: hsqldb
BuildRequires: log4j
BuildRequires: xalan-j2
BuildRequires: xmldb-api
BuildRequires: xerces-j2
BuildRequires: xml-commons-apis
BuildRequires: xml-commons-resolver
BuildRoot: %{_tmppath}/%{name}-%{version}-build
BuildArch: noarch
%description
A Java/XML binding compiler takes as input a schema description (in
most cases an XML schema, but it may be a DTD, a RelaxNG schema,
a Java class inspected via reflection, or a database schema). The
output is a set of Java classes: * A Java bean class matching the
schema description. (If the schema was obtained via Java
reflection, the original Java bean class.)
* Read a conforming XML document and convert it into the equivalent
Java bean.
* Vice versa, marshal the Java bean back into the original XML
document.
%package javadoc
License: The Apache Software License
Summary: Open source implementation of JAXB
Group: Development/Libraries/Java
%description javadoc
A Java/XML binding compiler takes as input a schema description (in
most cases an XML schema, but it may be a DTD, a RelaxNG schema,
a Java class inspected via reflection, or a database schema). The
output is a set of Java classes: * A Java bean class matching the
schema description. (If the schema was obtained via Java
reflection, the original Java bean class.)
* Read a conforming XML document and convert it into the equivalent
Java bean.
* Vice versa, marshal the Java bean back into the original XML
document.
%package manual
License: The Apache Software License
Summary: Open source implementation of JAXB
Group: Development/Libraries/Java
%description manual
A Java/XML binding compiler takes as input a schema description (in
most cases an XML schema, but it may be a DTD, a RelaxNG schema,
a Java class inspected via reflection, or a database schema). The
output is a set of Java classes: * A Java bean class matching the
schema description. (If the schema was obtained via Java
reflection, the original Java bean class.)
* Read a conforming XML document and convert it into the equivalent
Java bean.
* Vice versa, marshal the Java bean back into the original XML
document.
%prep
%setup -q -n %{name}
find . -name "*.jar" | xargs rm
%patch0 -b .sav
%patch1 -b .sav
%patch2 -b .java6
%build
export OPT_JAR_LIST="ant/ant-trax jaxp_transform_impl ant/ant-apache-resolver"
export CLASSPATH=$(build-classpath \
antlr \
hsqldb \
log4j \
xalan-j2 \
xalan-j2-serializer \
xmldb-api \
xerces-j2 \
xml-commons-apis \
xml-commons-resolver \
junit)
ant all Docs.all \
-Dant.build.javac.source=1.5 -Dant.build.javac.target=1.5 \
-Dbuild.sysclasspath=first \
-Ddocbook.home=/usr/share/xml/docbook \
-Ddocbookxsl.home=/usr/share/xml/docbook/stylesheet/nwalsh/current
%install
install -dm 755 $RPM_BUILD_ROOT%{_javadir}/%{base_name}
for jar in dist/*.jar; do
jbs=`basename ${jar}`
jnm=`echo ${jbs} | sed -e 's|\.jar||'`
install -Dpm 644 ${jar} \
$RPM_BUILD_ROOT%{_javadir}/%{base_name}/ws-${jnm}.jar
done
(cd $RPM_BUILD_ROOT%{_javadir}/%{base_name} && for jar in *-%{version}*; do ln -sf ${jar} `echo $jar| sed "s|-%{version}||g"`; done)
(cd $RPM_BUILD_ROOT%{_javadir}/%{base_name} && for jar in ws-*.jar; do ln -sf ${jar} `echo $jar| sed "s|ws-||g"`; done)
#javadoc
install -dm 755 $RPM_BUILD_ROOT%{_javadocdir}/%{name}-%{version}
cp -pr build/docs/src/documentation/content/apidocs $RPM_BUILD_ROOT%{_javadocdir}/%{name}-%{version}
ln -s %{name}-%{version} $RPM_BUILD_ROOT%{_javadocdir}/%{name} # ghost symlink
#manual
install -dm 755 $RPM_BUILD_ROOT%{_docdir}/%{name}-%{version}
cp -pr build/docs/src/documentation/content/manual $RPM_BUILD_ROOT%{_docdir}/%{name}-%{version}
%clean
rm -rf $RPM_BUILD_ROOT
%files
%defattr(0644,root,root,0755)
%doc LICENSE
%{_javadir}/%{base_name}
%files javadoc
%defattr(0644,root,root,0755)
%{_javadocdir}/%{name}-%{version}
%{_javadocdir}/%{name}
%files manual
%defattr(0644,root,root,0755)
%doc %{_docdir}/%{name}-%{version}
%changelog
* Thu May 14 2009 mvyskocil@suse.cz
- Initial SUSE packaging (based on jpackage.org 5.0)