desktop file: remove deprecated Encoding key and Application category

http://standards.freedesktop.org/desktop-entry-spec/desktop-entry-spec-latest.html
http://standards.freedesktop.org/menu-spec/latest/apa.html
This commit is contained in:
Jiri Popelka 2012-12-07 15:48:55 +01:00
parent d09cda8a43
commit 8b254142d4

View File

@ -1,7 +1,7 @@
Summary: HP Linux Imaging and Printing Project Summary: HP Linux Imaging and Printing Project
Name: hplip Name: hplip
Version: 3.12.11 Version: 3.12.11
Release: 1%{?dist} Release: 2%{?dist}
License: GPLv2+ and MIT License: GPLv2+ and MIT
Group: System Environment/Daemons Group: System Environment/Daemons
@ -344,12 +344,13 @@ rm -f %{buildroot}%{_bindir}/foomatic-rip \
mkdir -p %{buildroot}%{_datadir}/applications mkdir -p %{buildroot}%{_datadir}/applications
sed -i -e '/^Categories=/d' hplip.desktop sed -i -e '/^Categories=/d' hplip.desktop
# Encoding key is deprecated
sed -i -e '/^Encoding=/d' hplip.desktop
desktop-file-install --vendor HP \ desktop-file-install --vendor HP \
--dir %{buildroot}%{_datadir}/applications \ --dir %{buildroot}%{_datadir}/applications \
--add-category System \ --add-category System \
--add-category Settings \ --add-category Settings \
--add-category HardwareSettings \ --add-category HardwareSettings \
--add-category Application \
hplip.desktop hplip.desktop
# Regenerate hpcups PPDs on upgrade if necessary (bug #579355). # Regenerate hpcups PPDs on upgrade if necessary (bug #579355).
@ -528,6 +529,9 @@ rm -f %{buildroot}%{_sysconfdir}/xdg/autostart/hplip-systray.desktop
%postun libs -p /sbin/ldconfig %postun libs -p /sbin/ldconfig
%changelog %changelog
* Fri Dec 07 2012 Jiri Popelka <jpopelka@redhat.com> 3.12.11-2
- desktop file: remove deprecated Encoding key and Application category
* Tue Nov 27 2012 Jiri Popelka <jpopelka@redhat.com> 3.12.11-1 * Tue Nov 27 2012 Jiri Popelka <jpopelka@redhat.com> 3.12.11-1
- 3.12.11 - 3.12.11
-- release-parport.patch merged upstream -- release-parport.patch merged upstream