From 896e53b06292156ed87c2cebed3b1e835216bf23 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 0335bdf..7235f38 100644
--- a/perl-PAR-Packer.spec
+++ b/perl-PAR-Packer.spec
@@ -1,6 +1,6 @@
Name: perl-PAR-Packer
Version: 1.030
-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 <[email protected]> - 1.030-2
+- Convert icon file to PNG format
+
* Tue Mar 29 2016 Jitka Plesnikova <[email protected]> - 1.030-1
- 1.030 bump
--
cgit v1.1
https://src.fedoraproject.org/cgit/perl-PAR-Packer.git/commit/?h=f24&id=896e53b06292156ed87c2cebed3b1e835216bf23
_______________________________________________
perl-devel mailing list -- [email protected]
To unsubscribe send an email to [email protected]