Sync from SUSE:ALP:Source:Standard:1.0 ws-jaxme revision d138fbbd2d91a66a00deceefb0fe3054

This commit is contained in:
Adrian Schröter 2023-06-07 10:42:51 +02:00
commit ba6afb742f
10 changed files with 633 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

View File

@ -0,0 +1,22 @@
--- ws-jaxme-0.5.2/src/js/org/apache/ws/jaxme/js/pattern/CompiledClassReflector.java 2005-07-28 21:47:58.000000000 +0200
+++ ws-jaxme-0.5.2/src/js/org/apache/ws/jaxme/js/pattern/CompiledClassReflector.java 2017-10-06 17:25:25.213569086 +0200
@@ -34,18 +34,7 @@
* {@link JavaSource}.</p>
*/
protected JavaMethod getMethod(JavaSource pSource, Method pMethod) {
- JavaMethod method = pSource.newJavaMethod(pMethod.getName(),
- JavaQNameImpl.getInstance(pMethod.getReturnType()),
- JavaSource.PUBLIC);
- Class[] classes = pMethod.getParameterTypes();
- for (int i = 0; i < classes.length; i++) {
- method.addParam(classes[i], "arg" + i);
- }
- Class[] exceptions = pMethod.getExceptionTypes();
- for (int i = 0; i < exceptions.length; i++) {
- method.addThrows(exceptions[i]);
- }
- return method;
+ return pSource.newJavaMethod(pMethod);
}
/** Returns the compiled class being used to gather information.

BIN
ws-jaxme-0.5.2-src.tar.bz2 (Stored with Git LFS) Normal file

Binary file not shown.

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/xml/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/xml/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"

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

@ -0,0 +1,176 @@
--- src/jaxme/org/apache/ws/jaxme/impl/JMMarshallerImpl.java
+++ src/jaxme/org/apache/ws/jaxme/impl/JMMarshallerImpl.java
@@ -21,16 +21,22 @@
import java.io.OutputStreamWriter;
import java.io.UnsupportedEncodingException;
import java.io.Writer;
+import java.io.File;
import javax.xml.bind.JAXBException;
import javax.xml.bind.MarshalException;
import javax.xml.bind.Marshaller;
import javax.xml.bind.PropertyException;
+import javax.xml.bind.attachment.AttachmentMarshaller;
+import javax.xml.bind.annotation.adapters.XmlAdapter;
import javax.xml.namespace.QName;
import javax.xml.transform.Result;
import javax.xml.transform.dom.DOMResult;
import javax.xml.transform.sax.SAXResult;
import javax.xml.transform.stream.StreamResult;
+import javax.xml.stream.XMLStreamWriter;
+import javax.xml.stream.XMLEventWriter;
+import javax.xml.validation.Schema;
import org.apache.ws.jaxme.*;
import org.apache.ws.jaxme.JMElement;
@@ -430,4 +436,55 @@
public Node getNode(java.lang.Object contentTree) throws JAXBException {
throw new UnsupportedOperationException("JaxMe doesn't support live DOM views");
}
+
+
+// added to support JDK6
+
+ public void marshal(Object jaxbElement, File output) throws JAXBException {
+ throw new UnsupportedOperationException();
+ }
+
+ public void marshal(Object jaxbElement, XMLStreamWriter writer) throws JAXBException {
+ throw new UnsupportedOperationException();
+ }
+
+ public void marshal(Object jaxbElement, XMLEventWriter writer) throws JAXBException {
+ throw new UnsupportedOperationException();
+ }
+
+ public void setAdapter(XmlAdapter adapter) {
+ throw new UnsupportedOperationException();
+ }
+
+ public void setAdapter(Class type, XmlAdapter adapter) {
+ throw new UnsupportedOperationException();
+ }
+
+ public XmlAdapter getAdapter(Class type) {
+ throw new UnsupportedOperationException();
+ }
+
+ public void setAttachmentMarshaller(AttachmentMarshaller am) {
+ throw new UnsupportedOperationException();
+ }
+
+ public AttachmentMarshaller getAttachmentMarshaller() {
+ throw new UnsupportedOperationException();
+ }
+
+ public void setSchema(Schema schema) {
+ throw new UnsupportedOperationException();
+ }
+
+ public Schema getSchema() {
+ throw new UnsupportedOperationException();
+ }
+
+ public void setListener(Listener listener) {
+ throw new UnsupportedOperationException();
+ }
+
+ public Listener getListener() {
+ throw new UnsupportedOperationException();
+ }
}
--- src/jaxme/org/apache/ws/jaxme/impl/JMUnmarshallerImpl.java
+++ src/jaxme/org/apache/ws/jaxme/impl/JMUnmarshallerImpl.java
@@ -26,6 +26,10 @@
import javax.xml.bind.JAXBException;
import javax.xml.bind.UnmarshalException;
import javax.xml.bind.UnmarshallerHandler;
+import javax.xml.bind.JAXBElement;
+import javax.xml.bind.Unmarshaller;
+import javax.xml.bind.attachment.AttachmentUnmarshaller;
+import javax.xml.bind.annotation.adapters.XmlAdapter;
import javax.xml.parsers.ParserConfigurationException;
import javax.xml.parsers.SAXParser;
import javax.xml.parsers.SAXParserFactory;
@@ -33,6 +37,9 @@
import javax.xml.transform.dom.DOMSource;
import javax.xml.transform.sax.SAXSource;
import javax.xml.transform.stream.StreamSource;
+import javax.xml.stream.XMLStreamReader;
+import javax.xml.stream.XMLEventReader;
+import javax.xml.validation.Schema;
import org.apache.ws.jaxme.JMUnmarshaller;
import org.apache.ws.jaxme.util.DOMSerializer;
@@ -177,4 +184,71 @@
public UnmarshallerHandler getUnmarshallerHandler() {
return new JMUnmarshallerHandlerImpl(this);
}
+
+
+// added to support JDK6
+
+ public Object unmarshal(Reader reader) throws JAXBException {
+ throw new UnsupportedOperationException();
+ }
+
+ public JAXBElement unmarshal(Node node, Class declaredType) throws JAXBException {
+ throw new UnsupportedOperationException();
+ }
+
+ public JAXBElement unmarshal(Source source, Class declaredType) throws JAXBException {
+ throw new UnsupportedOperationException();
+ }
+
+ public Object unmarshal(XMLStreamReader reader) throws JAXBException {
+ throw new UnsupportedOperationException();
+ }
+
+ public JAXBElement unmarshal(XMLStreamReader reader, Class declaredType) throws JAXBException {
+ throw new UnsupportedOperationException();
+ }
+
+ public Object unmarshal(XMLEventReader reader) throws JAXBException {
+ throw new UnsupportedOperationException();
+ }
+
+ public JAXBElement unmarshal(XMLEventReader reader, Class declaredType) throws JAXBException {
+ throw new UnsupportedOperationException();
+ }
+
+ public void setSchema(Schema schema) {
+ throw new UnsupportedOperationException();
+ }
+
+ public Schema getSchema() {
+ throw new UnsupportedOperationException();
+ }
+
+ public void setAdapter(XmlAdapter adapter) {
+ throw new UnsupportedOperationException();
+ }
+
+ public void setAdapter(Class type, XmlAdapter adapter) {
+ throw new UnsupportedOperationException();
+ }
+
+ public XmlAdapter getAdapter(Class type) {
+ throw new UnsupportedOperationException();
+ }
+
+ public void setAttachmentUnmarshaller(AttachmentUnmarshaller au) {
+ throw new UnsupportedOperationException();
+ }
+
+ public AttachmentUnmarshaller getAttachmentUnmarshaller() {
+ throw new UnsupportedOperationException();
+ }
+
+ public void setListener(Listener listener) {
+ throw new UnsupportedOperationException();
+ }
+
+ public Listener getListener() {
+ throw new UnsupportedOperationException();
+ }
}

View File

@ -0,0 +1,72 @@
--- ws-jaxme-0.5.2/ant/jm.xml 2012-07-27 12:18:59.000000000 +0200
+++ ws-jaxme-0.5.2/ant/jm.xml 2012-07-27 16:07:58.924849227 +0200
@@ -128,7 +128,7 @@
<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"
+ source="1.8" target="1.8"
failonerror="true">
<src>
<pathelement location="${src.jm}"/>
@@ -185,7 +185,7 @@
<target name="JM.localtest" depends="JM.generate">
<javac debug="${debug}"
optimize="${optimize}" destdir="${build.jm.classes}"
- source="1.3" target="1.3"
+ source="1.8" target="1.8"
failonerror="true">
<src>
<pathelement location="${src.jm}"/>
--- ws-jaxme-0.5.2/ant/js.xml 2012-07-27 12:18:59.000000000 +0200
+++ ws-jaxme-0.5.2/ant/js.xml 2012-07-27 16:08:26.538504008 +0200
@@ -71,7 +71,7 @@
<target name="JS.compile" depends="JS.antlr,init">
<javac destdir="${build.js.classes}" debug="${debug}"
- source="1.3" target="1.3"
+ source="1.8" target="1.8"
optimize="${optimize}" classpathref="js.class.path">
<src>
<pathelement location="${src.js}"/>
@@ -160,7 +160,7 @@
<javac destdir="${build.js.test.classes}"
debug="${debug}" optimize="${optimize}"
includes="org/apache/ws/jaxme/js/junit/**/*"
- source="1.3" target="1.3"
+ source="1.8" target="1.8"
classpathref="js.test.path">
<src path="${src.js}"/>
<src path="${build.js.src}"/>
--- ws-jaxme-0.5.2/ant/macros.xml 2005-07-14 20:32:17.000000000 +0200
+++ ws-jaxme-0.5.2/ant/macros.xml 2012-07-27 16:08:37.033372804 +0200
@@ -54,7 +54,7 @@
<mkdir dir="@{destdir}"/>
<javac destdir="@{destdir}" srcdir="@{srcdir}" debug="${debug}"
optimize="${optimize}" classpathref="@{classpathref}"
- excludes="@{excludes}" source="1.3" target="1.3">
+ excludes="@{excludes}" source="1.8" target="1.8">
<exclude name="@{java14classes}" unless="have14"/>
</javac>
</sequential>
diff -up ws-jaxme-0.5.2/ant/pm.xml ws-jaxme-0.5.2/ant/pm.xml
--- ws-jaxme-0.5.2/ant/pm.xml 2012-07-27 12:18:59.000000000 +0200
+++ ws-jaxme-0.5.2/ant/pm.xml 2012-07-27 16:08:42.912299308 +0200
@@ -70,7 +70,7 @@
<target name="PM.compile" depends="dirs,JM.all">
<javac classpathref="pm.class.path" debug="${debug}"
optimize="${optimize}" destdir="${build.pm.classes}"
- source="1.3" target="1.3"
+ source="1.8" target="1.8"
srcdir="${src.pm}">
<exclude name="org/apache/ws/jaxme/pm/junit/**/*"/>
<exclude name="org/apache/ws/jaxme/**/api4j/*" unless="have.inoapi4j"/>
@@ -112,7 +112,7 @@
<target name="PM.generate.compile" depends="PM.generate">
<javac debug="${debug}"
- source="1.3" target="1.3"
+ source="1.8" target="1.8"
optimize="${optimize}" destdir="${build.pm.test.classes}">
<classpath>
<path refid="pm.class.path"/>

View File

@ -0,0 +1,28 @@
--- ./src/jaxme/org/apache/ws/jaxme/util/Base64Binary.java.sav 2007-02-12 12:33:45.000000000 -0500
+++ ./src/jaxme/org/apache/ws/jaxme/util/Base64Binary.java 2007-02-12 12:35:20.000000000 -0500
@@ -18,8 +18,7 @@
import java.io.IOException;
-import sun.misc.BASE64Decoder;
-import sun.misc.BASE64Encoder;
+import org.apache.commons.codec.binary.Base64;
/** A utility class for working with base64 encoding.
@@ -37,13 +36,13 @@
* base64 encoded byte array.
*/
public static byte[] decode(String pValue) throws IOException {
- return (new BASE64Decoder()).decodeBuffer(pValue);
+ return (new Base64()).decode(pValue.getBytes());
}
/** Converts the base64 encoded byte array <code>pValue</code>
* into a string.
*/
public static String encode(byte[] pValue) {
- return (new BASE64Encoder()).encode(pValue);
+ return new String((new Base64()).encodeBase64(pValue));
}
}

100
ws-jaxme.changes Normal file
View File

@ -0,0 +1,100 @@
-------------------------------------------------------------------
Fri May 5 20:16:22 UTC 2023 - Stefan Bluhm <stefan.bluhm@clacee.eu>
- Adapted to build on Enterprise Linux.
-------------------------------------------------------------------
Wed Mar 30 09:25:19 UTC 2022 - Fridrich Strba <fstrba@suse.com>
- Build against the standalone JavaEE modules unconditionally
-------------------------------------------------------------------
Fri Mar 18 19:17:27 UTC 2022 - Fridrich Strba <fstrba@suse.com>
- Modified patch:
* ws-jaxme-sourcetarget.patch
+ Build with source/target levels 8
-------------------------------------------------------------------
Thu Mar 17 09:49:40 UTC 2022 - Fridrich Strba <fstrba@suse.com>
- On relevant distributions, build against the standalone jaxb-api
-------------------------------------------------------------------
Tue Feb 22 18:56:20 UTC 2022 - Fridrich Strba <fstrba@suse.com>
- Do not build against the log4j12 packages, use the new reload4j
-------------------------------------------------------------------
Tue Oct 1 10:20:26 UTC 2019 - Fridrich Strba <fstrba@suse.com>
- Build against new compatibility package log4j12
-------------------------------------------------------------------
Fri Oct 5 10:08:58 UTC 2018 - Fridrich Strba <fstrba@suse.com>
- Fix for a build breakages on i586 with jdk11
* Working around a possible race condition
* Allows building with jdk11
-------------------------------------------------------------------
Fri Sep 28 11:57:35 UTC 2018 - Fridrich Strba <fstrba@suse.com>
- BuildConflict with java-devel >= 11, since it fails intermitently
on i586 with jdk11
-------------------------------------------------------------------
Mon Dec 4 12:03:31 UTC 2017 - thomas.schraitle@suse.com
- Fix catalog paths in ws-jaxme-catalog.patch
The DocBook XML 4.1.2 DTD cannot be retrieved from SGML catalogs
(/etc/sgml/catalog) but from XML catalogs (/etc/xml/catalog).
Corrected path from /etc/sgml/catalog to /etc/xml/catalog.
-------------------------------------------------------------------
Fri Oct 6 15:33:05 UTC 2017 - fstrba@suse.com
- Allow building with jdk9
- Attached patch:
* ws-jaxme-0.5.2-proxygenerator.patch
- Generate correctly proxies even if the interface has static
methods that are allowed in jdk8+
-------------------------------------------------------------------
Tue Sep 12 06:58:17 UTC 2017 - fstrba@suse.com
- Upgrade to 0.5.2
- BuildConflict with java-devel >= 1.9, since this package cannot
be built with jdk9
- BuildRequire java-devel >= 1.6
- Specify java source and target level 1.6
- Modified patch:
* ws-jaxme-java6.patch
- Adapt to the new context
- Added patches:
* ws-jaxme-sourcetarget.patch
- Build with java source and target level 1.6
* ws-jaxme-use-commons-codec.patch
- Use apache-commons-codec for base64 functionality instead
or private APIs that can disapear any time
-------------------------------------------------------------------
Fri Jul 11 14:06:18 UTC 2014 - tchvatal@suse.com
- Do not version javadoc dir.
-------------------------------------------------------------------
Tue Jul 8 10:34:11 UTC 2014 - tchvatal@suse.com
- Do not depend on ant-trax.
-------------------------------------------------------------------
Mon Sep 9 11:06:26 UTC 2013 - tchvatal@suse.com
- Move from jpackage-utils to javapackage-tools
-------------------------------------------------------------------
Thu May 14 08:53:05 CEST 2009 - mvyskocil@suse.cz
- Initial SUSE packaging (based on jpackage.org 5.0)

