[Bug 2081] wto - WebTv Orange standalone client

RPM Fusion Bugzilla noreply at rpmfusion.org
Fri Dec 9 17:05:43 CET 2011


https://bugzilla.rpmfusion.org/show_bug.cgi?id=2081

--- Comment #2 from Richard <hobbes1069 at gmail.com> 2011-12-09 17:05:43 CET ---
Ok, a couple of more things.

Currently only a single icon sized 100x100 is installed by the package. There's
two problems with this:

1. 100x100 isn't a very standard size and a 48x48 sized icon is currently
required indirectly by the Fedora guidelines via the Icon Theme Spec[1].

2. It's installed to the old /usr/share/pixmaps instead of /usr/share/icons.
The icon theme cache does not update this location as far as I know.

I've come up with one way to solve this problem but of course you're free to
solve it in any acceptable manner.

I added a "BuildRequires: ImageMagick" to use mogrify to resize the icons and
added this to your install section:

# Resize icon to more standard sizes and install
mkdir -p %{buildroot}%{_datadir}/icons/hicolor/96x96/apps \
         %{buildroot}%{_datadir}/icons/hicolor/48x48/apps
mogrify -resize 96x96 -write
%{buildroot}%{_datadir}/icons/hicolor/96x96/apps/%{name}.png
%{buildroot}%{_datadir}/pixmaps/%{name}.png
mogrify -resize 48x48 -write
%{buildroot}%{_datadir}/icons/hicolor/48x48/apps/%{name}.png
%{buildroot}%{_datadir}/pixmaps/%{name}.png
rm %{buildroot}%{_datadir}/pixmaps/%{name}.png

Then of course update your %files section with:
%{_datadir}/icons/hicolor/*/apps/%{name}.png

Then you will need to add the appropriate sections from the guidelines[2] to
update the icon cache.

3. Unless I missed it, I did not see a way to change the language to english.
If this is French only, it should be stated in the description.

Richard

[1]
http://standards.freedesktop.org/icon-theme-spec/icon-theme-spec-latest.html
[2] http://fedoraproject.org/wiki/Packaging:ScriptletSnippets#Icon_Cache

-- 
Configure bugmail: https://bugzilla.rpmfusion.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.
You are the assignee for the bug.


More information about the rpmfusion-developers mailing list