diff --git a/0001-Use-PATH-env-variable-instead-of-JAVA_HOME.patch b/0001-Use-PATH-env-variable-instead-of-JAVA_HOME.patch new file mode 100644 index 0000000000000000000000000000000000000000..daf4babfd62190b93e6264da8182e00315a24d73 --- /dev/null +++ b/0001-Use-PATH-env-variable-instead-of-JAVA_HOME.patch @@ -0,0 +1,39 @@ +From d6623bd636d7f07aa8c73234375bdd11ccd6ee95 Mon Sep 17 00:00:00 2001 +From: Mikolaj Izdebski +Date: Wed, 25 Mar 2020 06:58:13 +0100 +Subject: [PATCH] Use PATH env variable instead of JAVA_HOME + +--- + .../plexus/interpolation/EnvarBasedValueSourceTest.java | 2 +- + .../plexus/interpolation/fixed/EnvarBasedValueSourceTest.java | 2 +- + 2 files changed, 2 insertions(+), 2 deletions(-) + +diff --git a/src/test/java/org/codehaus/plexus/interpolation/EnvarBasedValueSourceTest.java b/src/test/java/org/codehaus/plexus/interpolation/EnvarBasedValueSourceTest.java +index bc88e8b..6fc4c13 100644 +--- a/src/test/java/org/codehaus/plexus/interpolation/EnvarBasedValueSourceTest.java ++++ b/src/test/java/org/codehaus/plexus/interpolation/EnvarBasedValueSourceTest.java +@@ -87,7 +87,7 @@ public class EnvarBasedValueSourceTest + + EnvarBasedValueSource source = new EnvarBasedValueSource(); + +- String realEnvVar = "JAVA_HOME"; ++ String realEnvVar = "PATH"; + + String realValue = System.getenv().get( realEnvVar ); + assertNotNull( "Can't run this test until " + realEnvVar + " env variable is set", realValue ); +diff --git a/src/test/java/org/codehaus/plexus/interpolation/fixed/EnvarBasedValueSourceTest.java b/src/test/java/org/codehaus/plexus/interpolation/fixed/EnvarBasedValueSourceTest.java +index beaf014..94899d7 100644 +--- a/src/test/java/org/codehaus/plexus/interpolation/fixed/EnvarBasedValueSourceTest.java ++++ b/src/test/java/org/codehaus/plexus/interpolation/fixed/EnvarBasedValueSourceTest.java +@@ -87,7 +87,7 @@ public class EnvarBasedValueSourceTest + + EnvarBasedValueSource source = new EnvarBasedValueSource(); + +- String realEnvVar = "JAVA_HOME"; ++ String realEnvVar = "PATH"; + + String realValue = System.getenv().get( realEnvVar ); + assertNotNull( "Can't run this test until " + realEnvVar + " env variable is set", realValue ); +-- +2.21.0 + diff --git a/plexus-interpolation-1.26.tar.gz b/plexus-interpolation-1.26.tar.gz new file mode 100644 index 0000000000000000000000000000000000000000..b3dd6939f905e1f11f5a28edbb1fbda4c60a926c Binary files /dev/null and b/plexus-interpolation-1.26.tar.gz differ diff --git a/plexus-interpolation.spec b/plexus-interpolation.spec new file mode 100644 index 0000000000000000000000000000000000000000..72d568d2bc8d59e3c866f75811cc912657cc6ae6 --- /dev/null +++ b/plexus-interpolation.spec @@ -0,0 +1,52 @@ +%define anolis_release 4 +%bcond_without bootstrap + +Name: plexus-interpolation +Version: 1.26 +Release: %{anolis_release}%{?dist} +Summary: Plexus Interpolation API +# Most of the code is ASL 2.0, a few source files are ASL 1.1 and some tests are MIT +License: ASL 2.0 and ASL 1.1 and MIT +URL: https://github.com/codehaus-plexus/plexus-interpolation +BuildArch: noarch +ExclusiveArch: %{java_arches} noarch + +Source0: https://github.com/codehaus-plexus/plexus-interpolation/archive/plexus-interpolation-%{version}.tar.gz + +Patch0: 0001-Use-PATH-env-variable-instead-of-JAVA_HOME.patch + +%if %{with bootstrap} +BuildRequires: javapackages-bootstrap-openjdk8 +%else +BuildRequires: maven-local-openjdk8 +BuildRequires: mvn(junit:junit) +BuildRequires: mvn(org.codehaus.plexus:plexus-components:pom:) +BuildRequires: mvn(org.apache.felix:maven-bundle-plugin) +%endif + +%description +Plexus interpolator is the outgrowth of multiple iterations of development +focused on providing a more modular, flexible interpolation framework for +the expression language style commonly seen in Maven, Plexus, and other +related projects. + +%{?javadoc_package} + +%prep +%autosetup -p1 -n plexus-interpolation-plexus-interpolation-%{version} +%pom_add_dep junit:junit:4.13.1:test +%pom_remove_plugin :maven-release-plugin +%pom_remove_plugin :maven-scm-publish-plugin + +%build +%mvn_file : plexus/interpolation +%mvn_build + +%install +%mvn_install + +%files -f .mfiles + +%changelog +* Sun Apr 16 2023 Funda Wang - 1.26-4 +- Import package for anolis 23