https://bugzilla.redhat.com/show_bug.cgi?id=1221474 Robert-André Mauchin <zebob.m@xxxxxxxxx> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |zebob.m@xxxxxxxxx --- Comment #4 from Robert-André Mauchin <zebob.m@xxxxxxxxx> --- Hello, If you're still willing to package this: - Update the SPEC to version 3.2 → New BR for this: BuildRequires: mvn(com.sleepycat:je) BuildRequires: mvn(junit:junit) BuildRequires: mvn(org.mongodb:mongo-java-driver) BuildRequires: mvn(org.mongodb:mongodb-driver) BuildRequires: mvn(org.sonatype.oss:oss-parent:pom:) BuildRequires: mvn(org.easymock:easymock) BuildRequires: mvn(org.jacoco:jacoco-maven-plugin) → Remove: %pom_change_dep :mongo-java-driver ::2 → Updated patch for the fonts: diff -up rrd4j-3.2/src/main/java/org/rrd4j/graph/RrdGraphConstants.java.use-system-fonts rrd4j-3.2/src/main/java/org/rrd4j/graph/RrdGraphConstants.java --- rrd4j-3.2/src/main/java/org/rrd4j/graph/RrdGraphConstants.java.use-system-fonts 2017-11-11 13:33:45.000000000 +0100 +++ rrd4j-3.2/src/main/java/org/rrd4j/graph/RrdGraphConstants.java 2017-11-29 00:02:05.325110896 +0100 @@ -1,6 +1,8 @@ package org.rrd4j.graph; import java.awt.*; +import java.io.BufferedInputStream; +import java.io.FileInputStream; import java.io.IOException; import java.io.InputStream; import java.util.Calendar; @@ -272,13 +274,22 @@ public interface RrdGraphConstants { * @return a new {@link java.awt.Font} instance */ public static Font getFont(int type, int size) { + + InputStream fontstream = null; + String fontPath; + if (type == Font.BOLD) - fontPath = "/DejaVuSansMono-Bold.ttf"; + fontPath = "/usr/share/fonts/dejavu/DejaVuSansMono-Bold.ttf"; else - fontPath = "/DejaVuSansMono.ttf"; + fontPath = "/usr/share/fonts/dejavu/DejaVuSansMono.ttf"; - InputStream fontstream = RrdGraphConstants.class.getResourceAsStream(fontPath); + try { + fontstream = new BufferedInputStream(new FileInputStream(fontPath)); + } catch (Exception ex) { + ex.printStackTrace(); + System.err.println("Font not loaded."); + } try { return Font.createFont(Font.TRUETYPE_FONT, fontstream).deriveFont(type == Font.BOLD ? Font.BOLD : Font.PLAIN, size); } catch (FontFormatException e) { → Changelog: * Tue Nov 28 2017 Gil Cattaneo <puntogil@xxxxxxxxx> 3.2-1 - update to 3.2 - Use a more meaningful name for your archive, with: Source0: https://github.com/rrd4j/rrd4j/archive/%{version}/%{name}-%{version}.tar.gz - Not needed: Requires(post): desktop-file-utils Requires(postun): desktop-file-utils -- You are receiving this mail because: You are on the CC list for the bug. You are always notified about changes to this product and component _______________________________________________ package-review mailing list -- package-review@xxxxxxxxxxxxxxxxxxxxxxx To unsubscribe send an email to package-review-leave@xxxxxxxxxxxxxxxxxxxxxxx