169
ws-jaxme.spec Normal file
View File

@ -0,0 +1,169 @@
#
# spec file for package ws-jaxme
#
# Copyright (c) 2022 SUSE LLC
#
# 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 https://bugs.opensuse.org/
#
%define base_name jaxme
Name: ws-jaxme
Version: 0.5.2
Release: 0
Summary: Open source implementation of JAXB
License: Apache-2.0
Group: Development/Libraries/Java
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
Patch3: ws-jaxme-sourcetarget.patch
Patch4: ws-jaxme-use-commons-codec.patch
Patch5: ws-jaxme-0.5.2-proxygenerator.patch
BuildRequires: ant >= 1.6
BuildRequires: ant-apache-resolver
BuildRequires: antlr
BuildRequires: apache-commons-codec
%if 0%{?rhel}
BuildRequires: docbook-style-xsl
%else
BuildRequires: docbook-xsl-stylesheets
%endif
BuildRequires: glassfish-jaxb-api
BuildRequires: hsqldb
BuildRequires: java-devel >= 1.8
BuildRequires: javapackages-tools
BuildRequires: jaxp_transform_impl
BuildRequires: junit >= 3.8.1
BuildRequires: reload4j
BuildRequires: xalan-j2
BuildRequires: xerces-j2
BuildRequires: xml-commons-apis
BuildRequires: xml-commons-resolver
BuildRequires: xmldb-api
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
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
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
find . -name "*.jar" | xargs rm
%patch0 -b .sav
%patch1 -b .sav
%patch2 -b .java6
%patch3 -p1
%patch4 -p1
%patch5 -p1
%build
export OPT_JAR_LIST="ant/ant-trax jaxp_transform_impl ant/ant-apache-resolver"
export CLASSPATH=$(build-classpath \
glassfish-jaxb-api \
antlr \
apache-commons-codec \
hsqldb \
reload4j \
xalan-j2 \
xalan-j2-serializer \
xmldb-api \
xerces-j2 \
xml-commons-apis \
xml-commons-resolver \
junit)
ant Docs.all \
-Dant.build.javac.source=1.8 -Dant.build.javac.target=1.8 \
-Dbuild.sysclasspath=first \
-Ddocbook.home=%{_datadir}/xml/docbook \
%if 0%{?rhel}
-Ddocbookxsl.home=%{_datadir}/sgml/docbook/xsl-stylesheets
%else
-Ddocbookxsl.home=%{_datadir}/xml/docbook/stylesheet/nwalsh/current
%endif
%install
install -dm 755 %{buildroot}%{_javadir}/%{base_name}
for jar in dist/*.jar; do
jbs=`basename ${jar}`
jnm=`echo ${jbs} | sed -e 's|\.jar||'`
install -Dpm 644 ${jar} \
%{buildroot}%{_javadir}/%{base_name}/ws-${jnm}.jar
done
(cd %{buildroot}%{_javadir}/%{base_name} && for jar in *-%{version}*; do ln -sf ${jar} `echo $jar| sed "s|-%{version}||g"`; done)
(cd %{buildroot}%{_javadir}/%{base_name} && for jar in ws-*.jar; do ln -sf ${jar} `echo $jar| sed "s|ws-||g"`; done)
#javadoc
install -dm 755 %{buildroot}%{_javadocdir}/%{name}
cp -pr build/docs/src/documentation/content/apidocs %{buildroot}%{_javadocdir}/%{name}
#manual
install -dm 755 %{buildroot}%{_docdir}/%{name}-%{version}
cp -pr build/docs/src/documentation/content/manual %{buildroot}%{_docdir}/%{name}-%{version}
%files
%license LICENSE
%{_javadir}/%{base_name}
%files javadoc
%{_javadocdir}/%{name}
%files manual
%doc %{_docdir}/%{name}-%{version}
%changelog