6
0
forked from pool/servletapi5

Compare commits

...

11 Commits

Author SHA256 Message Date
32bf0ef073 Accepting request 963027 from Java:packages
Build with source/target levels 8

OBS-URL: https://build.opensuse.org/request/show/963027
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/servletapi5?expand=0&rev=22
2022-03-28 14:59:14 +00:00
9177b3b2ec OBS-URL: https://build.opensuse.org/package/show/Java:packages/servletapi5?expand=0&rev=18 2022-03-19 10:35:07 +00:00
1a77d66e5a OBS-URL: https://build.opensuse.org/package/show/Java:packages/servletapi5?expand=0&rev=17 2022-03-19 10:32:20 +00:00
37a9e2590b Accepting request 926150 from Java:packages
misc changes

OBS-URL: https://build.opensuse.org/request/show/926150
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/servletapi5?expand=0&rev=21
2021-10-20 18:22:58 +00:00
35e5a4e873 Accepting request 910163 from home:sbluhm:branches:openSUSE:Factory
- Updated to build on Enterprise Linux.

OBS-URL: https://build.opensuse.org/request/show/910163
OBS-URL: https://build.opensuse.org/package/show/Java:packages/servletapi5?expand=0&rev=16
2021-08-07 16:54:23 +00:00
486e998bbb OBS-URL: https://build.opensuse.org/package/show/Java:packages/servletapi5?expand=0&rev=15 2021-07-28 07:55:00 +00:00
f16ccd8564 OBS-URL: https://build.opensuse.org/package/show/Java:packages/servletapi5?expand=0&rev=14 2021-07-27 14:07:08 +00:00
57b0c3e465 OBS-URL: https://build.opensuse.org/package/show/Java:packages/servletapi5?expand=0&rev=13 2019-02-07 08:29:31 +00:00
8919174f1a OBS-URL: https://build.opensuse.org/package/show/Java:packages/servletapi5?expand=0&rev=12 2018-05-17 20:06:51 +00:00
356ca402fd Accepting request 530810 from Java:packages
Don't just java-gcj-compat + fix build with jdk9

OBS-URL: https://build.opensuse.org/request/show/530810
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/servletapi5?expand=0&rev=20
2017-10-06 08:54:49 +00:00
28704a966c OBS-URL: https://build.opensuse.org/package/show/Java:packages/servletapi5?expand=0&rev=10 2017-10-03 10:45:11 +00:00
3 changed files with 29 additions and 81 deletions

View File

@@ -1,72 +0,0 @@
Index: jakarta-tomcat-5.0.18-src/jakarta-servletapi-5/jsr152/build.xml
===================================================================
--- jakarta-tomcat-5.0.18-src.orig/jakarta-servletapi-5/jsr152/build.xml
+++ jakarta-tomcat-5.0.18-src/jakarta-servletapi-5/jsr152/build.xml
@@ -69,6 +69,7 @@
<!-- Java classes -->
<javac srcdir="src/share" destdir="${jsp-api.build}/classes"
debug="${compile.debug}" deprecation="${compile.deprecation}"
+ source="1.4" target="1.4"
optimize="${compile.optimize}"
classpath="${servlet-api.jar}" />
@@ -97,6 +98,7 @@
<javadoc packagenames="javax.servlet.jsp.*"
sourcepath="${basedir}/src/share"
+ source="1.4"
classpath="${servlet-api.jar}"
destdir="${jsp-api.build}/docs/api"
use="true"
@@ -110,6 +112,7 @@
<!-- ======================== Build Examples =========================== -->
<target name="ant" depends="prepare">
<javac srcdir="src/ant" destdir="${jsp-api.build}/ant"
+ source="1.4" target="1.4"
debug="${compile.debug}" deprecation="${compile.deprecation}"
optimize="${compile.optimize}"
classpath="${ant.home}/lib/ant.jar" />
@@ -200,6 +203,7 @@
</txt2html>
<javac srcdir="examples/WEB-INF/classes"
+ source="1.4" target="1.4"
destdir="${jsp-api.build}/examples/WEB-INF/classes"
debug="${compile.debug}" deprecation="${compile.deprecation}"
optimize="${compile.optimize}"
@@ -208,6 +212,7 @@
</javac>
<javac srcdir="examples/plugin/applet"
+ source="1.4" target="1.4"
destdir="${jsp-api.build}/examples/plugin/applet"
debug="${compile.debug}" deprecation="${compile.deprecation}"
optimize="${compile.optimize}"
Index: jakarta-tomcat-5.0.18-src/jakarta-servletapi-5/jsr154/build.xml
===================================================================
--- jakarta-tomcat-5.0.18-src.orig/jakarta-servletapi-5/jsr154/build.xml
+++ jakarta-tomcat-5.0.18-src/jakarta-servletapi-5/jsr154/build.xml
@@ -63,6 +63,7 @@
<!-- Java classes -->
<javac srcdir="src/share" destdir="${servlet-api.build}/classes"
+ source="1.4" target="1.4"
debug="${compile.debug}" deprecation="${compile.deprecation}"
optimize="${compile.optimize}"/>
@@ -88,6 +89,7 @@
<target name="javadoc" depends="prepare" unless="docs.uptodate">
<javadoc packagenames="javax.servlet.*"
+ source="1.4"
sourcepath="${basedir}/src/share"
destdir="${servlet-api.build}/docs/api"
use="true"
@@ -108,6 +110,7 @@
</copy>
<javac srcdir="examples/WEB-INF/classes"
+ source="1.4" target="1.4"
destdir="${servlet-api.build}/examples/WEB-INF/classes"
debug="${compile.debug}" deprecation="${compile.deprecation}"
optimize="${compile.optimize}"

