Accepting request 680352 from Java:packages
Build against plexus-classworlds OBS-URL: https://build.opensuse.org/request/show/680352 OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/velocity?expand=0&rev=21
This commit is contained in:
commit
2a8489513c
@ -1,3 +1,8 @@
|
|||||||
|
-------------------------------------------------------------------
|
||||||
|
Thu Feb 14 08:35:38 UTC 2019 - Fridrich Strba <fstrba@suse.com>
|
||||||
|
|
||||||
|
- Build against the new plexus-classworlds package
|
||||||
|
|
||||||
-------------------------------------------------------------------
|
-------------------------------------------------------------------
|
||||||
Mon Nov 5 22:15:24 UTC 2018 - Fridrich Strba <fstrba@suse.com>
|
Mon Nov 5 22:15:24 UTC 2018 - Fridrich Strba <fstrba@suse.com>
|
||||||
|
|
||||||
|
@ -1,7 +1,7 @@
|
|||||||
#
|
#
|
||||||
# spec file for package velocity
|
# spec file for package velocity
|
||||||
#
|
#
|
||||||
# Copyright (c) 2018 SUSE LINUX GmbH, Nuernberg, Germany.
|
# Copyright (c) 2019 SUSE LINUX 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
|
||||||
@ -22,28 +22,29 @@ Release: 0
|
|||||||
Summary: Java-based template engine
|
Summary: Java-based template engine
|
||||||
License: Apache-2.0
|
License: Apache-2.0
|
||||||
Group: Development/Libraries/Java
|
Group: Development/Libraries/Java
|
||||||
Url: http://velocity.apache.org/
|
URL: http://velocity.apache.org/
|
||||||
Source0: http://www.apache.org/dist/velocity/engine/1.7/%{name}-%{version}.tar.gz
|
Source0: http://www.apache.org/dist/velocity/engine/%{version}/%{name}-%{version}.tar.gz
|
||||||
Source1: %{name}-%{version}.pom
|
Source1: %{name}-%{version}.pom
|
||||||
Patch0: velocity-build_xml.patch
|
Patch0: velocity-build_xml.patch
|
||||||
BuildRequires: ant >= 1.6.5
|
BuildRequires: ant >= 1.6.5
|
||||||
BuildRequires: ant-junit
|
BuildRequires: ant-junit
|
||||||
BuildRequires: antlr
|
BuildRequires: antlr
|
||||||
|
BuildRequires: apache-parent
|
||||||
BuildRequires: avalon-logkit
|
BuildRequires: avalon-logkit
|
||||||
BuildRequires: classworlds
|
|
||||||
BuildRequires: commons-collections
|
BuildRequires: commons-collections
|
||||||
BuildRequires: commons-lang
|
BuildRequires: commons-lang
|
||||||
BuildRequires: commons-logging
|
BuildRequires: commons-logging
|
||||||
BuildRequires: fdupes
|
BuildRequires: fdupes
|
||||||
BuildRequires: hsqldb
|
BuildRequires: hsqldb
|
||||||
BuildRequires: javapackages-local
|
BuildRequires: javapackages-local
|
||||||
BuildRequires: javapackages-tools
|
|
||||||
BuildRequires: jdom >= 1.0-1
|
BuildRequires: jdom >= 1.0-1
|
||||||
BuildRequires: junit
|
BuildRequires: junit
|
||||||
BuildRequires: log4j >= 1.1
|
BuildRequires: log4j >= 1.1
|
||||||
BuildRequires: oro
|
BuildRequires: oro
|
||||||
|
BuildRequires: plexus-classworlds
|
||||||
BuildRequires: servletapi4
|
BuildRequires: servletapi4
|
||||||
BuildRequires: werken-xpath
|
BuildRequires: werken-xpath
|
||||||
|
Requires: apache-parent
|
||||||
Requires: avalon-logkit
|
Requires: avalon-logkit
|
||||||
Requires: commons-collections
|
Requires: commons-collections
|
||||||
Requires: commons-lang
|
Requires: commons-lang
|
||||||
@ -162,7 +163,6 @@ for j in $(find . -name "*.jar" | grep -v /test/); do
|
|||||||
mv $j $j.no
|
mv $j $j.no
|
||||||
done
|
done
|
||||||
%patch0 -b .sav0
|
%patch0 -b .sav0
|
||||||
#%patch99 -b .sav99
|
|
||||||
|
|
||||||
%build
|
%build
|
||||||
#export JAVA_HOME=%{_jvmdir}/java-1.5.0
|
#export JAVA_HOME=%{_jvmdir}/java-1.5.0
|
||||||
@ -183,9 +183,10 @@ ln -sf $(build-classpath commons-logging)
|
|||||||
ln -sf $(build-classpath jdom)
|
ln -sf $(build-classpath jdom)
|
||||||
ln -sf $(build-classpath log4j)
|
ln -sf $(build-classpath log4j)
|
||||||
ln -sf $(build-classpath oro)
|
ln -sf $(build-classpath oro)
|
||||||
|
# Use servletapi4 instead of servletapi5 in CLASSPATH
|
||||||
ln -sf $(build-classpath servletapi4)
|
ln -sf $(build-classpath servletapi4)
|
||||||
ln -sf $(build-classpath werken-xpath)
|
ln -sf $(build-classpath werken-xpath)
|
||||||
ln -sf $(build-classpath classworlds)
|
ln -sf $(build-classpath plexus/classworlds)
|
||||||
popd
|
popd
|
||||||
export CLASSPATH=$(build-classpath jdom commons-collections commons-lang werken-xpath antlr)
|
export CLASSPATH=$(build-classpath jdom commons-collections commons-lang werken-xpath antlr)
|
||||||
CLASSPATH=$CLASSPATH:$(pwd)/test/texen-classpath/test.jar
|
CLASSPATH=$CLASSPATH:$(pwd)/test/texen-classpath/test.jar
|
||||||
@ -195,7 +196,7 @@ export OPT_JAR_LIST="ant/ant-junit junit"
|
|||||||
ant \
|
ant \
|
||||||
-Djavac.source=1.6 -Djavac.target=1.6 \
|
-Djavac.source=1.6 -Djavac.target=1.6 \
|
||||||
-buildfile build/build.xml \
|
-buildfile build/build.xml \
|
||||||
jar javadocs #test
|
jar javadocs
|
||||||
|
|
||||||
%install
|
%install
|
||||||
# jars
|
# jars
|
||||||
@ -210,17 +211,20 @@ install -pm 644 %{SOURCE1} \
|
|||||||
# javadoc
|
# javadoc
|
||||||
install -d -m 755 %{buildroot}%{_javadocdir}/%{name}
|
install -d -m 755 %{buildroot}%{_javadocdir}/%{name}
|
||||||
cp -pr docs/api/* %{buildroot}%{_javadocdir}/%{name}
|
cp -pr docs/api/* %{buildroot}%{_javadocdir}/%{name}
|
||||||
|
%fdupes -s %{buildroot}%{_javadocdir}
|
||||||
|
|
||||||
rm -rf docs/api
|
rm -rf docs/api
|
||||||
|
|
||||||
|
# zero-length file
|
||||||
|
rm -r test/issues/velocity-537/compare/velocity537.vm.cmp
|
||||||
# data
|
# data
|
||||||
install -d -m 755 %{buildroot}%{_datadir}/%{name}
|
install -d -m 755 %{buildroot}%{_datadir}/%{name}
|
||||||
cp -pr examples test %{buildroot}%{_datadir}/%{name}
|
cp -pr examples test %{buildroot}%{_datadir}/%{name}
|
||||||
%fdupes -s %{buildroot}
|
%fdupes -s %{buildroot}%{_datadir}/%{name}
|
||||||
|
|
||||||
%files
|
%files -f .mfiles
|
||||||
%doc LICENSE NOTICE README.txt
|
%license LICENSE NOTICE
|
||||||
%{_javadir}/*.jar
|
%doc README.txt
|
||||||
%{_mavenpomdir}/*
|
|
||||||
%{_datadir}/maven-metadata/%{name}.xml
|
|
||||||
|
|
||||||
%files manual
|
%files manual
|
||||||
%doc docs/*
|
%doc docs/*
|
||||||
|
Loading…
Reference in New Issue
Block a user