DATE=`date +"%d%b%y"`

FILE=bed-$VERSION.src.tar.gz
#RELEASE=`cat src/sourcenumber`

SIZE=`ls -s --human-readable $DISTPATH/$FILE|cut -d ' ' -f 1`
cat <<!
Name: bed
Version: $VERSION
Release: 1
Summary: menu driven variable dataformat binary editor for linux 
Source: sunsite.unc.edu:/pub/Linux/apps/editors/terminal/$FILE 
Url: http://bedlinux.tripod.com
Requires: ld-linux.so.2 libc.so.6 libdl.so.2 libgpm.so.1 libm.so.6  libpthread.so.0 libX11.so.6 /bin/sh libc.so.6(GLIBC_2.0) libc.so.6(GLIBC_2.1) libdl.so.2(GLIBC_2.0) libdl.so.2(GLIBC_2.1) libpthread.so.0(GLIBC_2.0) libpthread.so.0(GLIBC_2.1)
Copyright: GPL
Group: Applications/Editors
%description 
!
cat description
cat <<!
%prep
%setup

%build
make

%install
make install
%post
cd $CONFDIR
./addmagic.sh
update-menus
%files
%config $CONFDIR
$CONFDIRLINK
$BINDIR/bed
$BINDIR/xbed
$MANDIR/bed.1.gz
$MANDIR/xbed.1.gz
$MENUPATH/bed
!
