Skip to content

Commit 559db0b

Browse files
authored
Build fix for package args4j (microsoft#14341)
1 parent ea1a130 commit 559db0b

File tree

2 files changed

+31
-1
lines changed

2 files changed

+31
-1
lines changed

SPECS-EXTENDED/args4j/args4j.spec

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,7 @@ Group: Development/Libraries/Java
2828
URL: https://args4j.kohsuke.org
2929
Source0: https://github.com/kohsuke/%{name}/archive/%{name}-site-%{version}.tar.gz
3030
Source1: %{name}-build.tar.xz
31+
Patch0: change-source-option-to-1.8.patch
3132
BuildRequires: ant
3233
BuildRequires: fdupes
3334
BuildRequires: java-devel
@@ -65,7 +66,7 @@ Group: Documentation/HTML
6566
This package contains the API documentation for %{name}.
6667

6768
%prep
68-
%setup -q -n %{name}-%{name}-site-%{version} -a 1
69+
%autosetup -a1 -p1 -n %{name}-%{name}-site-%{version}
6970

7071
# removing classpath addition
7172
sed -i 's/<addClasspath>true/<addClasspath>false/g' %{name}-tools/pom.xml
@@ -136,6 +137,10 @@ cp -r %{name}-tools/target/site/apidocs %{buildroot}%{_javadocdir}/%{name}/%{nam
136137
%license %{name}/LICENSE.txt
137138

138139
%changelog
140+
* Fri Jul 18 2025 Sumit Jena <[email protected]> - 2.33.3
141+
- Patch to change source and target options as build fix
142+
- License verified
143+
139144
* Thu Oct 14 2021 Pawel Winogrodzki <[email protected]> - 2.33-2
140145
- Converting the 'Release' tag to the '[number].[distribution]' format.
141146

Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
From e9080c1382570c9b028b60210ad0779a10a82ab2 Mon Sep 17 00:00:00 2001
2+
From: SumitJenaHCL <[email protected]>
3+
Date: Thu, 10 Jul 2025 05:15:48 +0000
4+
Subject: [PATCH] change source option to 1.8
5+
6+
---
7+
common.xml | 2 +-
8+
1 file changed, 1 insertion(+), 1 deletion(-)
9+
10+
diff --git a/common.xml b/common.xml
11+
index 37d36f4..d3486a0 100644
12+
--- a/common.xml
13+
+++ b/common.xml
14+
@@ -7,7 +7,7 @@
15+
<property name="project.groupId" value="args4j"/>
16+
<property name="bundle.version" value="${project.version}.0"/>
17+
18+
- <property name="compiler.source" value="1.6"/>
19+
+ <property name="compiler.source" value="1.8"/>
20+
<property name="compiler.target" value="${compiler.source}"/>
21+
22+
</project>
23+
--
24+
2.45.2
25+

0 commit comments

Comments
 (0)