From 8343a69356c7c7c9175309b39afe2d7d388d636369b00a09e4548477048f8f0f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Adrian=20Schr=C3=B6ter?= Date: Fri, 3 May 2024 19:24:19 +0200 Subject: [PATCH] Sync from SUSE:SLFO:Main plexus-classworlds revision 89fdb086e9ef955d0ee6cd4207402a6a --- .gitattributes | 23 ++++ plexus-classworlds-2.6.0.tar.gz | 3 + plexus-classworlds-build.xml | 220 ++++++++++++++++++++++++++++++++ plexus-classworlds.changes | 72 +++++++++++ plexus-classworlds.spec | 107 ++++++++++++++++ 5 files changed, 425 insertions(+) create mode 100644 .gitattributes create mode 100644 plexus-classworlds-2.6.0.tar.gz create mode 100644 plexus-classworlds-build.xml create mode 100644 plexus-classworlds.changes create mode 100644 plexus-classworlds.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/plexus-classworlds-2.6.0.tar.gz b/plexus-classworlds-2.6.0.tar.gz new file mode 100644 index 0000000..68a7a8a --- /dev/null +++ b/plexus-classworlds-2.6.0.tar.gz @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:e0401258cdd7c9a6dd7810688bb284e1173c6c695e21332a14796f44ded08454 +size 57221 diff --git a/plexus-classworlds-build.xml b/plexus-classworlds-build.xml new file mode 100644 index 0000000..cc5f4ff --- /dev/null +++ b/plexus-classworlds-build.xml @@ -0,0 +1,220 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + =================================== WARNING =================================== + JUnit is not present in the test classpath or your $ANT_HOME/lib directory. Tests not executed. + =============================================================================== + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/plexus-classworlds.changes b/plexus-classworlds.changes new file mode 100644 index 0000000..1ff6afc --- /dev/null +++ b/plexus-classworlds.changes @@ -0,0 +1,72 @@ +------------------------------------------------------------------- +Thu May 19 06:39:39 UTC 2022 - Fridrich Strba + +- Update to version 2.6.0 + * Modular java JPMS support + +------------------------------------------------------------------- +Tue Apr 9 16:50:05 UTC 2019 - Fridrich Strba + +- Remove reference to the parent pom since we are not building + using Maven. + +------------------------------------------------------------------- +Thu Feb 14 08:18:44 UTC 2019 - Fridrich Strba + +- Rename package to plexus-classworlds +- Ugrade to version 2.5.2 +- Make building with tests optional as to avoid/shorten build + cycles + +------------------------------------------------------------------- +Wed May 16 09:32:19 UTC 2018 - fstrba@suse.com + +- Build with source and target 8 to prepare for a possible removal + of 1.6 compatibility +- Added patch: + * classworlds-1.1-deprecated.patch + + File.toURL() is deprecated + +------------------------------------------------------------------- +Mon Sep 18 06:33:29 UTC 2017 - fstrba@suse.com + +- Specify java source and target level 1.6 in order to allow build + with jdk9 +- Clean spec file + +------------------------------------------------------------------- +Fri May 19 10:20:33 UTC 2017 - pcervinka@suse.com + +- New build dependency: javapackages-local +- Fixed requires +- Removed maven conditions +- Spec file cleaned + +------------------------------------------------------------------- +Wed Mar 18 09:46:05 UTC 2015 - tchvatal@suse.com + +- Fix build with new javapackages-tools + +------------------------------------------------------------------- +Mon Sep 9 11:05:36 UTC 2013 - tchvatal@suse.com + +- Move from jpackage-utils to javapackage-tools + +------------------------------------------------------------------- +Wed Aug 28 13:40:55 UTC 2013 - mvyskocil@suse.com + +- use add_maven_depmap from javapackages-tools +- use pom file from repo1.maven.org + +------------------------------------------------------------------- +Thu May 10 09:16:12 UTC 2012 - cfarrell@suse.com + +- license update: BSD-3-Clause + Open Source is not a recognised license. Use the proper license + (BSD-3-Clause) in SPDX format + +------------------------------------------------------------------- +Wed Jun 3 16:43:26 CEST 2009 - mvyskocil@suse.cz + +- Initial SUSE packaging from jpackage.org 5.0 + diff --git a/plexus-classworlds.spec b/plexus-classworlds.spec new file mode 100644 index 0000000..49216b1 --- /dev/null +++ b/plexus-classworlds.spec @@ -0,0 +1,107 @@ +# +# spec file +# +# Copyright (c) 2022 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 short_name classworlds +%bcond_with tests +Name: plexus-%{short_name} +Version: 2.6.0 +Release: 0 +Summary: Plexus Classworlds Classloader Framework +License: Apache-2.0 AND Plexus +Group: Development/Libraries/Java +URL: https://github.com/codehaus-plexus/plexus-classworlds +Source0: https://github.com/codehaus-plexus/%{name}/archive/%{name}-%{version}.tar.gz +Source1: %{name}-build.xml +BuildRequires: ant +BuildRequires: fdupes +BuildRequires: javapackages-local +Obsoletes: %{short_name} < %{version}-%{release} +Provides: %{short_name} = %{version}-%{release} +BuildArch: noarch +%if %{with tests} +BuildRequires: ant-junit +BuildRequires: commons-logging +BuildRequires: xml-apis +%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. + +%package javadoc +Summary: Javadoc for %{name} +Group: Documentation/HTML + +%description javadoc +API documentation for %{name}. + +%prep +%setup -q -n %{name}-%{name}-%{version} +cp %{SOURCE1} build.xml +%if %{with tests} +mkdir -p target/test-lib +rm -f target/test-lib/{ant-1.9.0,commons-logging-1.0.3,xml-apis-1.3.02}.jar +ln -s $(build-classpath ant/ant) target/test-lib/ant-1.9.0.jar +ln -s $(build-classpath commons-logging) target/test-lib/commons-logging-1.0.3.jar +ln -s $(build-classpath xml-apis) target/test-lib/xml-apis-1.3.02.jar +%endif + +%pom_remove_plugin :maven-enforcer-plugin +%pom_remove_plugin :maven-dependency-plugin + +%pom_remove_parent . +%pom_xpath_inject "pom:project" "org.codehaus.plexus" . + +%build +%{ant} \ +%if %{without tests} + -Dtest.skip=true \ +%endif + jar javadoc + +%install +# jar +install -dm 0755 %{buildroot}%{_javadir}/plexus +install -pm 0644 target/%{name}-%{version}.jar %{buildroot}%{_javadir}/%{name}.jar +ln -sf %{name}.jar %{buildroot}%{_javadir}/%{short_name}.jar +ln -sf ../%{name}.jar %{buildroot}%{_javadir}/plexus/%{short_name}.jar +# pom +install -dm 0755 %{buildroot}%{_mavenpomdir} +install -pm 0644 pom.xml %{buildroot}%{_mavenpomdir}/%{name}.pom +%add_maven_depmap %{name}.pom %{name}.jar -a %{short_name}:%{short_name} +# javadoc +install -dm 0755 %{buildroot}%{_javadocdir}/%{name} +cp -pr target/site/apidocs/* %{buildroot}%{_javadocdir}/%{name}/ +%fdupes -s %{buildroot}%{_javadocdir} + +%files -f .mfiles +%license LICENSE.txt LICENSE-2.0.txt +%{_javadir}/plexus +%{_javadir}/%{short_name}.jar + +%files javadoc +%license LICENSE.txt LICENSE-2.0.txt +%{_javadocdir}/%{name} + +%changelog