- Don't put TrayIcon or SystemSetup categories in the desktop file.

This commit is contained in:
Tim Waugh 2007-06-08 17:09:36 +00:00
parent 9edce94cfa
commit 79bc6c2cbb

View File

@ -48,6 +48,10 @@ the configuration tool.
%prep %prep
%setup -q -a 1 %setup -q -a 1
%patch0 -p1 -b .trayicon %patch0 -p1 -b .trayicon
pushd pycups-%{pycups_version}
mkdir examples
mv cupstree.py examples
popd
%build %build
%configure %configure
@ -74,15 +78,6 @@ ln -s consolehelper %buildroot%{_bindir}/%{name}
# The applet desktop file gets shipped by desktop-printing. # The applet desktop file gets shipped by desktop-printing.
rm -f %buildroot%{_sysconfdir}/xdg/autostart/redhat-print-applet.desktop rm -f %buildroot%{_sysconfdir}/xdg/autostart/redhat-print-applet.desktop
# Add 'SystemSetup' desktop-file category so that 'Printing' shows
# up in the System->Administration menu.
desktop-file-install --vendor redhat \
--dir %buildroot%{_datadir}/applications/ \
--add-category X-Red-Hat-Base \
--add-category SystemSetup \
--add-category Application \
system-config-printer.desktop
%find_lang system-config-printer %find_lang system-config-printer
%clean %clean
@ -90,7 +85,7 @@ rm -rf $RPM_BUILD_ROOT
%files libs -f system-config-printer.lang %files libs -f system-config-printer.lang
%defattr(-,root,root) %defattr(-,root,root)
%doc --parents pycups-%{pycups_version}/{ChangeLog,README,NEWS,TODO} %doc --parents pycups-%{pycups_version}/{ChangeLog,README,NEWS,TODO,examples}
%{_sysconfdir}/dbus-1/system.d/newprinternotification.conf %{_sysconfdir}/dbus-1/system.d/newprinternotification.conf
%{_libdir}/python*/*/*.so %{_libdir}/python*/*/*.so
%dir %{_datadir}/%{name} %dir %{_datadir}/%{name}
@ -137,7 +132,7 @@ fi
%changelog %changelog
* Fri Jun 8 2007 Tim Waugh <twaugh@redhat.com> 0.7.67-1 * Fri Jun 8 2007 Tim Waugh <twaugh@redhat.com> 0.7.67-1
- Don't put TrayIcon category in the desktop file. - Don't put TrayIcon or SystemSetup categories in the desktop file.
- Updated pycups to 1.9.24. - Updated pycups to 1.9.24.
- 0.7.67: - 0.7.67:
- Fixed desktop files to have capital letters at the start of each - Fixed desktop files to have capital letters at the start of each