Resolves: RHEL-35734 Add tomcat-jakartaee-migration package to RHEL 10
This commit is contained in:
parent
a01edde1df
commit
570dfda6c1
3
.gitignore
vendored
3
.gitignore
vendored
@ -0,0 +1,3 @@
|
||||
results_*
|
||||
tomcat-jakartaee-migration-*.src.rpm
|
||||
jakartaee-migration-*-src.zip
|
||||
4
javax2jakarta
Normal file
4
javax2jakarta
Normal file
@ -0,0 +1,4 @@
|
||||
#!/bin/sh
|
||||
|
||||
# Assumes java is on the path
|
||||
java -cp "/usr/share/java/tomcat-jakartaee-migration/*:/usr/share/java/*" org.apache.tomcat.jakartaee.MigrationCLI "$@"
|
||||
1
sources
Normal file
1
sources
Normal file
@ -0,0 +1 @@
|
||||
SHA512 (jakartaee-migration-1.0.6.redhat-00003-src.zip) = 34cddf59b8066bfc262ea18138f975d096b4aeb3f89eec1feebac50afc8ee2b60664f3b084f2051dfa02e99dc7d85592dc1a1fbc3274b9ef86d2e743a5ca7d36
|
||||
66
tomcat-jakartaee-migration.spec
Normal file
66
tomcat-jakartaee-migration.spec
Normal file
@ -0,0 +1,66 @@
|
||||
Name: tomcat-jakartaee-migration
|
||||
Version: 1.0.6
|
||||
Release: 1%{?dist}
|
||||
Summary: Tomcat Migration Tool for Jakarta EE
|
||||
|
||||
License: Apache-2.0
|
||||
URL: http://tomcat.apache.org/
|
||||
Source0: jakartaee-migration-%{version}.redhat-00003-src.zip
|
||||
Source1: javax2jakarta
|
||||
|
||||
BuildArch: noarch
|
||||
ExclusiveArch: %{java_arches} noarch
|
||||
|
||||
BuildRequires: bcel
|
||||
BuildRequires: apache-commons-compress
|
||||
BuildRequires: apache-commons-io
|
||||
BuildRequires: ant
|
||||
BuildRequires: java-devel
|
||||
|
||||
BuildRequires: maven-local
|
||||
BuildRequires: mvn(junit:junit)
|
||||
BuildRequires: mvn(org.apache:apache:pom:)
|
||||
BuildRequires: mvn(org.apache.maven.plugins:maven-antrun-plugin)
|
||||
BuildRequires: mvn(org.apache.maven.plugins:maven-shade-plugin)
|
||||
BuildRequires: mvn(org.apache.maven.plugins:maven-assembly-plugin)
|
||||
BuildRequires: mvn(org.apache.maven.plugins:maven-jar-plugin)
|
||||
BuildRequires: mvn(org.apache.maven.plugins:maven-source-plugin)
|
||||
|
||||
%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.
|
||||
|
||||
%package javadoc
|
||||
Summary: Javadoc for %{name}
|
||||
|
||||
%description javadoc
|
||||
API documentation for %{name}.
|
||||
|
||||
%prep
|
||||
%setup -q -n jakartaee-migration-%{version}.redhat-00003
|
||||
%pom_remove_plugin :maven-javadoc-plugin
|
||||
%pom_remove_plugin org.jacoco:jacoco-maven-plugin
|
||||
|
||||
%build
|
||||
%mvn_build -- -DskipTests
|
||||
|
||||
%install
|
||||
%mvn_install
|
||||
|
||||
%{__install} -d -m 0755 ${RPM_BUILD_ROOT}%{_bindir}
|
||||
%{__install} -m 0755 %{SOURCE1} ${RPM_BUILD_ROOT}%{_bindir}
|
||||
|
||||
%{__install} -d -m 0755 ${RPM_BUILD_ROOT}%{_datarootdir}/licenses/%{name}-javadoc
|
||||
%{__mv} ${RPM_BUILD_ROOT}%{_javadocdir}/%{name}/legal/ADDITIONAL_LICENSE_INFO ${RPM_BUILD_ROOT}%{_datarootdir}/licenses/%{name}-javadoc/
|
||||
|
||||
%files -f .mfiles
|
||||
%license LICENSE.txt
|
||||
%doc CHANGES.md README.md
|
||||
%{_bindir}/javax2jakarta
|
||||
|
||||
%files javadoc -f .mfiles-javadoc
|
||||
%{_datarootdir}/licenses/%{name}-javadoc/ADDITIONAL_LICENSE_INFO
|
||||
%license LICENSE.txt
|
||||
|
||||
%changelog
|
||||
* Mon Aug 12 2024 Adam Krajcik <akrajcik@redhat.com> - 1.0.6-1
|
||||
- Add tomcat-jakartaee-migration package to RHEL 10
|
||||
Loading…
Reference in New Issue
Block a user