commit 56ec403bf01d53707f4562c6db960b1c06282ffc1e8329151d426e3b5d9350d6 Author: Adrian Schröter Date: Sat May 4 00:34:31 2024 +0200 Sync from SUSE:SLFO:Main servletapi5 revision f4d5ad718532c5bb4123f7dc697df6c8 diff --git a/.gitattributes b/.gitattributes new file mode 100644 index 0000000..9b03811 --- /dev/null +++ b/.gitattributes @@ -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 diff --git a/jakarta-servletapi-5-src.tar.gz b/jakarta-servletapi-5-src.tar.gz new file mode 100644 index 0000000..552fa16 --- /dev/null +++ b/jakarta-servletapi-5-src.tar.gz @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:8cc5e98b5d65aee4dde4587715db82cdcf75300a7df1db42c67d84f89e2d9261 +size 557083 diff --git a/servletapi5.changes b/servletapi5.changes new file mode 100644 index 0000000..6973e1a --- /dev/null +++ b/servletapi5.changes @@ -0,0 +1,72 @@ +------------------------------------------------------------------- +Sat Mar 19 10:31:58 UTC 2022 - Fridrich Strba + +- Build with java source/target levels 8 + +------------------------------------------------------------------- +Wed Aug 4 14:29:48 UTC 2021 - Stefan Bluhm + +- 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 + +- Cleanup with spec-cleaner. +- Fix update-alternatives code + +------------------------------------------------------------------- +Fri Aug 23 11:38:55 UTC 2013 - mvyskocil@suse.com + +- drop javadoc package + +------------------------------------------------------------------- +Mon Nov 8 12:03:08 UTC 2010 - mvyskocil@suse.cz + +- Build ignore xml-commons-1.3-jaxp-apis + +------------------------------------------------------------------- +Mon Jul 28 17:21:57 CEST 2008 - coolo@suse.de + +- yet another package to ignore + +------------------------------------------------------------------- +Mon Jul 28 09:09:08 CEST 2008 - coolo@suse.de + +- build without openjdk to avoid cycle + +------------------------------------------------------------------- +Mon Sep 25 15:33:26 CEST 2006 - dbornkessel@suse.de + +- java150 fixes: added target="1.4" and source="1.4" + +------------------------------------------------------------------- +Wed Jan 25 21:47:50 CET 2006 - mls@suse.de + +- converted neededforbuild to BuildRequires + +------------------------------------------------------------------- +Thu Sep 29 00:12:09 CEST 2005 - dmueller@suse.de + +- add norootforbuild + +------------------------------------------------------------------- +Thu Sep 16 15:58:38 CEST 2004 - skh@suse.de + +- Fix prerequires of javadoc subpackage + +------------------------------------------------------------------- +Thu Sep 2 16:45:46 CEST 2004 - skh@suse.de + +- Initial package created with version 5.0.18 (JPackage 1.5) + diff --git a/servletapi5.spec b/servletapi5.spec new file mode 100644 index 0000000..39eba8d --- /dev/null +++ b/servletapi5.spec @@ -0,0 +1,89 @@ +# +# spec file for package servletapi5 +# +# 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 servletapi +%define full_name jakarta-%{base_name} +Name: servletapi5 +Version: 5.0.18 +Release: 0 +Summary: Java servlet and JSP implementation classes +License: Apache-2.0 +Group: Development/Libraries/Java +URL: http://jakarta.apache.org/tomcat/ +Source: %{full_name}-5-src.tar.gz +#!BuildIgnore: xml-commons xml-commons-resolver xerces-j2 xml-commons-apis +#!BuildIgnore: xml-commons-jaxp-1.3-apis +BuildRequires: ant +BuildRequires: java-devel >= 1.8 +%if !0%{?rhel} +Requires(post): update-alternatives +%endif +Provides: servlet = %{version} +Provides: servlet24 = %{version} +Provides: servlet5 = %{version} +BuildRoot: %{_tmppath}/%{name}-%{version}-build +BuildArch: noarch + +%description +This subproject contains the source code for the implementation classes +of the Java Servlet and JSP APIs (packages javax.servlet). + +%prep +%setup -q -c -T -a 0 -n %{full_name}-5-src + +%build +# Fix us a license file first +cp -f jakarta-tomcat-%{version}-src/jakarta-servletapi-5/jsr154/LICENSE . +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 -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 -Dant.build.javac.source=1.8 -Dant.build.javac.target=1.8 +popd + +%install +cd jakarta-tomcat-%{version}-src/jakarta-servletapi-5 +# jars +install -d -m 755 %{buildroot}%{_javadir} +install -m 644 jsr152/dist/lib/jsp-api.jar %{buildroot}%{_javadir}/jspapi-%{version}.jar +install -m 644 jsr154/dist/lib/servlet-api.jar %{buildroot}%{_javadir}/%{name}-%{version}.jar +(cd %{buildroot}%{_javadir} && for jar in *-%{version}*; do ln -sf ${jar} `echo $jar| sed "s|-%{version}||g"`; done) +# alternatives +mkdir -p %{buildroot}%{_sysconfdir}/alternatives/ +ln -sf %{_sysconfdir}/alternatives/servlet.jar %{buildroot}%{_javadir}/servlet.jar + +%post +update-alternatives --install %{_javadir}/servlet.jar servlet %{_javadir}/%{name}-%{version}.jar 50 + +%postun +if [ "$1" = "0" ]; then + update-alternatives --remove servlet %{_javadir}/%{name}-%{version}.jar +fi + +%files +%defattr(-,root,root) +%doc LICENSE +%{_javadir}/* +%{_javadir}/servlet.jar +%ghost %{_sysconfdir}/alternatives/servlet.jar + +%changelog