Name: gnome-menu-extended Version: 0.8 Release: 2%{?dist} Summary: Gnome Menu with KDE directory License: GPLv2 # GPL/LGPL: Section 3 of LGPL permits changing the license to GPL Group: User Interface/Desktops URL: http://ariszlo.tripod.com #Source: %{name}-%{version}.tar.gz Source0: http://gtk-apps.org/CONTENT/content-files/73513-%{name}-%{version}.tar.gz BuildArch: noarch BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n) BuildRequires: desktop-file-utils Requires: gnome-menus %description Gnome Menu with KDE and OpenOffice.org submenus for Gnome 2.10 or later. %prep %setup -q %build %install rm -rf $RPM_BUILD_ROOT mkdir -p $RPM_BUILD_ROOT%{_bindir} install -p -m 0755 scripts/fedora.sh \ $RPM_BUILD_ROOT%{_bindir}/%{name}.sh for f in 16 22 24 32 48 ; do mkdir -p $RPM_BUILD_ROOT%{_datadir}/icons/gnome/${f}x${f}/apps install -p -m 0644 icons/gnome/${f}x${f}/apps/*.png \ $RPM_BUILD_ROOT%{_datadir}/icons/gnome/${f}x${f}/apps/ done mkdir -p $RPM_BUILD_ROOT%{_datadir}/icons/gnome/scalable/apps install -p -m 0644 icons/gnome/scalable/apps/*.svg \ $RPM_BUILD_ROOT%{_datadir}/icons/gnome/scalable/apps/ mkdir -p $RPM_BUILD_ROOT%{_datadir}/pixmaps/ install -p -m 0644 pixmaps/*.png \ $RPM_BUILD_ROOT%{_datadir}/pixmaps/ mkdir -p $RPM_BUILD_ROOT%{_datadir}/%{name} install -p -m 0644 %{name}/*.directory \ $RPM_BUILD_ROOT%{_datadir}/%{name}/ install -p -m 0644 %{name}/replace-fedora.menu \ $RPM_BUILD_ROOT%{_datadir}/%{name}/ desktop-file-install --dir=$RPM_BUILD_ROOT%{_datadir}/applications \ applications/%{name}.desktop %clean rm -rf $RPM_BUILD_ROOT %post # ignore rpmlint warning: applications.menu will be restored in postun ( cd %{_sysconfdir}/xdg/menus if ! grep 'gnome-menu-extended' applications.menu 1> /dev/null 2> /dev/null then cp applications.menu applications.menu.fedora fi cp %{_datadir}/%{name}/replace-fedora.menu applications.menu chmod 644 applications.menu ) # gtk-update-icon-cache touch --no-create %{_datadir}/icons/gnome || : if [ -x %{_bindir}/gtk-update-icon-cache ]; then %{_bindir}/gtk-update-icon-cache --quiet %{_datadir}/icons/gnome || : fi %postun # restoring applications.menu: ignore rpmlint warning ( cd %{_sysconfdir}/xdg/menus if grep 'gnome-menu-extended' applications.menu 1> /dev/null 2> /dev/null then if test -s applications.menu.fedora then mv applications.menu.fedora applications.menu chmod 644 applications.menu fi else rm -f applications.menu.fedora fi ) # gtk-update-icon-cache touch --no-create %{_datadir}/icons/gnome || : if [ -x %{_bindir}/gtk-update-icon-cache ]; then %{_bindir}/gtk-update-icon-cache --quiet %{_datadir}/icons/gnome || : fi %files %defattr(-,root,root,-) %doc ChangeLog COPYING GPL LGPL README %dir %{_datadir}/%{name} %{_bindir}/%{name}.sh %{_datadir}/%{name}/* %{_datadir}/applications/%{name}.desktop %{_datadir}/icons/gnome/*/*/* %{_datadir}/pixmaps/*.png %changelog * Sun Apr 6 2008 Martin-Gomez Pablo 0.8-2 - Some minor changes to respect the rpmlint wiches * Fri Mar 28 2008 Ariszlo - 0.8-1 - release 0.8 - Commented out build macro to skip find-debuginfo.sh in rawhide * Sun Feb 24 2008 Martin-Gomez Pablo 0.7-3 - Don't handle user's files * Mon Feb 18 2008 Martin-Gomez Pablo 0.7-2 - Don't rename gnome-menu-extended.desktop - Replace gnome-extended-menu by gnome-menu-extended * Sat Feb 2 2008 Martin-Gomez Pablo 0.7-1 - Rebuild for the update - Merge this current .spec with the official * Mon Dec 17 2007 Martin-Gomez Pablo 0.6.8-2 - Change Source0 to an URL - Add %%build section - Change icons installing method - Remove some files in %%files section * Sat Dec 15 2007 Ariszlo - 0.6.8-1 - release 0.6.8