Add sw_64 support
This commit is contained in:
parent
75c43a5f48
commit
edef3cdd21
39
0004-add-sw64-support-for-os-maven-plugin.patch
Normal file
39
0004-add-sw64-support-for-os-maven-plugin.patch
Normal file
@ -0,0 +1,39 @@
|
||||
From b335d18070f948648c898f0ea7751d6066bdb162 Mon Sep 17 00:00:00 2001
|
||||
From: zhangxianting <zhangxianting@uniontech.com>
|
||||
Date: Tue, 26 Nov 2024 14:08:05 +0800
|
||||
Subject: [PATCH] add sw64 support for os-maven-plugin
|
||||
|
||||
---
|
||||
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 6e2be2a..e67a5bd 100644
|
||||
--- a/README.md
|
||||
+++ b/README.md
|
||||
@@ -39,6 +39,7 @@
|
||||
* `s390_64` if the value is `s390x`
|
||||
* `riscv64` if the value is `riscv64`
|
||||
* `loongarch_64` if the value is `loongarch_64`
|
||||
+* `sw_64` if the value is `sw64`
|
||||
|
||||
#### 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 eaf8197..210842a 100644
|
||||
--- a/src/main/java/kr/motd/maven/os/Detector.java
|
||||
+++ b/src/main/java/kr/motd/maven/os/Detector.java
|
||||
@@ -212,6 +212,9 @@ public abstract class Detector {
|
||||
if ("loongarch64".equals(value)) {
|
||||
return "loongarch64";
|
||||
}
|
||||
+ if ("sw64".equals(value)) {
|
||||
+ return "sw_64";
|
||||
+ }
|
||||
return UNKNOWN;
|
||||
}
|
||||
|
||||
--
|
||||
2.31.1
|
||||
|
||||
@ -2,7 +2,7 @@
|
||||
|
||||
Name: os-maven-plugin
|
||||
version: 1.5.0
|
||||
Release: 2
|
||||
Release: 3
|
||||
Summary: Maven plugin for generating platform-dependent properties
|
||||
License: ASL 2.0
|
||||
URL: https://github.com/trustin/os-maven-plugin/
|
||||
@ -12,6 +12,7 @@ Source0: https://github.com/trustin/%{name}/archive/refs/tags/%{name
|
||||
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
|
||||
Patch3: 0004-add-sw64-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)
|
||||
@ -43,6 +44,7 @@ This package provides %{summary}.
|
||||
%patch0 -p1
|
||||
%patch1 -p1
|
||||
%patch2 -p1
|
||||
%patch3 -p1
|
||||
|
||||
|
||||
# Remove Eclipse plugin (not needed in Fedora)
|
||||
@ -68,6 +70,9 @@ find -name plugin.xml -delete
|
||||
%doc LICENSE.txt
|
||||
|
||||
%changelog
|
||||
* Tue Feb 25 2025 zhangshaoning <zhangshaoning@uniontech.com> - 1.5.0-3
|
||||
- Add sw_64 support
|
||||
|
||||
* Wed Mar 27 2024 Wenlong Zhang <zhangwenlong@loongson.cn> - 1.5.0-2
|
||||
- fix build error for loongarch64
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user