public inbox for git-commits@fedoraproject.org
help / color / mirror / Atom feed
* [rpms/treelayout] epel10: Do not try to invoke native2ascii with JDK 9 or later.
@ 2026-07-22 19:40 Jerry James
  0 siblings, 0 replies; only message in thread
From: Jerry James @ 2026-07-22 19:40 UTC (permalink / raw)
  To: git-commits

            A new commit has been pushed.

            Repo   : rpms/treelayout
            Branch : epel10
            Commit : e5cd548b5ad678c2a67866e67848db8dcd9b66ef
            Author : Jerry James <loganjerry@gmail.com>
            Date   : 2020-05-04T09:43:12-06:00
            Stats  : +14/-5 in 1 file(s)
            URL    : https://src.fedoraproject.org/rpms/treelayout/c/e5cd548b5ad678c2a67866e67848db8dcd9b66ef?branch=epel10

            Log:
            Do not try to invoke native2ascii with JDK 9 or later.
Compile for JDK 8 instead of 5 for compatibility with JDK 11.

---
diff --git a/treelayout.spec b/treelayout.spec
index d87dfa1..a5d58ea 100644
--- a/treelayout.spec
+++ b/treelayout.spec
@@ -2,7 +2,7 @@
 
 Name:          treelayout
 Version:       1.0.3
-Release:       10%{?dist}
+Release:       11%{?dist}
 Summary:       Efficient and customizable Tree Layout Algorithm in Java
 License:       BSD
 URL:           http://treelayout.sourceforge.net/
@@ -39,10 +39,15 @@ cp -p %{SOURCE1} .
 # sonatype-oss-parent is deprecated in Fedora
 %pom_remove_parent %{core} %{core}.demo %{core}.netbeans %{core}.netbeans.demo
 
-# fix non ASCII chars
-native2ascii -encoding UTF8 \
-  %{core}/src/main/java/org/abego/treelayout/package-info.java \
-  %{core}/src/main/java/org/abego/treelayout/package-info.java
+# update the source and target JDK
+sed -i 's/1\.5/1.8/g' $(find . -name pom.xml)
+
+# fix non ASCII chars for JDK 8 and earlier
+if [ -x %{_bindir}/native2ascii ]; then
+  native2ascii -encoding UTF8 \
+    %{core}/src/main/java/org/abego/treelayout/package-info.java \
+    %{core}/src/main/java/org/abego/treelayout/package-info.java
+fi
 
 %mvn_package :%{core}.project __noinstall
 
@@ -64,6 +69,10 @@ native2ascii -encoding UTF8 \
 %license %{core}/src/LICENSE.TXT
 
 %changelog
+* Mon May  4 2020 Jerry James <loganjerry@gmail.com> - 1.0.3-11
+- Do not try to invoke native2ascii with JDK 9 or later
+- Compile for JDK 8 instead of 5 for compatibility with JDK 11
+
 * Sat Jan 18 2020 Jerry James <loganjerry@gmail.com> - 1.0.3-10
 - Brought back into Fedora
 

^ permalink raw reply related	[flat|nested] only message in thread

only message in thread, other threads:[~2026-07-22 19:40 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2026-07-22 19:40 [rpms/treelayout] epel10: Do not try to invoke native2ascii with JDK 9 or later Jerry James

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox