%define nami big-forth %define namx bigForth %define name bigforth %define version 2.1.1 %define release %mkrel 7 Name: %name Release: %release License: GPL+ Group: Development/Other Version: %version Summary: Portable implementation of the ANS Forth language Url: http://bigforth.sourceforge.net/ Source: http://prdownloads.sf.net/%name/%name-%version.tar.bz2 Source16: big-forth.16.png.bz2 Source32: big-forth.32.png.bz2 Source48: big-forth.48.png.bz2 BuildRoot: %_tmppath/%name-buildroot %description bigforth is a portable implementation of the ANS Forth language. Its greatest advantage is the portable widget toolkit MINOS which builds on top of it. There are a lot of similarites with GForth. %prep %setup -q -n %name %build %configure2_5x make %install %makeinstall # icon section mkdir -p %{buildroot}%{_iconsdir}/hicolor/{16x16,32x32,48x48}/apps bzcat %SOURCE16 > %buildroot/%_iconsdir/hicolor/16x16/apps/%nami.png bzcat %SOURCE32 > %buildroot/%_iconsdir/hicolor/32x32/apps/%nami.png bzcat %SOURCE48 > %buildroot/%_iconsdir/hicolor/48x48/apps/%nami.png mkdir -p $RPM_BUILD_ROOT%{_datadir}/applications cat > $RPM_BUILD_ROOT%{_datadir}/applications/mandriva-%{name}.desktop << EOF [Desktop Entry] Name=bigForth Comment=bigForth language shell Exec=%{_bindir}/%{name} Icon=big-forth Terminal=true Type=Application Categories=Development;Building;Debugger; EOF %if %mdkversion < 200900 %post %{update_menus} %{update_icon_cache hicolor} %endif %if %mdkversion < 200900 %postun %{clean_menus} %{clean_icon_cache hicolor} %endif %clean rm -rf $RPM_BUILD_ROOT %files %defattr(-,root,root) %doc BUGS CREDITS README ToDo %_bindir/* %_prefix/lib/%name %_iconsdir/hicolor/*/apps/* %{_datadir}/applications/mandriva-%{name}.desktop %changelog * Wed Sep 02 2009 Thierry Vignaud <tvignaud@mandriva.com> 2.1.1-7mdv2010.0 + Revision: 424620 - rebuild * Wed Jul 23 2008 Thierry Vignaud <tvignaud@mandriva.com> 2.1.1-6mdv2009.0 + Revision: 243259 - rebuild + Pixel <pixel@mandriva.com> - rpm filetriggers deprecates update_menus/update_scrollkeeper/update_mime_database/update_icon_cache/update_desktop_database/post_install_gconf_schemas * Thu Feb 14 2008 Thierry Vignaud <tvignaud@mandriva.com> 2.1.1-4mdv2008.1 + Revision: 168128 - put a real summary - kill re-definition of %%buildroot on Pixel's request + Olivier Blin <oblin@mandriva.com> - restore BuildRoot * Thu Aug 23 2007 Adam Williamson <awilliamson@mandriva.org> 2.1.1-4mdv2008.0 + Revision: 70737 - fix two remaining bugs in .desktop file (#32739) * Wed Aug 22 2007 Adam Williamson <awilliamson@mandriva.org> 2.1.1-3mdv2008.0 + Revision: 68774 - fix xdg menu comment (#32739) - drop old menu - use fd.o icon spec - use Fedora license policy - clean spec * Mon Sep 04 2006 Nicolas Lécureuil <neoclust@mandriva.org> 2.1.1-2mdv2007.0 - XDG * Mon Nov 21 2005 Lenny Cartier <lenny@mandrakesoft.com> 2.1.1-1mdk - 2.1.1 * Fri Jul 08 2005 Lenny Cartier <lenny@mandrakesoft.com> 2.1.0-1mdk - 2.1.0 * Thu Jun 03 2004 Lenny Cartier <lenny@mandrakesoft.com> 2.0.11-1mdk - 2.0.11