diff --git a/ispell/ispell.spec b/ispell/ispell.spec index c90e9df841..84077c43da 100644 --- a/ispell/ispell.spec +++ b/ispell/ispell.spec @@ -23,6 +23,10 @@ ## SUCH DAMAGE. ## +# package versions +%define V_ispell 3.2.06 +%define V_igerman98 20030222 + # package information Name: ispell Summary: Interactive Spell Checker @@ -32,21 +36,21 @@ Packager: The OpenPKG Project Distribution: OpenPKG [BASE] Group: Text License: BSD -Version: 3.2.06 -Release: 20030305 +Version: %{V_ispell} +Release: 20030716 # list of sources -Source0: http://fmg-www.cs.ucla.edu/geoff/tars/ispell-%{version}.tar.gz +Source0: http://fmg-www.cs.ucla.edu/geoff/tars/ispell-%{V_ispell}.tar.gz Source1: ftp://ftp.informatik.uni-kiel.de/pub/kiel/dicts/hk-deutsch.tar.gz -Source2: http://lisa.goe.net/~bjacke/igerman98/dict/igerman98-20030222.tar.bz2 +Source2: http://lisa.goe.net/~bjacke/igerman98/dict/igerman98-%{V_igerman98}.tar.bz2 Source3: ftp://ftp.openpkg.org/DST/ispell/words.gz Patch0: ispell.patch # build information Prefix: %{l_prefix} BuildRoot: %{l_buildroot} -BuildPreReq: OpenPKG, openpkg >= 20020206, make, bison -PreReq: OpenPKG, openpkg >= 20020206 +BuildPreReq: OpenPKG, openpkg >= 20020206, ncurses, make, bison +PreReq: OpenPKG, openpkg >= 20020206, ncurses AutoReq: no AutoReqProv: no @@ -63,7 +67,7 @@ AutoReqProv: no %{l_gzip} -d -c %{SOURCE words.gz} >$RPM_BUILD_DIR/words mkdir hk-deutsch (cd hk-deutsch; %{l_gzip} -d -c %{SOURCE hk-deutsch.tar.gz} | %{l_tar} xf -) - %{l_bzip2} -d -c %{SOURCE igerman98-20001109.tar.bz2} | %{l_tar} xf - + %{l_bzip2} -d -c %{SOURCE igerman98-%{V_igerman98}.tar.bz2} | %{l_tar} xf - %build ( echo "#define MINIMENU" @@ -77,6 +81,7 @@ AutoReqProv: no echo "#define MAN4DIR \"%{l_prefix}/man/man4\"" echo "#define WORDS \"$RPM_BUILD_DIR/words\"" echo "#define YACC \"%{l_prefix}/bin/bison -y\"" + echo "#define TERMLIB \"%{l_ldflags} -lncurses\"" case "%{l_target}" in *-linux* | *-solaris* ) echo "#define USG" ;; esac @@ -92,7 +97,8 @@ AutoReqProv: no sort -u >all.words ../buildhash all.words deutsch.aff deutsch.hash ) - ( cd igerman98-20001109 + ( cd igerman98-%{V_igerman98} + %{l_shtool} subst -e 's;munchlist;../munchlist;g' Makefile %{l_make} %{l_mflags} \ UNSQ=cat BUILDHASH=`pwd`/../buildhash \ german.hash 2>/dev/null @@ -124,7 +130,7 @@ AutoReqProv: no %{l_shtool} install -c -m 644 \ deutsch.hash $RPM_BUILD_ROOT%{l_prefix}/share/ispell/deutsch-old.hash ) - ( cd igerman98-20001109 + ( cd igerman98-%{V_igerman98} %{l_shtool} install -c -m 644 \ german.aff $RPM_BUILD_ROOT%{l_prefix}/share/ispell/deutsch.aff %{l_shtool} install -c -m 644 \