From c0463f437093bb414255e66e00983d0c2f402dba Mon Sep 17 00:00:00 2001 From: Petr Písař Date: Jun 05 2017 15:14:47 +0000 Subject: Convert icon file to PNG format Relative Icon entry cannot be a GIF according to Desktop Entry Specification and Icon Theme Specification. --- diff --git a/perl-PAR-Packer.spec b/perl-PAR-Packer.spec index deb3b80..7fcf1c3 100644 --- a/perl-PAR-Packer.spec +++ b/perl-PAR-Packer.spec @@ -1,6 +1,6 @@ Name: perl-PAR-Packer Version: 1.035 -Release: 1%{?dist} +Release: 2%{?dist} Summary: PAR Packager License: GPL+ or Artistic Group: Development/Libraries @@ -10,6 +10,7 @@ Source1: extract_icon Source2: tkpp.desktop BuildRequires: coreutils BuildRequires: findutils +BuildRequires: ImageMagick BuildRequires: make BuildRequires: sed BuildRequires: perl @@ -108,9 +109,9 @@ ln -sf %{_mandir}/man3/pp.3pm %{buildroot}%{_mandir}/man1/pp.1 find %{buildroot} -type f -name '*.bs' -size 0 -exec rm -f {} \; %{_fixperms} %{buildroot}/* # Install desktop file -%{SOURCE1} < script/tkpp > tkpp.gif -install -m644 -D tkpp.gif \ - $RPM_BUILD_ROOT/%{_datadir}/icons/hicolor/32x32/apps/tkpp.gif +%{SOURCE1} < script/tkpp | convert gif:- tkpp.png +install -m644 -D tkpp.png \ + $RPM_BUILD_ROOT/%{_datadir}/icons/hicolor/32x32/apps/tkpp.png desktop-file-install \ --dir=${RPM_BUILD_ROOT}%{_datadir}/applications %{SOURCE2} @@ -145,9 +146,12 @@ fi %{_bindir}/tkpp %{_mandir}/man1/tkpp.1.* %{_datadir}/applications/tkpp.desktop -%{_datadir}/icons/hicolor/32x32/apps/tkpp.gif +%{_datadir}/icons/hicolor/32x32/apps/tkpp.png %changelog +* Mon Jun 05 2017 Petr Pisar - 1.035-2 +- Convert icon file to PNG format + * Mon Jul 25 2016 Jitka Plesnikova - 1.035-1 - 1.035 bump