[xsane] use netpbm pipeline to create 32px PNG icon

Nils Philippsen nphilipp at fedoraproject.org
Wed Jan 30 16:42:55 UTC 2013


commit 21b46cea3f0568583a0a787054b4d318b9b0bd78
Author: Nils Philippsen <nils at redhat.com>
Date:   Wed Jan 30 17:37:08 2013 +0100

    use netpbm pipeline to create 32px PNG icon
    
    The convert command (ImageMagick) embeds timestamps in the resulting
    file, and creates bigger files.

 xsane.spec |    6 ++++--
 1 files changed, 4 insertions(+), 2 deletions(-)
---
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 <atkac redhat com> - 0.998-14
 - rebuild due to "jpeg8-ABI" feature drop


More information about the scm-commits mailing list