From 97b8ca6938ef764455764d574c24d76c923d4332ba072ab3575b41479218a25f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Adrian=20Schr=C3=B6ter?= Date: Fri, 3 May 2024 13:53:49 +0200 Subject: [PATCH] Sync from SUSE:SLFO:Main jakarta-servlet revision dbe6601b43e1996f11db223b1748a34f --- .gitattributes | 23 ++++++ 5.0.0-RELEASE.tar.gz | 3 + jakarta-servlet-api-build.xml | 138 ++++++++++++++++++++++++++++++++++ jakarta-servlet.changes | 9 +++ jakarta-servlet.spec | 88 ++++++++++++++++++++++ 5 files changed, 261 insertions(+) create mode 100644 .gitattributes create mode 100644 5.0.0-RELEASE.tar.gz create mode 100644 jakarta-servlet-api-build.xml create mode 100644 jakarta-servlet.changes create mode 100644 jakarta-servlet.spec 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/5.0.0-RELEASE.tar.gz b/5.0.0-RELEASE.tar.gz new file mode 100644 index 0000000..1e0f90d --- /dev/null +++ b/5.0.0-RELEASE.tar.gz @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:afb0cd16dce07c45ff3fb4388f9b3f32704e665f2fdbad2f18a8b29fdd46fd43 +size 603892 diff --git a/jakarta-servlet-api-build.xml b/jakarta-servlet-api-build.xml new file mode 100644 index 0000000..4920d74 --- /dev/null +++ b/jakarta-servlet-api-build.xml @@ -0,0 +1,138 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/jakarta-servlet.changes b/jakarta-servlet.changes new file mode 100644 index 0000000..101113f --- /dev/null +++ b/jakarta-servlet.changes @@ -0,0 +1,9 @@ +------------------------------------------------------------------- +Mon Jan 8 12:45:17 UTC 2024 - Frederic Crozat + +- Update url for project and source tarball. + +------------------------------------------------------------------- +Mon Dec 13 06:28:07 UTC 2021 - Fridrich Strba + +- Initial packaging of jakarta-servlet 5.0.0 diff --git a/jakarta-servlet.spec b/jakarta-servlet.spec new file mode 100644 index 0000000..f785a5a --- /dev/null +++ b/jakarta-servlet.spec @@ -0,0 +1,88 @@ +# +# spec file for package jakarta-servlet +# +# Copyright (c) 2024 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/ +# + + +%global artifactId jakarta.servlet-api +Name: jakarta-servlet +Version: 5.0.0 +Release: 0 +Summary: Server-side API for handling HTTP requests and responses +License: Apache-2.0 AND (EPL-2.0 OR GPL-2.0-only WITH Classpath-exception-2.0) +URL: https://github.com/jakartaee/servlet +Source0: https://github.com/jakartaee/servlet/archive/refs/tags/%{version}-RELEASE.tar.gz +Source1: %{name}-api-build.xml +BuildRequires: ant +BuildRequires: fdupes +BuildRequires: java-devel >= 1.8 +BuildRequires: javapackages-local +BuildArch: noarch + +%description +Jakarta Servlet defines a server-side API for handling HTTP requests +and responses. + +%package javadoc +Summary: Javadoc for %{name} +Group: Documentation/HTML + +%description javadoc +API documentation for %{name}. + +%prep +%setup -q -n servlet-%{version}-RELEASE +cp LICENSE.md api/src/main/resources/META-INF/ +cp NOTICE.md api/src/main/resources/META-INF/ + +# remove unnecessary dependency on parent POM +%pom_remove_parent . api + +cp %{SOURCE1} api/build.xml + +# remove unnecessary maven plugins +%pom_remove_plugin -r :formatter-maven-plugin +%pom_remove_plugin -r :impsort-maven-plugin +%pom_remove_plugin -r :maven-enforcer-plugin +%pom_remove_plugin -r :maven-javadoc-plugin +%pom_remove_plugin -r :maven-source-plugin + +%build +pushd api +%{ant} jar javadoc +popd + +%install +# jar +install -dm 0755 %{buildroot}%{_javadir}/%{name} +install -pm 0644 api/target/%{artifactId}-%{version}.jar %{buildroot}%{_javadir}/%{name}/%{artifactId}.jar +# pom +install -dm 0755 %{buildroot}%{_mavenpomdir}/%{name} +install -pm 0644 api/pom.xml %{buildroot}%{_mavenpomdir}/%{name}/%{artifactId}.pom +%add_maven_depmap %{name}/%{artifactId}.pom %{name}/%{artifactId}.jar +# javadoc +install -dm 0755 %{buildroot}%{_javadocdir}/%{name} +cp -pr api/target/site/apidocs/* %{buildroot}%{_javadocdir}/%{name}/ +%fdupes -s %{buildroot}%{_javadocdir} + +%files -f .mfiles +%license LICENSE.md NOTICE.md +%doc README.md + +%files javadoc +%{_javadocdir}/%{name} +%license LICENSE.md NOTICE.md + +%changelog