%define name gforth %define release %mkrel 4 %define version 0.6.2 Name: %name Release: %release Version: %version License: GPL Group: Development/Other Summary: GNU Forth Url: http://www.jwdt.com/~paysan/gforth.html Source: %name-%version.tar.bz2 Source16: gnu-forth.16.png Source32: gnu-forth.32.png Source48: gnu-forth.48.png BuildRoot: %_tmppath/%name-%version-%release BuildRequires: emacs-bin %description Gforth is a fast and portable implementation of the ANS Forth language. %prep %setup -q %build # need to rebuild from these #touch engine/prim.i engine/prim_lab.i %configure2_5x CC="gcc -fno-reorder-blocks" make %install rm -rf $RPM_BUILD_ROOT %{__install} -d %{buildroot}/usr/share/emacs/site-lisp #make install prefix=%{buildroot}%{_prefix} exec_prefix=%{buildroot}%{_prefix} mandir=%{buildroot}%{_mandir} infodir=%{buildroot}%{_infodir} %makeinstall # icon section install -D %SOURCE16 %buildroot/%_miconsdir/gnu-forth.png install -D %SOURCE32 %buildroot/%_iconsdir/gnu-forth.png install -D %SOURCE48 %buildroot/%_liconsdir/gnu-forth.png mkdir -p %{buildroot}%{_datadir}/applications cat > %{buildroot}%{_datadir}/applications/mandriva-%{name}.desktop << EOF [Desktop Entry] Name=%{name} Comment=GNU Forth Exec=%{name} Icon=gnu-forth.png Terminal=false Type=Application Categories=Development;Building; EOF %post %{update_menus} %_install_info %{name}.info %preun %_remove_install_info %{name}.info %postun %{clean_menus} %clean rm -rf $RPM_BUILD_ROOT %files %defattr(-,root, root) %doc README BUGS NEWS %_bindir/* %_libdir/%name %_datadir/%name %_datadir/emacs/site-lisp/gforth.el %_mandir/man1/* %_infodir/* %_iconsdir/* %_liconsdir/* %_miconsdir/* %_datadir/applications/* %changelog * Fri Aug 31 2007 Funda Wang <fundawang@mandriva.org> 0.6.2-4mdv2008.0 + Revision: 76662 - BR emacs - bunzip the images - drop old menu - fix comment of menu entry - Import gforth * Thu Aug 10 2006 Lenny Cartier <lenny@mandriva.com> 0.6.2-3mdv2007.0 - xdg * Fri Jul 08 2005 Lenny Cartier <lenny@mandriva.com> 0.6.2-2mdk - rebuild * Wed Jan 14 2004 Lenny Cartier <lenny@mandrakesoft.com> 0.6.2-1mdk - 0.6.2 * Sat Feb 01 2003 Lenny Cartier <lenny@mandrakesoft.com> 0.5.0-3mdk - rebuild * Thu Jun 13 2002 Lenny Cartier <lenny@mandrakesoft.com> 0.5.0-2mdk - fix pb with sources * Wed Jun 05 2002 Lenny Cartier <lenny@mandrakesoft.com> 0.5.0-1mdk - clean spec