From 602d32d5d1fa893fa909aab837c4ec59c76ea692ce49bd06e30f816b3f30751b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Adrian=20Schr=C3=B6ter?= Date: Sat, 4 May 2024 01:26:07 +0200 Subject: [PATCH] Sync from SUSE:SLFO:Main tomcat-jakartaee-migration revision 398ddef4d75e0750652fd225f8630b8e --- .gitattributes | 23 +++++ jakartaee-migration-1.0.7-src.tar.gz | 3 + tomcat-jakartaee-migration-build.xml | 137 +++++++++++++++++++++++++++ tomcat-jakartaee-migration.changes | 5 + tomcat-jakartaee-migration.spec | 94 ++++++++++++++++++ 5 files changed, 262 insertions(+) create mode 100644 .gitattributes create mode 100644 jakartaee-migration-1.0.7-src.tar.gz create mode 100644 tomcat-jakartaee-migration-build.xml create mode 100644 tomcat-jakartaee-migration.changes create mode 100644 tomcat-jakartaee-migration.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/jakartaee-migration-1.0.7-src.tar.gz b/jakartaee-migration-1.0.7-src.tar.gz new file mode 100644 index 0000000..a1369c6 --- /dev/null +++ b/jakartaee-migration-1.0.7-src.tar.gz @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:f77ea243109171674eb43f8b89d88bc7aee115745c81bad6d4cdfaa48de4e4e3 +size 43381 diff --git a/tomcat-jakartaee-migration-build.xml b/tomcat-jakartaee-migration-build.xml new file mode 100644 index 0000000..6fbfcc8 --- /dev/null +++ b/tomcat-jakartaee-migration-build.xml @@ -0,0 +1,137 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/tomcat-jakartaee-migration.changes b/tomcat-jakartaee-migration.changes new file mode 100644 index 0000000..a04190e --- /dev/null +++ b/tomcat-jakartaee-migration.changes @@ -0,0 +1,5 @@ +------------------------------------------------------------------- +Tue Nov 14 10:51:23 UTC 2023 - Michele Bussolotto + + - initial packaging of tomcat-jakartaee-migration 1.0.7 + diff --git a/tomcat-jakartaee-migration.spec b/tomcat-jakartaee-migration.spec new file mode 100644 index 0000000..3c3ff80 --- /dev/null +++ b/tomcat-jakartaee-migration.spec @@ -0,0 +1,94 @@ +# +# spec file for package tomcat-jakartaee-migration +# +# Copyright (c) 2023 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 jakartaee-migration +Name: tomcat-jakartaee-migration +Version: 1.0.7 +Release: 0 +Summary: Tomcat JakartaEE Migration +License: Apache-2.0 +URL: https://tomcat.apache.org/download-migration.cgi +Source0: https://archive.apache.org/dist/tomcat/%{artifactId}/v%{version}/source/%{artifactId}-%{version}-src.tar.gz +Source1: %{name}-build.xml +BuildRequires: ant +BuildRequires: bcel +BuildRequires: commons-compress +BuildRequires: commons-io +BuildRequires: commons-lang3 +BuildRequires: javapackages-local +Requires: bcel +Requires: commons-compress +Requires: commons-io +Requires: commons-lang3 +Requires: javapackages-tools +BuildArch: noarch + +%description +The purpose of the tool is to take a web application written for +Java EE 8 that runs on Apache Tomcat 9 and convert it automatically +so it runs on Apache Tomcat 10 which implements Jakarta EE 9. + +The tool can be used from the command line or as an Ant task. + +%package javadoc +Summary: Javadoc for %{name} +Group: Documentation/HTML + +%description javadoc +This package contains the API documentation for %{name}. + +%prep +%setup -q -n %{artifactId}-%{version} +cp %{SOURCE1} build.xml + +%build +mkdir -p lib +build-jar-repository -s lib bcel commons-compress commons-io ant/ant +%{ant} jar javadoc + +%install +# jar +install -dm 0755 %{buildroot}%{_javadir}/%{name} +install -pm 0755 target/%{artifactId}-%{version}.jar %{buildroot}%{_javadir}/%{name}/%{artifactId}.jar + +# pom +install -dm 0755 %{buildroot}%{_mavenpomdir}/%{name} +%{mvn_install_pom} pom.xml %{buildroot}%{_mavenpomdir}/%{name}/%{artifactId}.pom +%add_maven_depmap %{name}/%{artifactId}.pom %{name}/%{artifactId}.jar + +# javadoc +install -dm 0755 %{buildroot}%{_javadocdir}/%{name} +cp -r target/site/apidocs/* %{buildroot}%{_javadocdir}/%{name} + +# script +%jpackage_script org.apache.tomcat.jakartaee.MigrationCLI "" "" %{name}:bcel:commons-compress:commons-io:commons-lang3 javax2jakarta true + +# ant +install -d -m 0755 %{buildroot}%{_sysconfdir}/ant.d +echo "%{name} bcel commons-compress commons-io commons-lang3" > %{buildroot}%{_sysconfdir}/ant.d/%{name} + +%files -f .mfiles +%{_bindir}/javax2jakarta +%{_sysconfdir}/ant.d/%{name} +%license LICENSE.txt NOTICE.txt +%doc README.md CHANGES.md + +%files javadoc +%{_javadocdir}/%{name} + +%changelog