.directory
) ed un file di desktop menu (file .menu
). Fare riferimento alla Sezione 3.8.1.3, «Voci nel menu del desktop per i documenti», per la struttura di questi file.
menu-example.directory
ed un file desktop-menu, menu-example.menu
, con un file README
localizzati in una cartella di nome menu-example-0
, archiviata come menu-example-0.tgz
.
Name: menu-example Version: 0 Release: 8%{?dist}.t1 Summary: Example of how to do a documentation menu package Group: Development/Tools License: GPLv2+ URL: http://engineering.redhat.com Source0: %{name}-%{version}.tgz BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n) BuildArch: noarch %description Example of how to do a documentation menu package %prep %setup -q %build %install rm -rf %{buildroot} mkdir -p $RPM_BUILD_ROOT%{_datadir}/desktop-directories mkdir -p $RPM_BUILD_ROOT/etc/xdg/menus/settings-merged install -m644 menu-example.directory $RPM_BUILD_ROOT%{_datadir}/desktop-directories/menu-example.directory install -m644 menu-example.menu $RPM_BUILD_ROOT%{_sysconfdir}/xdg/menus/settings-merged/menu-example.menu %{_fixperms} $RPM_BUILD_ROOT/* %clean rm -rf %{buildroot} %files %defattr(-,root,root,-) %doc README %{_datadir}/desktop-directories/menu-example.directory %config(noreplace) %{_sysconfdir}/xdg/menus/settings-merged/menu-example.menu %changelog * Tue Nov 23 2010 Jeff Fearn <jfearn@redhat.com> 0-8 - Creation