Sophie

Sophie

distrib > Mandriva > 9.0 > i586 > media > contrib-src > by-pkgid > 2894dfdb0e16d4e549bf10517a2f001c > files > 2

gforth-0.5.0-2mdk.src.rpm

%define name  gforth
%define release 2mdk
%define version 0.5.0


Name:		%name
Release:	%release
Version:	%version
License:	GPL
Group:		Development/Other
Provides:	gforth 
Summary:	GNU Forth
Url:		http://www.jwdt.com/~paysan/gforth.html
Source:		%name-%version.tar.bz2
Source16:	gnu-forth.16.png.bz2
Source32:	gnu-forth.32.png.bz2
Source48:	gnu-forth.48.png.bz2
BuildRoot:	%_tmppath/%name-%version-%release

%description
Gforth is a fast and portable implementation of the ANS Forth language. 

%prep
rm -rf $RPM_BUILD_ROOT

%setup

%build
# need to rebuild from these
touch engine/prim.i engine/prim_lab.i

%configure

make

%install
%{__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 %buildroot/%_miconsdir
install -d %buildroot/%_iconsdir
install -d %buildroot/%_liconsdir
bzcat %SOURCE16 > %buildroot/%_miconsdir/gnu-forth.png
bzcat %SOURCE32 > %buildroot/%_iconsdir/gnu-forth.png
bzcat %SOURCE48 > %buildroot/%_liconsdir/gnu-forth.png

# debian menu file
install -d %buildroot/%_menudir
cat << EOF > %buildroot/%_menudir/%name
?package(%name):command="%_bindir/%name" \
icon="gnu-forth.png"  needs="text" section="Applications/Development/Interpreters" \
title="GNU Forth" longtitle="%summary - Shell"  
EOF

%post
%{update_menus}

%_install_info %{name}.info

%preun
%_remove_install_info %{name}.info

%postun
%{clean_menus}

%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/*
%_menudir/*

%changelog
* 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