View File

@@ -1,3 +1,24 @@
-------------------------------------------------------------------
Sat Mar 19 10:31:58 UTC 2022 - Fridrich Strba <fstrba@suse.com>
- Build with java source/target levels 8
-------------------------------------------------------------------
Wed Aug 4 14:29:48 UTC 2021 - Stefan Bluhm <stefan.bluhm@clacee.eu>
- Updated to build on Enterprise Linux.
-------------------------------------------------------------------
Tue Oct 3 10:43:13 UTC 2017 - fstrba@suse.com
- Removed patch:
* java150_build.patch
- Don't hardcode the source and target levels, specify them on
command line instead
- Don't build with java-1_5_0-gcj-compat, since it is bound to go
- Specify source and target level 1.6 in order to allow building
with jdk9
-------------------------------------------------------------------
Mon Jul 21 10:38:49 UTC 2014 - tchvatal@suse.com

View File

@@ -1,7 +1,7 @@
#
# spec file for package servletapi5
#
# Copyright (c) 2014 SUSE LINUX Products GmbH, Nuernberg, Germany.
# 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
@@ -12,7 +12,7 @@
# 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/
# Please submit bugfixes or comments via https://bugs.opensuse.org/
#
@@ -24,15 +24,15 @@ Release: 0
Summary: Java servlet and JSP implementation classes
License: Apache-2.0
Group: Development/Libraries/Java
Url: http://jakarta.apache.org/tomcat/
URL: http://jakarta.apache.org/tomcat/
Source: %{full_name}-5-src.tar.gz
Patch150: java150_build.patch
#!BuildIgnore: xml-commons xml-commons-resolver xerces-j2 xml-commons-apis
#!BuildIgnore: xml-commons-jaxp-1.3-apis
BuildRequires: ant
BuildRequires: java-1_5_0-gcj-compat-devel
BuildRequires: xml-commons-apis-bootstrap
BuildRequires: java-devel >= 1.8
%if !0%{?rhel}
Requires(post): update-alternatives
%endif
Provides: servlet = %{version}
Provides: servlet24 = %{version}
Provides: servlet5 = %{version}
@@ -45,7 +45,6 @@ of the Java Servlet and JSP APIs (packages javax.servlet).
%prep
%setup -q -c -T -a 0 -n %{full_name}-5-src
%patch150
%build
# Fix us a license file first
@@ -54,11 +53,11 @@ cd jakarta-tomcat-%{version}-src/jakarta-servletapi-5
find . -type f -name "*.jar" -exec rm -f {} \;
pushd .
cd jsr154
ant jar examples -Dservletapi.build=build -Dservletapi.dist=dist
ant jar examples -Dservletapi.build=build -Dservletapi.dist=dist -Dant.build.javac.source=1.8 -Dant.build.javac.target=1.8
popd
pushd .
cd jsr152
ant jar examples -Dservletapi.build=build -Dservletapi.dist=dist
ant jar examples -Dservletapi.build=build -Dservletapi.dist=dist -Dant.build.javac.source=1.8 -Dant.build.javac.target=1.8
popd
%install