diff --git a/plexus-classworlds-2.6.0.tar.gz b/plexus-classworlds-2.6.0.tar.gz new file mode 100644 index 0000000000000000000000000000000000000000..52e2dbbd2d57d23aa665920339603159e29cdae5 Binary files /dev/null and b/plexus-classworlds-2.6.0.tar.gz differ diff --git a/plexus-classworlds.spec b/plexus-classworlds.spec new file mode 100644 index 0000000000000000000000000000000000000000..0660b3dd18ec185eab934973dc2edb977c8750a4 --- /dev/null +++ b/plexus-classworlds.spec @@ -0,0 +1,61 @@ +%define anolis_release 1 +%bcond_without bootstrap + +Name: plexus-classworlds +Version: 2.6.0 +Release: %{anolis_release}%{?dist} +Summary: Plexus Classworlds Classloader Framework +License: ASL 2.0 and Plexus +URL: https://github.com/codehaus-plexus/plexus-classworlds +BuildArch: noarch +ExclusiveArch: %{java_arches} noarch + +Source0: https://github.com/codehaus-plexus/%{name}/archive/%{name}-%{version}.tar.gz + +%if %{with bootstrap} +BuildRequires: javapackages-bootstrap-openjdk8 +%else +BuildRequires: maven-local-openjdk8 +BuildRequires: mvn(junit:junit) +BuildRequires: mvn(org.apache.felix:maven-bundle-plugin) +BuildRequires: mvn(org.codehaus.plexus:plexus:pom:) +%endif + +%description +Classworlds is a framework for container developers +who require complex manipulation of Java's ClassLoaders. +Java's native ClassLoader mechanisms and classes can cause +much headache and confusion for certain types of +application developers. Projects which involve dynamic +loading of components or otherwise represent a 'container' +can benefit from the classloading control provided by +classworlds. + +%{?javadoc_package} + +%prep +%setup -q -n %{name}-%{name}-%{version} +%mvn_file : %{name} plexus/classworlds +%mvn_alias : classworlds:classworlds + +%pom_add_dep junit:junit:4.13.1:test + +%pom_remove_plugin :maven-enforcer-plugin +%pom_remove_plugin :maven-dependency-plugin + +# These tests depend on artifacts that are not packaged +sed -i /testConfigure_Valid/s/./@org.junit.Ignore/ $(find -name ConfiguratorTest.java) +sed -i /testConfigure_Optionally_Existent/s/./@org.junit.Ignore/ $(find -name ConfiguratorTest.java) + +%build +%mvn_build + +%install +%mvn_install + +%files -f .mfiles +%license LICENSE.txt LICENSE-2.0.txt + +%changelog +* Sat Apr 15 2023 Funda Wang - 2.6.0-1 +- Import package for anolis 23