Compare commits
10 Commits
2f60a2c47c
...
70a76ff51d
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
70a76ff51d | ||
|
|
7611f94607 | ||
|
|
7c8f0a1739 | ||
|
|
07e0571588 | ||
|
|
5c79824936 | ||
|
|
8443aad9af | ||
|
|
69d0713d0f | ||
|
|
3eb9376569 | ||
|
|
1332cbf82d | ||
|
|
09d0b7cb1c |
@ -1,17 +1,17 @@
|
||||
From aa0c713f3b8363f4c7781ed5aec52ad0bf607508 Mon Sep 17 00:00:00 2001
|
||||
From 83f6a375bc50df2565d3ac0329c8c4f2c2834f27 Mon Sep 17 00:00:00 2001
|
||||
From: Michael Simacek <msimacek@redhat.com>
|
||||
Date: Mon, 30 Mar 2015 15:40:16 +0200
|
||||
Subject: [PATCH 1/2] Port to current plexus-utils
|
||||
Date: Mon, 5 Feb 2024 15:28:57 +0800
|
||||
Subject: [PATCH] Port to current plexus utils
|
||||
|
||||
---
|
||||
src/main/java/kr/motd/maven/os/DetectExtension.java | 2 +-
|
||||
1 file changed, 1 insertion(+), 1 deletion(-)
|
||||
|
||||
diff --git a/src/main/java/kr/motd/maven/os/DetectExtension.java b/src/main/java/kr/motd/maven/os/DetectExtension.java
|
||||
index 88c5e61..9ebe6dd 100644
|
||||
index e093a3f..3069b96 100644
|
||||
--- a/src/main/java/kr/motd/maven/os/DetectExtension.java
|
||||
+++ b/src/main/java/kr/motd/maven/os/DetectExtension.java
|
||||
@@ -180,7 +180,7 @@ public class DetectExtension extends AbstractMavenLifecycleParticipant {
|
||||
@@ -216,7 +216,7 @@ public class DetectExtension extends AbstractMavenLifecycleParticipant {
|
||||
break;
|
||||
}
|
||||
|
||||
@ -19,7 +19,7 @@ index 88c5e61..9ebe6dd 100644
|
||||
+ InterpolationFilterReader reader = new InterpolationFilterReader(new StringReader(value), (Map)dict);
|
||||
StringWriter writer = new StringWriter(value.length());
|
||||
for (;;) {
|
||||
int ch = 0;
|
||||
int ch;
|
||||
--
|
||||
2.1.0
|
||||
2.33.0
|
||||
|
||||
|
||||
39
0002-Add_support_for_RISC-V_arch.patch
Normal file
39
0002-Add_support_for_RISC-V_arch.patch
Normal file
@ -0,0 +1,39 @@
|
||||
From a7fef5b3abeb7da2a3ca847a38fb0c6f847b7d08 Mon Sep 17 00:00:00 2001
|
||||
From: wang--ge <wang__ge@126.com>
|
||||
Date: Mon, 5 Feb 2024 15:19:50 +0800
|
||||
Subject: [PATCH] Add_support_for_RISC-V_arch
|
||||
|
||||
---
|
||||
README.md | 1 +
|
||||
src/main/java/kr/motd/maven/os/Detector.java | 3 +++
|
||||
2 files changed, 4 insertions(+)
|
||||
|
||||
diff --git a/README.md b/README.md
|
||||
index 8483a7d..98f2c4e 100644
|
||||
--- a/README.md
|
||||
+++ b/README.md
|
||||
@@ -37,6 +37,7 @@
|
||||
* `ppcle_64` - if the value is `ppc64le`
|
||||
* `s390_32` - if the value is `s390`
|
||||
* `s390_64` if the value is `s390x`
|
||||
+* `riscv64` if the value is `riscv64`
|
||||
|
||||
#### Property: `os.detected.version.*`
|
||||
|
||||
diff --git a/src/main/java/kr/motd/maven/os/Detector.java b/src/main/java/kr/motd/maven/os/Detector.java
|
||||
index 8962f51..3c189ff 100644
|
||||
--- a/src/main/java/kr/motd/maven/os/Detector.java
|
||||
+++ b/src/main/java/kr/motd/maven/os/Detector.java
|
||||
@@ -206,6 +206,9 @@ public abstract class Detector {
|
||||
if ("s390x".equals(value)) {
|
||||
return "s390_64";
|
||||
}
|
||||
+ if ("riscv64".equals(value)) {
|
||||
+ return "riscv64";
|
||||
+ }
|
||||
|
||||
return UNKNOWN;
|
||||
}
|
||||
--
|
||||
2.33.0
|
||||
|
||||
@ -1,25 +0,0 @@
|
||||
From b11d31e037120c3ee761276574f408005a78f632 Mon Sep 17 00:00:00 2001
|
||||
From: Mikolaj Izdebski <mizdebsk@redhat.com>
|
||||
Date: Wed, 15 Jul 2015 18:39:46 +0200
|
||||
Subject: [PATCH 2/2] Don't fail on unknown arch
|
||||
|
||||
---
|
||||
src/main/java/kr/motd/maven/os/Detector.java | 2 +-
|
||||
1 file changed, 1 insertion(+), 1 deletion(-)
|
||||
|
||||
diff --git a/src/main/java/kr/motd/maven/os/Detector.java b/src/main/java/kr/motd/maven/os/Detector.java
|
||||
index 9dd6688..37ced72 100644
|
||||
--- a/src/main/java/kr/motd/maven/os/Detector.java
|
||||
+++ b/src/main/java/kr/motd/maven/os/Detector.java
|
||||
@@ -46,7 +46,7 @@ public abstract class Detector {
|
||||
setProperty(props, DETECTED_CLASSIFIER, detectedClassifier);
|
||||
|
||||
final String failOnUnknownOS = allProps.getProperty("failOnUnknownOS");
|
||||
- if (failOnUnknownOS == null || !failOnUnknownOS.equalsIgnoreCase("false")) {
|
||||
+ if (failOnUnknownOS != null && failOnUnknownOS.equalsIgnoreCase("true")) {
|
||||
if (UNKNOWN.equals(detectedName)) {
|
||||
throw new DetectionException("unknown os.name: " + osName);
|
||||
}
|
||||
--
|
||||
2.1.0
|
||||
|
||||
40
0003-add-loongarch64-support-for-os-maven-plugin.patch
Normal file
40
0003-add-loongarch64-support-for-os-maven-plugin.patch
Normal file
@ -0,0 +1,40 @@
|
||||
From e5901cf57b82eec8973e78b3c472118d4771a0f4 Mon Sep 17 00:00:00 2001
|
||||
From: Wenlong Zhang <zhangwenlong@loongson.cn>
|
||||
Date: Wed, 27 Mar 2024 08:41:40 +0000
|
||||
Subject: [PATCH] add loongarch64 support for os-maven-plugin
|
||||
|
||||
---
|
||||
README.md | 1 +
|
||||
src/main/java/kr/motd/maven/os/Detector.java | 4 +++-
|
||||
2 files changed, 4 insertions(+), 1 deletion(-)
|
||||
|
||||
diff --git a/README.md b/README.md
|
||||
index 98f2c4e..6e2be2a 100644
|
||||
--- a/README.md
|
||||
+++ b/README.md
|
||||
@@ -38,6 +38,7 @@
|
||||
* `s390_32` - if the value is `s390`
|
||||
* `s390_64` if the value is `s390x`
|
||||
* `riscv64` if the value is `riscv64`
|
||||
+* `loongarch_64` if the value is `loongarch_64`
|
||||
|
||||
#### Property: `os.detected.version.*`
|
||||
|
||||
diff --git a/src/main/java/kr/motd/maven/os/Detector.java b/src/main/java/kr/motd/maven/os/Detector.java
|
||||
index 3c189ff..eaf8197 100644
|
||||
--- a/src/main/java/kr/motd/maven/os/Detector.java
|
||||
+++ b/src/main/java/kr/motd/maven/os/Detector.java
|
||||
@@ -209,7 +209,9 @@ public abstract class Detector {
|
||||
if ("riscv64".equals(value)) {
|
||||
return "riscv64";
|
||||
}
|
||||
-
|
||||
+ if ("loongarch64".equals(value)) {
|
||||
+ return "loongarch64";
|
||||
+ }
|
||||
return UNKNOWN;
|
||||
}
|
||||
|
||||
--
|
||||
2.43.0
|
||||
|
||||
Binary file not shown.
BIN
os-maven-plugin-1.5.0.Final.tar.gz
Normal file
BIN
os-maven-plugin-1.5.0.Final.tar.gz
Normal file
Binary file not shown.
@ -1,15 +1,17 @@
|
||||
%global vertag Final
|
||||
|
||||
Name: os-maven-plugin
|
||||
Version: 1.2.3
|
||||
Release: 1
|
||||
version: 1.5.0
|
||||
Release: 2
|
||||
Summary: Maven plugin for generating platform-dependent properties
|
||||
License: ASL 2.0
|
||||
URL: https://github.com/trustin/os-maven-plugin/
|
||||
BuildArch: noarch
|
||||
Source0: https://github.com/trustin/%{name}/archive/%{name}-%{version}.Final.tar.gz
|
||||
Source0: https://github.com/trustin/%{name}/archive/refs/tags/%{name}-%{version}.Final.tar.gz
|
||||
|
||||
Patch0: 0001-Port-to-current-plexus-utils.patch
|
||||
Patch1: 0002-Add_support_for_RISC-V_arch.patch
|
||||
Patch2: 0003-add-loongarch64-support-for-os-maven-plugin.patch
|
||||
|
||||
BuildRequires: maven-local mvn(junit:junit) mvn(org.apache.maven:maven-core)
|
||||
BuildRequires: mvn(org.apache.maven:maven-plugin-api)
|
||||
@ -17,6 +19,7 @@ BuildRequires: mvn(org.apache.maven.plugins:maven-plugin-plugin)
|
||||
BuildRequires: mvn(org.apache.maven.plugin-tools:maven-plugin-annotations)
|
||||
BuildRequires: mvn(org.codehaus.plexus:plexus-component-metadata)
|
||||
BuildRequires: mvn(org.codehaus.plexus:plexus-utils) mvn(org.sonatype.oss:oss-parent:pom:)
|
||||
BuildRequires: mvn(com.google.code.findbugs:jsr305)
|
||||
|
||||
%description
|
||||
os-maven-plugin is a Maven extension/plugin that generates various
|
||||
@ -36,11 +39,17 @@ Summary: API documentation for %{name}
|
||||
This package provides %{summary}.
|
||||
|
||||
%prep
|
||||
%autosetup -n %{name}-%{name}-%{version}.%{vertag} -p1
|
||||
%setup -n %{name}-%{name}-%{version}.%{vertag}
|
||||
%patch0 -p1
|
||||
%patch1 -p1
|
||||
%patch2 -p1
|
||||
|
||||
|
||||
# Remove Eclipse plugin (not needed in Fedora)
|
||||
%pom_remove_dep org.eclipse:ui
|
||||
%pom_remove_plugin :maven-jar-plugin
|
||||
%pom_remove_plugin org.codehaus.mojo:animal-sniffer-maven-plugin
|
||||
%pom_add_dep com.google.code.findbugs:jsr305:3.0.2
|
||||
find -name EclipseStartup.java -delete
|
||||
find -name plugin.xml -delete
|
||||
|
||||
@ -59,5 +68,17 @@ find -name plugin.xml -delete
|
||||
%doc LICENSE.txt
|
||||
|
||||
%changelog
|
||||
* Wed Mar 27 2024 Wenlong Zhang <zhangwenlong@loongson.cn> - 1.5.0-2
|
||||
- fix build error for loongarch64
|
||||
|
||||
* Mon Feb 05 2024 Ge Wang <wang__ge@126.com> - 1.5.0-1
|
||||
- Update to version 1.5.0
|
||||
|
||||
* Mon Jun 26 2023 xiaoqian lv <xiaoqian@nj.iscas.ac.cn> - 1.2.3-3
|
||||
- Add support for RISC-V arch
|
||||
|
||||
* Thu Mar 9 2023 Wenlong Zhang<zhangwenlong@loongson.cn> - 1.2.3-2
|
||||
- add loongarch64 support for os-maven-plugin
|
||||
|
||||
* Wed Jul 29 2020 wangxiao <wangxiao65@huawei.com> - 1.2.3-1
|
||||
- package init
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user