- Do not depend on ant-trax.
OBS-URL: https://build.opensuse.org/package/show/Java:packages/ws-jaxme?expand=0&rev=6
This commit is contained in:
parent
a2718382a1
commit
93c9946132
@ -1,3 +1,8 @@
|
|||||||
|
-------------------------------------------------------------------
|
||||||
|
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
|
Mon Sep 9 11:06:26 UTC 2013 - tchvatal@suse.com
|
||||||
|
|
||||||
|
@ -1,7 +1,7 @@
|
|||||||
#
|
#
|
||||||
# spec file for package ws-jaxme
|
# spec file for package ws-jaxme
|
||||||
#
|
#
|
||||||
# Copyright (c) 2013 SUSE LINUX Products GmbH, Nuernberg, Germany.
|
# Copyright (c) 2014 SUSE LINUX Products GmbH, Nuernberg, Germany.
|
||||||
#
|
#
|
||||||
# All modifications and additions to the file contributed by third parties
|
# All modifications and additions to the file contributed by third parties
|
||||||
# remain the property of their copyright owners, unless otherwise agreed
|
# remain the property of their copyright owners, unless otherwise agreed
|
||||||
@ -16,9 +16,7 @@
|
|||||||
#
|
#
|
||||||
|
|
||||||
|
|
||||||
%define section free
|
|
||||||
%define base_name jaxme
|
%define base_name jaxme
|
||||||
|
|
||||||
Name: ws-jaxme
|
Name: ws-jaxme
|
||||||
Version: 0.5.1
|
Version: 0.5.1
|
||||||
Release: 0
|
Release: 0
|
||||||
@ -32,7 +30,6 @@ Patch1: ws-jaxme-catalog.patch
|
|||||||
Patch2: ws-jaxme-java6.patch
|
Patch2: ws-jaxme-java6.patch
|
||||||
BuildRequires: ant >= 1.6
|
BuildRequires: ant >= 1.6
|
||||||
BuildRequires: ant-apache-resolver
|
BuildRequires: ant-apache-resolver
|
||||||
BuildRequires: ant-trax
|
|
||||||
BuildRequires: antlr
|
BuildRequires: antlr
|
||||||
BuildRequires: docbook-xsl-stylesheets
|
BuildRequires: docbook-xsl-stylesheets
|
||||||
BuildRequires: hsqldb
|
BuildRequires: hsqldb
|
||||||
@ -62,8 +59,6 @@ A Java/XML binding compiler takes as input a schema description (in
|
|||||||
* Vice versa, marshal the Java bean back into the original XML
|
* Vice versa, marshal the Java bean back into the original XML
|
||||||
document.
|
document.
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
%package javadoc
|
%package javadoc
|
||||||
Summary: Open source implementation of JAXB
|
Summary: Open source implementation of JAXB
|
||||||
Group: Development/Libraries/Java
|
Group: Development/Libraries/Java
|
||||||
@ -82,8 +77,6 @@ A Java/XML binding compiler takes as input a schema description (in
|
|||||||
* Vice versa, marshal the Java bean back into the original XML
|
* Vice versa, marshal the Java bean back into the original XML
|
||||||
document.
|
document.
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
%package manual
|
%package manual
|
||||||
Summary: Open source implementation of JAXB
|
Summary: Open source implementation of JAXB
|
||||||
Group: Development/Libraries/Java
|
Group: Development/Libraries/Java
|
||||||
@ -102,8 +95,6 @@ A Java/XML binding compiler takes as input a schema description (in
|
|||||||
* Vice versa, marshal the Java bean back into the original XML
|
* Vice versa, marshal the Java bean back into the original XML
|
||||||
document.
|
document.
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
%prep
|
%prep
|
||||||
%setup -q -n %{name}
|
%setup -q -n %{name}
|
||||||
find . -name "*.jar" | xargs rm
|
find . -name "*.jar" | xargs rm
|
||||||
@ -114,42 +105,39 @@ find . -name "*.jar" | xargs rm
|
|||||||
%build
|
%build
|
||||||
export OPT_JAR_LIST="ant/ant-trax jaxp_transform_impl ant/ant-apache-resolver"
|
export OPT_JAR_LIST="ant/ant-trax jaxp_transform_impl ant/ant-apache-resolver"
|
||||||
export CLASSPATH=$(build-classpath \
|
export CLASSPATH=$(build-classpath \
|
||||||
antlr \
|
antlr \
|
||||||
hsqldb \
|
hsqldb \
|
||||||
log4j \
|
log4j \
|
||||||
xalan-j2 \
|
xalan-j2 \
|
||||||
xalan-j2-serializer \
|
xalan-j2-serializer \
|
||||||
xmldb-api \
|
xmldb-api \
|
||||||
xerces-j2 \
|
xerces-j2 \
|
||||||
xml-commons-apis \
|
xml-commons-apis \
|
||||||
xml-commons-resolver \
|
xml-commons-resolver \
|
||||||
junit)
|
junit)
|
||||||
ant all Docs.all \
|
ant all Docs.all \
|
||||||
-Dant.build.javac.source=1.5 -Dant.build.javac.target=1.5 \
|
-Dant.build.javac.source=1.5 -Dant.build.javac.target=1.5 \
|
||||||
-Dbuild.sysclasspath=first \
|
-Dbuild.sysclasspath=first \
|
||||||
-Ddocbook.home=/usr/share/xml/docbook \
|
-Ddocbook.home=%{_datadir}/xml/docbook \
|
||||||
-Ddocbookxsl.home=/usr/share/xml/docbook/stylesheet/nwalsh/current
|
-Ddocbookxsl.home=%{_datadir}/xml/docbook/stylesheet/nwalsh/current
|
||||||
|
|
||||||
%install
|
%install
|
||||||
install -dm 755 $RPM_BUILD_ROOT%{_javadir}/%{base_name}
|
install -dm 755 %{buildroot}%{_javadir}/%{base_name}
|
||||||
for jar in dist/*.jar; do
|
for jar in dist/*.jar; do
|
||||||
jbs=`basename ${jar}`
|
jbs=`basename ${jar}`
|
||||||
jnm=`echo ${jbs} | sed -e 's|\.jar||'`
|
jnm=`echo ${jbs} | sed -e 's|\.jar||'`
|
||||||
install -Dpm 644 ${jar} \
|
install -Dpm 644 ${jar} \
|
||||||
$RPM_BUILD_ROOT%{_javadir}/%{base_name}/ws-${jnm}.jar
|
%{buildroot}%{_javadir}/%{base_name}/ws-${jnm}.jar
|
||||||
done
|
done
|
||||||
(cd $RPM_BUILD_ROOT%{_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 *-%{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)
|
(cd %{buildroot}%{_javadir}/%{base_name} && for jar in ws-*.jar; do ln -sf ${jar} `echo $jar| sed "s|ws-||g"`; done)
|
||||||
#javadoc
|
#javadoc
|
||||||
install -dm 755 $RPM_BUILD_ROOT%{_javadocdir}/%{name}-%{version}
|
install -dm 755 %{buildroot}%{_javadocdir}/%{name}-%{version}
|
||||||
cp -pr build/docs/src/documentation/content/apidocs $RPM_BUILD_ROOT%{_javadocdir}/%{name}-%{version}
|
cp -pr build/docs/src/documentation/content/apidocs %{buildroot}%{_javadocdir}/%{name}-%{version}
|
||||||
ln -s %{name}-%{version} $RPM_BUILD_ROOT%{_javadocdir}/%{name} # ghost symlink
|
ln -s %{name}-%{version} %{buildroot}%{_javadocdir}/%{name} # ghost symlink
|
||||||
#manual
|
#manual
|
||||||
install -dm 755 $RPM_BUILD_ROOT%{_docdir}/%{name}-%{version}
|
install -dm 755 %{buildroot}%{_docdir}/%{name}-%{version}
|
||||||
cp -pr build/docs/src/documentation/content/manual $RPM_BUILD_ROOT%{_docdir}/%{name}-%{version}
|
cp -pr build/docs/src/documentation/content/manual %{buildroot}%{_docdir}/%{name}-%{version}
|
||||||
|
|
||||||
%clean
|
|
||||||
rm -rf $RPM_BUILD_ROOT
|
|
||||||
|
|
||||||
%files
|
%files
|
||||||
%defattr(0644,root,root,0755)
|
%defattr(0644,root,root,0755)
|
||||||
|
Loading…
Reference in New Issue
Block a user