[packages/java-commons-daemon] Rel 2; allow building with openjdk11

arekm arekm at pld-linux.org
Thu Nov 25 06:59:04 CET 2021


commit c9a4ad23c7fdf23fe7d8c9eb101fa99c1aa067bf
Author: Arkadiusz Miśkiewicz <arekm at maven.pl>
Date:   Thu Nov 25 06:58:49 2021 +0100

    Rel 2; allow building with openjdk11

 build.patch              | 16 ++++++++++++++++
 java-commons-daemon.spec |  4 +++-
 2 files changed, 19 insertions(+), 1 deletion(-)
---
diff --git a/java-commons-daemon.spec b/java-commons-daemon.spec
index 8c70f3a..c4db603 100644
--- a/java-commons-daemon.spec
+++ b/java-commons-daemon.spec
@@ -6,12 +6,13 @@ Summary:	Commons Daemon - controlling of Java daemons
 Summary(pl.UTF-8):	Commons Daemon - kontrolowanie demonów w Javie
 Name:		java-commons-daemon
 Version:	1.1.0
-Release:	1
+Release:	2
 License:	Apache v2.0
 Group:		Libraries/Java
 # -Source0:       http://www.apache.org/dist/commons/daemon/source/commons-daemon-%{version}-src.tar.gz
 Source0:	https://archive.apache.org/dist/commons/daemon/source/commons-daemon-%{version}-src.tar.gz
 # Source0-md5:	e5a08e844412147a61a7ef9a19f39978
+Patch0:		build.patch
 URL:		http://commons.apache.org/daemon/
 BuildRequires:	ant >= 1.4.1
 BuildRequires:	automake
@@ -69,6 +70,7 @@ Dokumentacja do Commons Daemon.
 
 %prep
 %setup -q -n %{srcname}-%{version}-src
+%patch0 -p1
 
 %build
 # Java part
diff --git a/build.patch b/build.patch
new file mode 100644
index 0000000..4722045
--- /dev/null
+++ b/build.patch
@@ -0,0 +1,16 @@
+diff -urN commons-daemon-1.1.0-src.org/build.xml commons-daemon-1.1.0-src/build.xml
+--- commons-daemon-1.1.0-src.org/build.xml	2017-07-08 04:37:29.000000000 +0200
++++ commons-daemon-1.1.0-src/build.xml	2021-11-25 06:57:27.769976730 +0100
+@@ -93,10 +93,10 @@
+ 
+ 
+   <!-- compiler source JDK version -->
+-  <property name="compile.source"          value="1.5"/>
++  <property name="compile.source"          value="1.6"/>
+ 
+   <!-- compiler target JDK version -->
+-  <property name="compile.target"          value="1.5"/>
++  <property name="compile.target"          value="1.6"/>
+ 
+   <!-- Should Java compilations set the 'debug' compiler option? -->
+   <property name="compile.debug"           value="true"/>
================================================================

---- gitweb:

http://git.pld-linux.org/gitweb.cgi/packages/java-commons-daemon.git/commitdiff/c9a4ad23c7fdf23fe7d8c9eb101fa99c1aa067bf



More information about the pld-cvs-commit mailing list