From 21b46cea3f0568583a0a787054b4d318b9b0bd78 Mon Sep 17 00:00:00 2001 From: Nils Philippsen Date: Jan 30 2013 16:37:08 +0000 Subject: use netpbm pipeline to create 32px PNG icon The convert command (ImageMagick) embeds timestamps in the resulting file, and creates bigger files. --- diff --git a/xsane.spec b/xsane.spec index ed8b576..f53ca39 100644 --- a/xsane.spec +++ b/xsane.spec @@ -70,7 +70,7 @@ BuildRequires: sane-backends-devel >= 1.0.19-15 BuildRequires: desktop-file-utils >= 0.2.92 BuildRequires: libtiff-devel BuildRequires: gettext-devel -BuildRequires: ImageMagick +BuildRequires: netpbm-progs Requires: xsane-common %description @@ -146,7 +146,7 @@ popd # Ensure that src/xsane.xpm is 32px high/wide test "$(identify -format "%wx%h" src/xsane.xpm)" = "32x32" -convert src/xsane.xpm src/xsane-32x32.png +xpmtoppm src/xsane.xpm | pnmtopng > src/xsane-32x32.png cp %{SOURCE1} src/ @@ -221,6 +221,8 @@ fi - build with -fno-strict-aliasing - tidy up desktop file - catch errors when determining the %%gimpplugindir macro +- use netpbm pipeline to create 32px PNG icon instead of convert (which embeds + timestamps in the resulting file) * Mon Jan 21 2013 Adam Tkac - 0.998-14 - rebuild due to "jpeg8-ABI" feature drop