From 6af72f74c202f6c7dd6450ef14eb6a18b4be37de868ddb5bdd3e38a293ff6dda Mon Sep 17 00:00:00 2001 From: Fridrich Strba Date: Fri, 25 Mar 2022 07:59:48 +0000 Subject: [PATCH] OBS-URL: https://build.opensuse.org/package/show/Java:packages/maven-native?expand=0&rev=14 --- maven-native.changes | 6 +++ maven-native.spec | 15 +++++- plexus_components-bcc.xml | 33 ++++++++++++ plexus_components-generic-c.xml | 32 +++++++++++ plexus_components-manager.xml | 96 +++++++++++++++++++++++++++++++++ plexus_components-msvc.xml | 38 +++++++++++++ 6 files changed, 218 insertions(+), 2 deletions(-) create mode 100644 plexus_components-bcc.xml create mode 100644 plexus_components-generic-c.xml create mode 100644 plexus_components-manager.xml create mode 100644 plexus_components-msvc.xml diff --git a/maven-native.changes b/maven-native.changes index d91ae00..59344b1 100644 --- a/maven-native.changes +++ b/maven-native.changes @@ -1,3 +1,9 @@ +------------------------------------------------------------------- +Fri Mar 25 07:57:38 UTC 2022 - Fridrich Strba + +- Put back the plexus components.xml files from alpha-8, since + they are not correctly genrated from the annotations + ------------------------------------------------------------------- Wed Jul 28 07:38:26 UTC 2021 - Fridrich Strba diff --git a/maven-native.spec b/maven-native.spec index 1768824..43fe0ba 100644 --- a/maven-native.spec +++ b/maven-native.spec @@ -1,7 +1,7 @@ # # spec file for package maven-native # -# Copyright (c) 2021 SUSE LLC +# 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 @@ -26,7 +26,12 @@ Group: Development/Libraries/Java URL: https://www.mojohaus.org/plugins.html # Source code available @ https://github.com/mojohaus/maven-native Source0: https://repo1.maven.org/maven2/org/codehaus/mojo/natives/%{name}/%{namedversion}/%{name}-%{namedversion}-source-release.zip +Source1: plexus_components-bcc.xml +Source2: plexus_components-generic-c.xml +Source3: plexus_components-manager.xml +Source4: plexus_components-msvc.xml BuildRequires: fdupes +BuildRequires: java-devel >= 1.8 BuildRequires: maven-local BuildRequires: mojo-parent BuildRequires: unzip @@ -103,9 +108,15 @@ sed -i "s|edu.emory.mathcs.backport.java.util.concurrent|java.util.concurrent|" %{mvn_package} ":%{name}-mingw" components %{mvn_package} ":native-maven-plugin" native-maven-plugin +mkdir -p maven-native-components/maven-native-{bcc,generic-c,manager,msvc}/src/main/resources/META-INF/plexus/ +cp -a %{SOURCE1} maven-native-components/maven-native-bcc/src/main/resources/META-INF/plexus/components.xml +cp -a %{SOURCE2} maven-native-components/maven-native-generic-c/src/main/resources/META-INF/plexus/components.xml +cp -a %{SOURCE3} maven-native-components/maven-native-manager/src/main/resources/META-INF/plexus/components.xml +cp -a %{SOURCE4} maven-native-components/maven-native-msvc/src/main/resources/META-INF/plexus/components.xml + %build -%{mvn_build} -f -s -- -Dmojo.java.target=1.7 -Dmaven.test.failure.ignore=true -Dsource=7 +%{mvn_build} -f -s -- -Dmojo.java.target=1.8 -Dmaven.test.failure.ignore=true -Dsource=8 %install %mvn_install diff --git a/plexus_components-bcc.xml b/plexus_components-bcc.xml new file mode 100644 index 0000000..b9b2ac3 --- /dev/null +++ b/plexus_components-bcc.xml @@ -0,0 +1,33 @@ + + + + + org.codehaus.mojo.natives.compiler.Compiler + bcc + org.codehaus.mojo.natives.bcc.BCCCompiler + per-lookup + + + + org.codehaus.mojo.natives.linker.Linker + tlib + org.codehaus.mojo.natives.bcc.TLibLinker + per-lookup + + + + + org.codehaus.mojo.natives.linker.Linker + bcc + org.codehaus.mojo.natives.bcc.BCCLinker + per-lookup + + + + org.codehaus.mojo.natives.compiler.ResourceCompiler + bcc + org.codehaus.mojo.natives.bcc.BCCResourceCompiler + + + + diff --git a/plexus_components-generic-c.xml b/plexus_components-generic-c.xml new file mode 100644 index 0000000..bf681b0 --- /dev/null +++ b/plexus_components-generic-c.xml @@ -0,0 +1,32 @@ + + + + + org.codehaus.mojo.natives.compiler.Compiler + generic + org.codehaus.mojo.natives.c.CCompiler + per-lookup + + + + org.codehaus.mojo.natives.linker.Linker + generic + org.codehaus.mojo.natives.c.CLinker + per-lookup + + + + org.codehaus.mojo.natives.compiler.Compiler + generic-classic + org.codehaus.mojo.natives.c.CCompilerClassic + per-lookup + + + + org.codehaus.mojo.natives.linker.Linker + generic-classic + org.codehaus.mojo.natives.c.CLinkerClassic + per-lookup + + + diff --git a/plexus_components-manager.xml b/plexus_components-manager.xml new file mode 100644 index 0000000..9c1f734 --- /dev/null +++ b/plexus_components-manager.xml @@ -0,0 +1,96 @@ + + + + org.codehaus.mojo.natives.manager.CompilerManager + native-compiler-provider-manager + org.codehaus.mojo.natives.manager.DefaultCompilerManager + + + org.codehaus.mojo.natives.compiler.Compiler + providers + + + + + + + org.codehaus.mojo.natives.manager.LinkerManager + native-linker-provider-manager + org.codehaus.mojo.natives.manager.DefaultLinkerManager + + + org.codehaus.mojo.natives.linker.Linker + providers + + + + + + org.codehaus.mojo.natives.manager.JavahManager + native-javah-provider-manager + org.codehaus.mojo.natives.manager.DefaultJavahManager + + + org.codehaus.mojo.natives.javah.Javah + providers + + + + + + org.codehaus.mojo.natives.manager.MessageCompilerManager + native-message-compiler-provider-manager + org.codehaus.mojo.natives.manager.DefaultMessageCompilerManager + + + org.codehaus.mojo.natives.compiler.MessageCompiler + providers + + + + + + org.codehaus.mojo.natives.manager.ResourceCompilerManager + native-resource-compiler-provider-manager + org.codehaus.mojo.natives.manager.DefaultResourceCompilerManager + + + org.codehaus.mojo.natives.compiler.ResourceCompiler + providers + + + + + + org.codehaus.mojo.natives.manager.RanlibManager + native-ranlib-provider-manager + org.codehaus.mojo.natives.manager.DefaultRanlibManager + + + org.codehaus.mojo.natives.linker.Ranlib + providers + + + + + + org.codehaus.mojo.natives.manager.ManifestManager + native-manifest-provider-manager + org.codehaus.mojo.natives.manager.DefaultManifestManager + + + org.codehaus.mojo.natives.linker.Manifest + providers + + + + + + org.codehaus.mojo.natives.manager.EnvFactoryManager + default + org.codehaus.mojo.natives.manager.DefaultEnvFactoryManager + singleton + + + + diff --git a/plexus_components-msvc.xml b/plexus_components-msvc.xml new file mode 100644 index 0000000..2ca3d17 --- /dev/null +++ b/plexus_components-msvc.xml @@ -0,0 +1,38 @@ + + + + + + org.codehaus.mojo.natives.compiler.Compiler + msvc + org.codehaus.mojo.natives.msvc.MSVCCompiler + + + + org.codehaus.mojo.natives.linker.Linker + msvc + org.codehaus.mojo.natives.msvc.MSVCLinker + + + + org.codehaus.mojo.natives.compiler.MessageCompiler + msvc + org.codehaus.mojo.natives.msvc.MSVCMessageCompiler + + + + org.codehaus.mojo.natives.compiler.ResourceCompiler + msvc + org.codehaus.mojo.natives.msvc.MSVCResourceCompiler + + + + org.codehaus.mojo.natives.linker.Manifest + msvc + org.codehaus.mojo.natives.msvc.MSVCManifest + per-lookup + + + + +