Compare commits
No commits in common. "70a76ff51d96971586cee6e82b4b21e50ddf504e" and "2f60a2c47cf245fd2ebe63cac2bdab85547dd27e" have entirely different histories.
70a76ff51d
...
2f60a2c47c
@ -1,17 +1,17 @@
|
|||||||
From 83f6a375bc50df2565d3ac0329c8c4f2c2834f27 Mon Sep 17 00:00:00 2001
|
From aa0c713f3b8363f4c7781ed5aec52ad0bf607508 Mon Sep 17 00:00:00 2001
|
||||||
From: Michael Simacek <msimacek@redhat.com>
|
From: Michael Simacek <msimacek@redhat.com>
|
||||||
Date: Mon, 5 Feb 2024 15:28:57 +0800
|
Date: Mon, 30 Mar 2015 15:40:16 +0200
|
||||||
Subject: [PATCH] Port to current plexus utils
|
Subject: [PATCH 1/2] Port to current plexus-utils
|
||||||
|
|
||||||
---
|
---
|
||||||
src/main/java/kr/motd/maven/os/DetectExtension.java | 2 +-
|
src/main/java/kr/motd/maven/os/DetectExtension.java | 2 +-
|
||||||
1 file changed, 1 insertion(+), 1 deletion(-)
|
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
|
diff --git a/src/main/java/kr/motd/maven/os/DetectExtension.java b/src/main/java/kr/motd/maven/os/DetectExtension.java
|
||||||
index e093a3f..3069b96 100644
|
index 88c5e61..9ebe6dd 100644
|
||||||
--- a/src/main/java/kr/motd/maven/os/DetectExtension.java
|
--- a/src/main/java/kr/motd/maven/os/DetectExtension.java
|
||||||
+++ b/src/main/java/kr/motd/maven/os/DetectExtension.java
|
+++ b/src/main/java/kr/motd/maven/os/DetectExtension.java
|
||||||
@@ -216,7 +216,7 @@ public class DetectExtension extends AbstractMavenLifecycleParticipant {
|
@@ -180,7 +180,7 @@ public class DetectExtension extends AbstractMavenLifecycleParticipant {
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -19,7 +19,7 @@ index e093a3f..3069b96 100644
|
|||||||
+ InterpolationFilterReader reader = new InterpolationFilterReader(new StringReader(value), (Map)dict);
|
+ InterpolationFilterReader reader = new InterpolationFilterReader(new StringReader(value), (Map)dict);
|
||||||
StringWriter writer = new StringWriter(value.length());
|
StringWriter writer = new StringWriter(value.length());
|
||||||
for (;;) {
|
for (;;) {
|
||||||
int ch;
|
int ch = 0;
|
||||||
--
|
--
|
||||||
2.33.0
|
2.1.0
|
||||||
|
|
||||||
|
|||||||
@ -1,39 +0,0 @@
|
|||||||
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
|
|
||||||
|
|
||||||
25
0002-Don-t-fail-on-unknown-arch.patch
Normal file
25
0002-Don-t-fail-on-unknown-arch.patch
Normal file
@ -0,0 +1,25 @@
|
|||||||
|
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
|
||||||
|
|
||||||
@ -1,40 +0,0 @@
|
|||||||
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
|
|
||||||
|
|
||||||
BIN
os-maven-plugin-1.2.3.Final.tar.gz
Normal file
BIN
os-maven-plugin-1.2.3.Final.tar.gz
Normal file
Binary file not shown.
Binary file not shown.
@ -1,17 +1,15 @@
|
|||||||
%global vertag Final
|
%global vertag Final
|
||||||
|
|
||||||
Name: os-maven-plugin
|
Name: os-maven-plugin
|
||||||
version: 1.5.0
|
Version: 1.2.3
|
||||||
Release: 2
|
Release: 1
|
||||||
Summary: Maven plugin for generating platform-dependent properties
|
Summary: Maven plugin for generating platform-dependent properties
|
||||||
License: ASL 2.0
|
License: ASL 2.0
|
||||||
URL: https://github.com/trustin/os-maven-plugin/
|
URL: https://github.com/trustin/os-maven-plugin/
|
||||||
BuildArch: noarch
|
BuildArch: noarch
|
||||||
Source0: https://github.com/trustin/%{name}/archive/refs/tags/%{name}-%{version}.Final.tar.gz
|
Source0: https://github.com/trustin/%{name}/archive/%{name}-%{version}.Final.tar.gz
|
||||||
|
|
||||||
Patch0: 0001-Port-to-current-plexus-utils.patch
|
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: maven-local mvn(junit:junit) mvn(org.apache.maven:maven-core)
|
||||||
BuildRequires: mvn(org.apache.maven:maven-plugin-api)
|
BuildRequires: mvn(org.apache.maven:maven-plugin-api)
|
||||||
@ -19,7 +17,6 @@ BuildRequires: mvn(org.apache.maven.plugins:maven-plugin-plugin)
|
|||||||
BuildRequires: mvn(org.apache.maven.plugin-tools:maven-plugin-annotations)
|
BuildRequires: mvn(org.apache.maven.plugin-tools:maven-plugin-annotations)
|
||||||
BuildRequires: mvn(org.codehaus.plexus:plexus-component-metadata)
|
BuildRequires: mvn(org.codehaus.plexus:plexus-component-metadata)
|
||||||
BuildRequires: mvn(org.codehaus.plexus:plexus-utils) mvn(org.sonatype.oss:oss-parent:pom:)
|
BuildRequires: mvn(org.codehaus.plexus:plexus-utils) mvn(org.sonatype.oss:oss-parent:pom:)
|
||||||
BuildRequires: mvn(com.google.code.findbugs:jsr305)
|
|
||||||
|
|
||||||
%description
|
%description
|
||||||
os-maven-plugin is a Maven extension/plugin that generates various
|
os-maven-plugin is a Maven extension/plugin that generates various
|
||||||
@ -39,17 +36,11 @@ Summary: API documentation for %{name}
|
|||||||
This package provides %{summary}.
|
This package provides %{summary}.
|
||||||
|
|
||||||
%prep
|
%prep
|
||||||
%setup -n %{name}-%{name}-%{version}.%{vertag}
|
%autosetup -n %{name}-%{name}-%{version}.%{vertag} -p1
|
||||||
%patch0 -p1
|
|
||||||
%patch1 -p1
|
|
||||||
%patch2 -p1
|
|
||||||
|
|
||||||
|
|
||||||
# Remove Eclipse plugin (not needed in Fedora)
|
# Remove Eclipse plugin (not needed in Fedora)
|
||||||
%pom_remove_dep org.eclipse:ui
|
%pom_remove_dep org.eclipse:ui
|
||||||
%pom_remove_plugin :maven-jar-plugin
|
%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 EclipseStartup.java -delete
|
||||||
find -name plugin.xml -delete
|
find -name plugin.xml -delete
|
||||||
|
|
||||||
@ -68,17 +59,5 @@ find -name plugin.xml -delete
|
|||||||
%doc LICENSE.txt
|
%doc LICENSE.txt
|
||||||
|
|
||||||
%changelog
|
%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
|
* Wed Jul 29 2020 wangxiao <wangxiao65@huawei.com> - 1.2.3-1
|
||||||
- package init
|
- package init
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user