forked from pool/maven-native
This commit is contained in:
parent
8bd642d85c
commit
6af72f74c2
@ -1,3 +1,9 @@
|
||||
-------------------------------------------------------------------
|
||||
Fri Mar 25 07:57:38 UTC 2022 - Fridrich Strba <fstrba@suse.com>
|
||||
|
||||
- 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 <fstrba@suse.com>
|
||||
|
||||
|
@ -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
|
||||
|
33
plexus_components-bcc.xml
Normal file
33
plexus_components-bcc.xml
Normal file
@ -0,0 +1,33 @@
|
||||
<component-set>
|
||||
<components>
|
||||
|
||||
<component>
|
||||
<role>org.codehaus.mojo.natives.compiler.Compiler</role>
|
||||
<role-hint>bcc</role-hint>
|
||||
<implementation>org.codehaus.mojo.natives.bcc.BCCCompiler</implementation>
|
||||
<instantiation-strategy>per-lookup</instantiation-strategy>
|
||||
</component>
|
||||
|
||||
<component>
|
||||
<role>org.codehaus.mojo.natives.linker.Linker</role>
|
||||
<role-hint>tlib</role-hint>
|
||||
<implementation>org.codehaus.mojo.natives.bcc.TLibLinker</implementation>
|
||||
<instantiation-strategy>per-lookup</instantiation-strategy>
|
||||
</component>
|
||||
|
||||
|
||||
<component>
|
||||
<role>org.codehaus.mojo.natives.linker.Linker</role>
|
||||
<role-hint>bcc</role-hint>
|
||||
<implementation>org.codehaus.mojo.natives.bcc.BCCLinker</implementation>
|
||||
<instantiation-strategy>per-lookup</instantiation-strategy>
|
||||
</component>
|
||||
|
||||
<component>
|
||||
<role>org.codehaus.mojo.natives.compiler.ResourceCompiler</role>
|
||||
<role-hint>bcc</role-hint>
|
||||
<implementation>org.codehaus.mojo.natives.bcc.BCCResourceCompiler</implementation>
|
||||
</component>
|
||||
|
||||
</components>
|
||||
</component-set>
|
32
plexus_components-generic-c.xml
Normal file
32
plexus_components-generic-c.xml
Normal file
@ -0,0 +1,32 @@
|
||||
<component-set>
|
||||
<components>
|
||||
|
||||
<component>
|
||||
<role>org.codehaus.mojo.natives.compiler.Compiler</role>
|
||||
<role-hint>generic</role-hint>
|
||||
<implementation>org.codehaus.mojo.natives.c.CCompiler</implementation>
|
||||
<instantiation-strategy>per-lookup</instantiation-strategy>
|
||||
</component>
|
||||
|
||||
<component>
|
||||
<role>org.codehaus.mojo.natives.linker.Linker</role>
|
||||
<role-hint>generic</role-hint>
|
||||
<implementation>org.codehaus.mojo.natives.c.CLinker</implementation>
|
||||
<instantiation-strategy>per-lookup</instantiation-strategy>
|
||||
</component>
|
||||
|
||||
<component>
|
||||
<role>org.codehaus.mojo.natives.compiler.Compiler</role>
|
||||
<role-hint>generic-classic</role-hint>
|
||||
<implementation>org.codehaus.mojo.natives.c.CCompilerClassic</implementation>
|
||||
<instantiation-strategy>per-lookup</instantiation-strategy>
|
||||
</component>
|
||||
|
||||
<component>
|
||||
<role>org.codehaus.mojo.natives.linker.Linker</role>
|
||||
<role-hint>generic-classic</role-hint>
|
||||
<implementation>org.codehaus.mojo.natives.c.CLinkerClassic</implementation>
|
||||
<instantiation-strategy>per-lookup</instantiation-strategy>
|
||||
</component>
|
||||
</components>
|
||||
</component-set>
|
96
plexus_components-manager.xml
Normal file
96
plexus_components-manager.xml
Normal file
@ -0,0 +1,96 @@
|
||||
<component-set>
|
||||
<components>
|
||||
<component>
|
||||
<role>org.codehaus.mojo.natives.manager.CompilerManager</role>
|
||||
<role-hint>native-compiler-provider-manager</role-hint>
|
||||
<implementation>org.codehaus.mojo.natives.manager.DefaultCompilerManager</implementation>
|
||||
<requirements>
|
||||
<requirement>
|
||||
<role>org.codehaus.mojo.natives.compiler.Compiler</role>
|
||||
<field-name>providers</field-name>
|
||||
</requirement>
|
||||
</requirements>
|
||||
|
||||
</component>
|
||||
|
||||
<component>
|
||||
<role>org.codehaus.mojo.natives.manager.LinkerManager</role>
|
||||
<role-hint>native-linker-provider-manager</role-hint>
|
||||
<implementation>org.codehaus.mojo.natives.manager.DefaultLinkerManager</implementation>
|
||||
<requirements>
|
||||
<requirement>
|
||||
<role>org.codehaus.mojo.natives.linker.Linker</role>
|
||||
<field-name>providers</field-name>
|
||||
</requirement>
|
||||
</requirements>
|
||||
</component>
|
||||
|
||||
<component>
|
||||
<role>org.codehaus.mojo.natives.manager.JavahManager</role>
|
||||
<role-hint>native-javah-provider-manager</role-hint>
|
||||
<implementation>org.codehaus.mojo.natives.manager.DefaultJavahManager</implementation>
|
||||
<requirements>
|
||||
<requirement>
|
||||
<role>org.codehaus.mojo.natives.javah.Javah</role>
|
||||
<field-name>providers</field-name>
|
||||
</requirement>
|
||||
</requirements>
|
||||
</component>
|
||||
|
||||
<component>
|
||||
<role>org.codehaus.mojo.natives.manager.MessageCompilerManager</role>
|
||||
<role-hint>native-message-compiler-provider-manager</role-hint>
|
||||
<implementation>org.codehaus.mojo.natives.manager.DefaultMessageCompilerManager</implementation>
|
||||
<requirements>
|
||||
<requirement>
|
||||
<role>org.codehaus.mojo.natives.compiler.MessageCompiler</role>
|
||||
<field-name>providers</field-name>
|
||||
</requirement>
|
||||
</requirements>
|
||||
</component>
|
||||
|
||||
<component>
|
||||
<role>org.codehaus.mojo.natives.manager.ResourceCompilerManager</role>
|
||||
<role-hint>native-resource-compiler-provider-manager</role-hint>
|
||||
<implementation>org.codehaus.mojo.natives.manager.DefaultResourceCompilerManager</implementation>
|
||||
<requirements>
|
||||
<requirement>
|
||||
<role>org.codehaus.mojo.natives.compiler.ResourceCompiler</role>
|
||||
<field-name>providers</field-name>
|
||||
</requirement>
|
||||
</requirements>
|
||||
</component>
|
||||
|
||||
<component>
|
||||
<role>org.codehaus.mojo.natives.manager.RanlibManager</role>
|
||||
<role-hint>native-ranlib-provider-manager</role-hint>
|
||||
<implementation>org.codehaus.mojo.natives.manager.DefaultRanlibManager</implementation>
|
||||
<requirements>
|
||||
<requirement>
|
||||
<role>org.codehaus.mojo.natives.linker.Ranlib</role>
|
||||
<field-name>providers</field-name>
|
||||
</requirement>
|
||||
</requirements>
|
||||
</component>
|
||||
|
||||
<component>
|
||||
<role>org.codehaus.mojo.natives.manager.ManifestManager</role>
|
||||
<role-hint>native-manifest-provider-manager</role-hint>
|
||||
<implementation>org.codehaus.mojo.natives.manager.DefaultManifestManager</implementation>
|
||||
<requirements>
|
||||
<requirement>
|
||||
<role>org.codehaus.mojo.natives.linker.Manifest</role>
|
||||
<field-name>providers</field-name>
|
||||
</requirement>
|
||||
</requirements>
|
||||
</component>
|
||||
|
||||
<component>
|
||||
<role>org.codehaus.mojo.natives.manager.EnvFactoryManager</role>
|
||||
<role-hint>default</role-hint>
|
||||
<implementation>org.codehaus.mojo.natives.manager.DefaultEnvFactoryManager</implementation>
|
||||
<instantiation-strategy>singleton</instantiation-strategy>
|
||||
</component>
|
||||
|
||||
</components>
|
||||
</component-set>
|
38
plexus_components-msvc.xml
Normal file
38
plexus_components-msvc.xml
Normal file
@ -0,0 +1,38 @@
|
||||
<component-set>
|
||||
<components>
|
||||
|
||||
<!-- | Generic MSVC compiler and linker, user must call MSVC setup up script -->
|
||||
<component>
|
||||
<role>org.codehaus.mojo.natives.compiler.Compiler</role>
|
||||
<role-hint>msvc</role-hint>
|
||||
<implementation>org.codehaus.mojo.natives.msvc.MSVCCompiler</implementation>
|
||||
</component>
|
||||
|
||||
<component>
|
||||
<role>org.codehaus.mojo.natives.linker.Linker</role>
|
||||
<role-hint>msvc</role-hint>
|
||||
<implementation>org.codehaus.mojo.natives.msvc.MSVCLinker</implementation>
|
||||
</component>
|
||||
|
||||
<component>
|
||||
<role>org.codehaus.mojo.natives.compiler.MessageCompiler</role>
|
||||
<role-hint>msvc</role-hint>
|
||||
<implementation>org.codehaus.mojo.natives.msvc.MSVCMessageCompiler</implementation>
|
||||
</component>
|
||||
|
||||
<component>
|
||||
<role>org.codehaus.mojo.natives.compiler.ResourceCompiler</role>
|
||||
<role-hint>msvc</role-hint>
|
||||
<implementation>org.codehaus.mojo.natives.msvc.MSVCResourceCompiler</implementation>
|
||||
</component>
|
||||
|
||||
<component>
|
||||
<role>org.codehaus.mojo.natives.linker.Manifest</role>
|
||||
<role-hint>msvc</role-hint>
|
||||
<implementation>org.codehaus.mojo.natives.msvc.MSVCManifest</implementation>
|
||||
<instantiation-strategy>per-lookup</instantiation-strategy>
|
||||
</component>
|
||||
|
||||
|
||||
</components>
|
||||
</component-set>
|
Loading…
Reference in New Issue
Block a user