From ec8a3a62c881e8b0f34f9871e9f70c134251d845 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Petr=20P=C3=ADsa=C5=99?= <[email protected]>
Date: Mon, 5 Jun 2017 16:13:51 +0200
Subject: Convert icon file to PNG format
Relative Icon entry cannot be a GIF according to Desktop Entry
Specification and Icon Theme Specification.
---
perl-PAR-Packer.spec | 14 +++++++++-----
1 file changed, 9 insertions(+), 5 deletions(-)
diff --git a/perl-PAR-Packer.spec b/perl-PAR-Packer.spec
index 920c4f1..ce8bd6a 100644
--- a/perl-PAR-Packer.spec
+++ b/perl-PAR-Packer.spec
@@ -1,6 +1,6 @@
Name: perl-PAR-Packer
Version: 1.036
-Release: 2%{?dist}
+Release: 3%{?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}
@@ -146,9 +147,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 <[email protected]> - 1.036-3
+- Convert icon file to PNG format
+
* Sat Feb 11 2017 Fedora Release Engineering <[email protected]> -
1.036-2
- Rebuilt for https://fedoraproject.org/wiki/Fedora_26_Mass_Rebuild
--
cgit v1.1
https://src.fedoraproject.org/cgit/perl-PAR-Packer.git/commit/?h=f26&id=ec8a3a62c881e8b0f34f9871e9f70c134251d845
_______________________________________________
perl-devel mailing list -- [email protected]
To unsubscribe send an email to [email protected]