use netpbm pipeline to create 32px PNG icon

The convert command (ImageMagick) embeds timestamps in the resulting
file, and creates bigger files.
This commit is contained in:
Nils Philippsen 2013-01-30 17:37:08 +01:00
parent 11cc92f573
commit 21b46cea3f

View File

@ -70,7 +70,7 @@ BuildRequires: sane-backends-devel >= 1.0.19-15
BuildRequires: desktop-file-utils >= 0.2.92 BuildRequires: desktop-file-utils >= 0.2.92
BuildRequires: libtiff-devel BuildRequires: libtiff-devel
BuildRequires: gettext-devel BuildRequires: gettext-devel
BuildRequires: ImageMagick BuildRequires: netpbm-progs
Requires: xsane-common Requires: xsane-common
%description %description
@ -146,7 +146,7 @@ popd
# Ensure that src/xsane.xpm is 32px high/wide # Ensure that src/xsane.xpm is 32px high/wide
test "$(identify -format "%wx%h" src/xsane.xpm)" = "32x32" 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/ cp %{SOURCE1} src/
@ -221,6 +221,8 @@ fi
- build with -fno-strict-aliasing - build with -fno-strict-aliasing
- tidy up desktop file - tidy up desktop file
- catch errors when determining the %%gimpplugindir macro - 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 * Mon Jan 21 2013 Adam Tkac <atkac redhat com> - 0.998-14
- rebuild due to "jpeg8-ABI" feature drop - rebuild due to "jpeg8-ABI" feature drop