2009-05-31 04:56:32 +02:00
|
|
|
#
|
2013-09-12 17:04:26 +02:00
|
|
|
# spec file for package ws-jaxme
|
2009-05-31 04:56:32 +02:00
|
|
|
#
|
2019-10-01 12:20:57 +02:00
|
|
|
# Copyright (c) 2019 SUSE LINUX GmbH, Nuernberg, Germany.
|
2009-05-31 04:56:32 +02:00
|
|
|
#
|
|
|
|
# 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.
|
|
|
|
|
2018-09-28 13:58:43 +02:00
|
|
|
# Please submit bugfixes or comments via https://bugs.opensuse.org/
|
2009-05-31 04:56:32 +02:00
|
|
|
#
|
|
|
|
|
|
|
|
|
|
|
|
%define base_name jaxme
|
|
|
|
Name: ws-jaxme
|
2017-09-12 10:11:14 +02:00
|
|
|
Version: 0.5.2
|
2013-09-12 17:04:26 +02:00
|
|
|
Release: 0
|
2009-05-31 04:56:32 +02:00
|
|
|
Summary: Open source implementation of JAXB
|
2011-12-06 19:13:20 +01:00
|
|
|
License: Apache-2.0
|
2013-09-12 17:04:26 +02:00
|
|
|
Group: Development/Libraries/Java
|
2009-05-31 04:56:32 +02:00
|
|
|
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
|
2017-09-12 10:11:14 +02:00
|
|
|
Patch3: ws-jaxme-sourcetarget.patch
|
|
|
|
Patch4: ws-jaxme-use-commons-codec.patch
|
2017-10-06 17:34:58 +02:00
|
|
|
Patch5: ws-jaxme-0.5.2-proxygenerator.patch
|
2009-05-31 04:56:32 +02:00
|
|
|
BuildRequires: ant >= 1.6
|
|
|
|
BuildRequires: ant-apache-resolver
|
|
|
|
BuildRequires: antlr
|
2017-09-12 10:11:14 +02:00
|
|
|
BuildRequires: apache-commons-codec
|
2009-05-31 04:56:32 +02:00
|
|
|
BuildRequires: docbook-xsl-stylesheets
|
2013-09-12 17:04:26 +02:00
|
|
|
BuildRequires: hsqldb
|
2017-09-12 10:11:14 +02:00
|
|
|
BuildRequires: java-devel >= 1.6
|
2013-09-12 17:04:26 +02:00
|
|
|
BuildRequires: javapackages-tools
|
2009-05-31 04:56:32 +02:00
|
|
|
BuildRequires: jaxp_transform_impl
|
|
|
|
BuildRequires: junit >= 3.8.1
|
2019-10-01 12:20:57 +02:00
|
|
|
BuildRequires: log4j12
|
2009-05-31 04:56:32 +02:00
|
|
|
BuildRequires: xalan-j2
|
|
|
|
BuildRequires: xerces-j2
|
|
|
|
BuildRequires: xml-commons-apis
|
|
|
|
BuildRequires: xml-commons-resolver
|
2013-09-12 17:04:26 +02:00
|
|
|
BuildRequires: xmldb-api
|
2009-05-31 04:56:32 +02:00
|
|
|
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
|
2017-09-12 10:11:14 +02:00
|
|
|
%setup -q
|
2009-05-31 04:56:32 +02:00
|
|
|
find . -name "*.jar" | xargs rm
|
|
|
|
%patch0 -b .sav
|
|
|
|
%patch1 -b .sav
|
|
|
|
%patch2 -b .java6
|
2017-09-12 10:11:14 +02:00
|
|
|
%patch3 -p1
|
|
|
|
%patch4 -p1
|
2017-10-06 17:34:58 +02:00
|
|
|
%patch5 -p1
|
2009-05-31 04:56:32 +02:00
|
|
|
|
|
|
|
%build
|
|
|
|
export OPT_JAR_LIST="ant/ant-trax jaxp_transform_impl ant/ant-apache-resolver"
|
|
|
|
export CLASSPATH=$(build-classpath \
|
2014-07-08 12:34:21 +02:00
|
|
|
antlr \
|
2017-09-12 10:11:14 +02:00
|
|
|
apache-commons-codec \
|
2014-07-08 12:34:21 +02:00
|
|
|
hsqldb \
|
2019-10-01 12:20:57 +02:00
|
|
|
log4j12/log4j-12 \
|
2014-07-08 12:34:21 +02:00
|
|
|
xalan-j2 \
|
|
|
|
xalan-j2-serializer \
|
|
|
|
xmldb-api \
|
|
|
|
xerces-j2 \
|
|
|
|
xml-commons-apis \
|
|
|
|
xml-commons-resolver \
|
|
|
|
junit)
|
2018-10-05 12:09:51 +02:00
|
|
|
ant Docs.all \
|
2017-09-12 10:11:14 +02:00
|
|
|
-Dant.build.javac.source=1.6 -Dant.build.javac.target=1.6 \
|
2014-07-08 12:34:21 +02:00
|
|
|
-Dbuild.sysclasspath=first \
|
|
|
|
-Ddocbook.home=%{_datadir}/xml/docbook \
|
|
|
|
-Ddocbookxsl.home=%{_datadir}/xml/docbook/stylesheet/nwalsh/current
|
2009-05-31 04:56:32 +02:00
|
|
|
|
|
|
|
%install
|
2014-07-08 12:34:21 +02:00
|
|
|
install -dm 755 %{buildroot}%{_javadir}/%{base_name}
|
2009-05-31 04:56:32 +02:00
|
|
|
for jar in dist/*.jar; do
|
|
|
|
jbs=`basename ${jar}`
|
|
|
|
jnm=`echo ${jbs} | sed -e 's|\.jar||'`
|
|
|
|
install -Dpm 644 ${jar} \
|
2014-07-08 12:34:21 +02:00
|
|
|
%{buildroot}%{_javadir}/%{base_name}/ws-${jnm}.jar
|
2009-05-31 04:56:32 +02:00
|
|
|
done
|
2014-07-08 12:34:21 +02:00
|
|
|
(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)
|
2009-05-31 04:56:32 +02:00
|
|
|
#javadoc
|
2014-07-11 16:06:31 +02:00
|
|
|
install -dm 755 %{buildroot}%{_javadocdir}/%{name}
|
|
|
|
cp -pr build/docs/src/documentation/content/apidocs %{buildroot}%{_javadocdir}/%{name}
|
2009-05-31 04:56:32 +02:00
|
|
|
#manual
|
2014-07-11 16:22:13 +02:00
|
|
|
install -dm 755 %{buildroot}%{_docdir}/%{name}-%{version}
|
|
|
|
cp -pr build/docs/src/documentation/content/manual %{buildroot}%{_docdir}/%{name}-%{version}
|
2009-05-31 04:56:32 +02:00
|
|
|
|
|
|
|
%files
|
|
|
|
%doc LICENSE
|
|
|
|
%{_javadir}/%{base_name}
|
|
|
|
|
|
|
|
%files javadoc
|
|
|
|
%{_javadocdir}/%{name}
|
|
|
|
|
|
|
|
%files manual
|
2014-07-11 16:22:13 +02:00
|
|
|
%doc %{_docdir}/%{name}-%{version}
|
2009-05-31 04:56:32 +02:00
|
|
|
|
|
|
|
%changelog
|