public inbox for git-commits@fedoraproject.org
help / color / mirror / Atom feed
From: Jerry James <loganjerry@gmail.com>
To: git-commits@fedoraproject.org
Subject: [rpms/treelayout] epel10: Do not try to invoke native2ascii with JDK 9 or later.
Date: Wed, 22 Jul 2026 19:40:37 GMT	[thread overview]
Message-ID: <178474923778.1.14021870029880236825.rpms-treelayout-e5cd548b5ad6@fedoraproject.org> (raw)

            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
 

                 reply	other threads:[~2026-07-22 19:40 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=178474923778.1.14021870029880236825.rpms-treelayout-e5cd548b5ad6@fedoraproject.org \
    --to=loganjerry@gmail.com \
    --cc=git-commits@fedoraproject.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox