%ifos darwin %define __defattr %defattr(-,root,wheel) %else %define __defattr %defattr(-,root,root) %endif Summary: An interactive spelling checker program. Name: ispell Version: 3.1.20 Release: 25b Group: Applications/Text License: GPL URL: http://www.cs.hmc.edu/~geoff/ispell.html Source0: ftp://prep.ai.mit.edu/pub/gnu/ispell-3.1.20.tar.gz Source1: spell Source10: idanish-1.2.1.tar.gz Source11: hk2-deutsch.tar.gz Source12: espa~nol-1.5.tar.gz Source13: francais-IREQ-1.4.tar.gz Source14: dutch96.tar.gz Source15: ispell-norsk-1.1a.tar.gz Source16: portugues.tar.gz Source17: iswedish-1.2.1.tar.gz Source18: italian.tar.gz Source19: ispellcat.tar.gz Source20: iczech.tar.gz Source21: polish.tar.gz Source22: ellhnika.tar.gz Source23: ispell-rus-1.1.tar.gz Source24: eo-spell.tgz Patch0: ispell-3.1.20-config.patch Patch1: ispell-3.1.20-german.patch Patch3: ispell-3.1.20-termio.patch Patch4: ispell-3.1.20-mask.patch Patch5: ispell-3.1.20-strcmp.patch Patch6: ispell-3.1.20-jbj.patch Patch7: ispell-3.1.20-dict.patch Patch8: ispell-sed.patch Patch9: ispell-3.1.20-grep.patch Patch10: ispell-3.1.20-config-macosx.patch Patch16: ispell-3.1.20-jbj-macosx.patch Patch17: ispell-3.1.20-dict-macosx.patch BuildRoot: %{_tmppath}/%{name}-root BuildRequires: words %description Ispell is an interactive spelling checker. Ispell can check text files or standard input for spelling and typographical errors. When it finds a word that is not in the dictionary, it will suggest correctly spelled words for the misspelled word. Ispell is faster and easier to use than UNIX spell, and it can handle languages other than English. You should install ispell if you need a program for spell checking (and who dosn't?). %package catalan Summary: Ispell spelling checker files for checking Catalan words. Group: Applications/Text %description catalan Ispell is an interactive spelling checker. The ispell-catalan package contains files that Ispell needs in order to generate a dictionary of Catalan words. If you need a Catalan dictionary for Ispell, you'll need to install this package, ispell, and ispell-dicts. %package czech Summary: Ispell spelling checker files for Czech words. Group: Applications/Text %description czech Ispell is an interactive spelling checker. The ispell-czech package contains files needed to generate a dictionary of Czech words for Ispell. If you need a Czech dictionary for Ispell, you'll need to install this package, ispell and ispell-dicts. %package danish Summary: Ispell spelling checker files for Danish words. Group: Applications/Text %description danish Ispell is an interactive spelling checker. The ispell-danish package contains files needed to generate an Ispell dictionary of Danish words. If you need a Danish dictionary for Ispell, you'll need to install this package, ispell and ispell-dicts. %package dutch Summary: Files needed to create an Ispell dictionary of Dutch words. Group: Applications/Text %description dutch Ispell is an interactive spelling checker. The ispell-dutch package contains files needed to generate an Ispell dictionary of Dutch words. If you need a Dutch Ispell dictionary, you should install this package, ispell and ispell-dicts. %package esperanto Summary: Files needed to generate an Ispell dictionary of Esperanto words. Group: Applications/Text %description esperanto Ispell is an interactive spelling checker. The ispell-esperanto package contains files needed to generate an Ispell dictionary of Esperanto words. If you need an Ispell dictionary of Esperanto words, you should install this package, ispell and ispell-dicts. %package french Summary: Files needed to generate an Ispell dictionary of French words. Group: Applications/Text %description french Ispell is an interactive spelling checker. The ispell-french package contains files needed to generate an Ispell dictionary of French words. If you need an Ispell dictionary of French words, you should install this package, ispell and ispell-dicts. %package german Summary: Files needed to generate an Ispell dictionary of German words. Group: Applications/Text %description german Ispell is an interactive spelling checker. The ispell-german package contains files needed to generate an Ispell dictionary of German words. If you need an Ispell dictionary of German words, you should install this package, ispell and ispell-dicts. %package greek Summary: Files needed to generate an Ispell dictionary of Greek words. Group: Applications/Text %description greek Ispell is an interactive spelling checker. The ispell-greek package contains files needed to generate an Ispell dictionary of Greek words. If you need an Ispell dictionary of Greek words, you should install this package, ispell and ispell-dicts. %package italian Summary: Files needed to generate an Ispell dictionary of Italian words. Group: Applications/Text %description italian Ispell is an interactive spelling checker. The ispell-italian package contains files needed to generate an Ispell dictionary of Italian words. If you need an Ispell dictionary of Italian words, you should install this package, ispell and ispell-dicts. %package norwegian Summary: Files needed to generate an Ispell dictionary of Norwegian words. Group: Applications/Text %description norwegian Ispell is an interactive spelling checker. The ispell-norwegian package contains files needed to generate an Ispell dictionary of Norwegian words. If you need an Ispell Norwegian dictionary, you should install this package, ispell and ispell-dicts. %package polish Summary: Files needed to generate an Ispell dictionary of Polish words. Group: Applications/Text %description polish Ispell is an interactive spelling checker. The ispell-polish package contains files needed to generate an Ispell dictionary of Polish words. If you need an Ispell dictionary of Polish words, you should install this package, ispell and ispell-dicts. %package portuguese Summary: Files needed to generate an Ispell dictionary of Portuguese words. Group: Applications/Text %description portuguese Ispell is an interactive spelling checker. The ispell-portuguese package contains files needed to generate an Ispell dictionary of Portuguese words. If you need an Ispell dictionary of Portuguese words, you should install this package, ispell and ispell-dicts. %package russian Summary: Files needed to generate an Ispell dictionary of Russian words. Group: Applications/Text %description russian Ispell is an interactive spelling checker. The ispell-russian package contains files needed to generate an Ispell dictionary of Russian words. If you need an Ispell dictionary of Russian words, you should install this package, ispell and ispell-dicts. %package spanish Summary: Files needed to generate an Ispell dictionary of Spanish words. Group: Applications/Text %description spanish Ispell is an interactive spelling checker. The ispell-spanish package contains files needed to generate an Ispell dictionary of Spanish words. If you need an Ispell dictionary of Spanish words, you should install this package, ispell and ispell-dicts. %package swedish Summary: Files needed to generate an Ispell dictionary of Swedish words. Group: Applications/Text %description swedish Ispell is an interactive spelling checker. The ispell-swedish package contains files needed to generate an Ispell dictionary of Swedish words. If you need an Ispell dictionary of Swedish words, you should install this package, ispell and ispell-dicts. %package dicts Summary: Files for generating non-English Ispell dictionaries. Group: Applications/Text %description dicts The ispell-dicts package contains files needed for generating Ispell dictionaries in languages other than English. Ispell is an interactive spelling checker. %prep %setup -q -n ispell-3.1 -a 10 -a 12 -a 17 -a 20 -a 23 -a 24 mkdir dicts lang=danish dir=dicts/$lang mv idanish-1.2.1 $dir mv -f $dir/Makefile{,.dist} || : cp $dir/* languages/dansk lang=german dir=dicts/$lang mkdir $dir tar xzf %SOURCE11 -C $dir mv -f $dir/Makefile{,.dist} || : cp $dir/*.txt $dir/*.aff $dir/*README languages/deutsch mv $dir/deutsch.aff{,-hk} lang=spanish dir=dicts/$lang mv espa~nol-1.5 $dir ln -sf espa~nol.words+ $dir/espanol.dict mv -f $dir/Makefile{,.dist} || : cp $dir/* languages/espanol lang=french dir=dicts/$lang mkdir $dir tar xzf %SOURCE13 -C $dir mv -f $dir/Makefile{,.dist} || : cp $dir/* languages/francais lang=dutch dir=dicts/$lang mkdir $dir tar xzf %SOURCE14 -C $dir ln -sf dutch96.aff $dir/nederlands.aff ln -sf dutch96.lat $dir/nederlands.lat cp dicts/dutch/* languages/nederlands lang=norwegian dir=dicts/$lang mkdir $dir tar xzf %SOURCE15 -C $dir ln -sf norsk.7bit $dir/norsk.aff cp dicts/norwegian/* languages/norsk lang=portuguese dir=dicts/$lang tar xzf %SOURCE16 -C ./dicts/ mv dicts/portugues $dir cp dicts/portuguese/* languages/portugues lang=swedish dir=dicts/$lang mv iswedish-1.2.1 $dir mv -f $dir/Makefile{,.dist} || : cp dicts/swedish/* languages/svenska lang=italian dir=dicts/$lang mkdir $dir tar xzf %SOURCE18 -C $dir mv -f $dir/Makefile{,.dist} || : lang=catalan dir=dicts/$lang mkdir $dir tar xzf %SOURCE19 -C $dir lang=czech dir=dicts/$lang mv iczech $dir mv -f $dir/Makefile{,.dist} || : lang=polish dir=dicts/$lang mkdir $dir tar xzf %SOURCE21 -C dicts lang=greek dir=dicts/$lang mkdir $dir tar xzf %SOURCE22 -C $dir lang=russian dir=dicts/$lang mv ispell-rus-1.1 $dir mv -f $dir/Makefile{,.dist} || : lang=esperanto dir=dicts/$lang mv eo $dir ln -sf eo.aff $dir/esperanto.aff %ifos darwin %patch10 -p1 -b .macosx %else %patch0 -p1 %endif %patch1 %patch3 -p1 -b .termio %ifarch alpha %patch4 -p1 -b .mask %endif %patch5 -p1 -b .strcmp %ifos darwin %patch16 -p1 -b .macosx %patch17 -p1 -b .macosx %else %patch6 -p1 -b .jbj %patch7 -p1 -b .dictpat %endif %patch8 -p1 %patch9 -p1 -b .grep %build # Make config.sh first TMPDIR=/var/tmp PATH=.:$PATH make RPM_OPT_FLAGS="$RPM_OPT_FLAGS" config.sh perl -pi -e "s/-O/$RPM_OPT_FLAGS -fexpensive-optimizations -fno-force-mem -pipe/" config.sh # Now save build-rooted version (with time-stamp) for install ... cp config.sh config.sh.BUILD sed -e "s,%{_prefix}/,$RPM_BUILD_ROOT%{_prefix}/,g" < config.sh.BUILD > config.sh.INSTALL # and then make everything TMPDIR=/var/tmp PATH=.:$PATH make RPM_OPT_FLAGS="$RPM_OPT_FLAGS" install -c -m 0644 languages/fix8bit.c dicts/fix8bit.c find dicts -name '*.dictpat' -exec rm -f {} \; PATH=.:$PATH make -C dicts all %install rm -rf $RPM_BUILD_ROOT mkdir -p $RPM_BUILD_ROOT%{_prefix}/man mkdir -p $RPM_BUILD_ROOT%{_prefix}/lib/emacs/site-lisp mkdir -p $RPM_BUILD_ROOT%{_prefix}/info # Roll in the build-root'ed version (with time-stamp!) rm -rf config.sh ln config.sh.INSTALL config.sh TMPDIR=/var/tmp PATH=.:$PATH LIBDIR=$RPM_BUILD_ROOT%{_prefix}/lib/ispell make install mv $RPM_BUILD_ROOT%{_prefix}/info/ispell $RPM_BUILD_ROOT%{_prefix}/info/ispell.info gzip -9nf $RPM_BUILD_ROOT%{_prefix}/info/ispell.info install -c -m 755 %SOURCE1 $RPM_BUILD_ROOT%{_prefix}/bin/spell PATH=.:$PATH make -C dicts DESTDIR=$RPM_BUILD_ROOT install ( cd $RPM_BUILD_ROOT ln -sf deutschlxg.hash .%{_prefix}/lib/ispell/german.hash ln -sf deutschlxg.hash .%{_prefix}/lib/ispell/deutsch.hash ln -sf americanmed+.hash .%{_prefix}/lib/ispell/english.hash ) mkdir $RPM_BUILD_ROOT%{_prefix}/share tar cf - dicts | (cd $RPM_BUILD_ROOT%{_prefix}/share; tar xf -) ( cd $RPM_BUILD_ROOT%{_prefix}/share find dicts -name '*.cnt' -exec rm -f {} \; find dicts -name '*.stat' -exec rm -f {} \; find dicts -name '*.hash' -exec rm -f {} \; ) %clean rm -rf $RPM_BUILD_ROOT %files %{__defattr} %doc README %{_prefix}/bin/buildhash %{_prefix}/bin/findaffix %{_prefix}/bin/icombine %{_prefix}/bin/ijoin %{_prefix}/bin/ispell %{_prefix}/bin/munchlist %{_prefix}/bin/spell %{_prefix}/bin/sq %{_prefix}/bin/tryaffix %{_prefix}/bin/unsq %{_prefix}/info/ispell.info.gz #%{_prefix}/lib/emacs/site-lisp/ispell.el %{_prefix}/man/man1/sq.1* %{_prefix}/man/man1/buildhash.1* %{_prefix}/man/man1/findaffix.1* %{_prefix}/man/man1/ispell.1* %{_prefix}/man/man1/munchlist.1* %{_prefix}/man/man1/tryaffix.1* %{_prefix}/man/man1/unsq.1* %{_prefix}/man/man5/ispell.5* %{_prefix}/man/man5/english.5* %dir %{_prefix}/lib/ispell %{_prefix}/lib/ispell/american.hash %{_prefix}/lib/ispell/americanmed+.hash %{_prefix}/lib/ispell/americanxlg.hash %{_prefix}/lib/ispell/british.hash %{_prefix}/lib/ispell/britishmed+.hash %{_prefix}/lib/ispell/britishxlg.hash %{_prefix}/lib/ispell/english.hash %{_prefix}/lib/ispell/english.aff %files catalan %{__defattr} %doc dicts/catalan/LLEGEIX %{_prefix}/lib/ispell/catala.aff %{_prefix}/lib/ispell/catala.hash %files czech %{__defattr} %doc dicts/czech/README %{_prefix}/lib/ispell/czech.aff %{_prefix}/lib/ispell/czech.hash %files danish %{__defattr} %doc dicts/danish/{COPYING,danish.html} %{_prefix}/lib/ispell/dansk.aff %{_prefix}/lib/ispell/dansk.hash %files dutch %{__defattr} %doc dicts/dutch/README %{_prefix}/lib/ispell/nederlands.aff %{_prefix}/lib/ispell/nederlands.hash %files esperanto %{__defattr} %doc dicts/esperanto/{README,legumin.l3} %{_prefix}/lib/ispell/esperanto.aff %{_prefix}/lib/ispell/esperanto.hash %files french %{__defattr} %doc dicts/french/{LISEZMOI,COPYING,MANIFEST,ChangeLog} %{_prefix}/lib/ispell/francais.aff %{_prefix}/lib/ispell/francais.hash %files german %{__defattr} %doc dicts/german/{README,ANNOUNCE,Changes,Contributors} %{_prefix}/lib/ispell/german.hash %{_prefix}/lib/ispell/deutsch.hash %{_prefix}/lib/ispell/deutsch.aff %{_prefix}/lib/ispell/deutschlxg.hash %{_prefix}/lib/ispell/deutschmed.hash %files greek %{__defattr} %{_prefix}/lib/ispell/ellhnika.aff %{_prefix}/lib/ispell/ellhnika.hash %files italian %{__defattr} %doc dicts/italian/README %{_prefix}/lib/ispell/italian.aff %{_prefix}/lib/ispell/italian.hash %files norwegian %{__defattr} %doc dicts/norwegian/README %{_prefix}/lib/ispell/norsk.aff %{_prefix}/lib/ispell/norsk.hash %files polish %{__defattr} %{_prefix}/lib/ispell/polish.aff %{_prefix}/lib/ispell/polish.hash %files portuguese %{__defattr} %doc dicts/portuguese/README %{_prefix}/lib/ispell/portugues.aff %{_prefix}/lib/ispell/portugues.hash %files russian %{__defattr} %doc dicts/russian/docs/{INSTALL.russian,Readme.russian,copyright,cyrispell,readme.makedict} %{_prefix}/lib/ispell/russian.aff %{_prefix}/lib/ispell/russian.hash %files spanish %{__defattr} %doc dicts/spanish/{LEAME,README} %{_prefix}/lib/ispell/espanol.aff %{_prefix}/lib/ispell/espanol.hash %files swedish %{__defattr} %doc dicts/swedish/{LaeSMIG,COPYING,Copyright} %{_prefix}/lib/ispell/svenska.aff %{_prefix}/lib/ispell/svenska.hash %files dicts %{__defattr} %dir %{_prefix}/share/dicts %{_prefix}/share/dicts/fix8bit %lang(ca) %{_prefix}/share/dicts/catalan %lang(cs) %{_prefix}/share/dicts/czech %lang(da) %{_prefix}/share/dicts/danish %lang(eo) %{_prefix}/share/dicts/esperanto %lang(fr) %{_prefix}/share/dicts/french %lang(de) %{_prefix}/share/dicts/german %lang(el) %{_prefix}/share/dicts/greek %lang(it) %{_prefix}/share/dicts/italian %lang(no) %{_prefix}/share/dicts/norwegian %lang(pl) %{_prefix}/share/dicts/polish %lang(pt) %{_prefix}/share/dicts/portuguese %lang(ru) %{_prefix}/share/dicts/russian %lang(es) %{_prefix}/share/dicts/spanish %lang(sv) %{_prefix}/share/dicts/swedish %changelog * Thu Oct 11 2001 Keisuke Fujii - 1st build on MacOS X Release 10.1 * Mon May 14 2001 Keisuke Fujii - 1st build on MacOS X Release * Fri Feb 04 2000 Nalin Dahyabhai - add URL * Wed Feb 02 2000 Cristian Gafton - fix descriptions - man pages are compressed * Fri Nov 19 1999 Michael K. Johnson - grep is in /bin, not %{_prefix}/bin - removed lang(foo) from all language-specific packages. - made the spell script a better clone of the old spell program. * Tue Aug 31 1999 Bill Nottingham - sed is in /bin, not %{_prefix}/bin * Mon Aug 30 1999 Jeff Johnson - build *.hash and *.aff from dicts not languages. - better russian dictionary. * Sun Aug 29 1999 Jeff Johnson - add British English and dictionaries. * Sun Mar 21 1999 Cristian Gafton - auto rebuild in the new build environment (release 15) * Thu Feb 25 1999 Bill Nottingham - add a buildroot * Tue Jan 12 1999 Michael K. Johnson - strcmp may have different forms on different systems; do not declare it explicitly, just include - use /var/tmp instead of %{_prefix}/tmp * Sun Nov 8 1998 Patricia Jung - Added German dictionary * Mon Sep 28 1998 Jeff Johnson - eliminate %{_prefix}/lib/emacs/site-lisp/ispell.el -- use emacs-20.3 version. * Mon Jun 29 1998 Jeff Johnson - use posix termios (problem #558) - add build root. * Sat Jun 27 1998 Trent Jarvi - alphahack patch no longer required. struct winsize now in . - change MASKWIDTH apropriately on alpha * Sat May 09 1998 Prospector System - translations modified for de, fr, tr * Sat May 09 1998 Erik Troan - have two Source1 lines isn't terribly brilliant * Thu Apr 30 1998 Cristian Gafton - patch to avoid remaking ispell.info * Thu Jul 10 1997 Erik Troan - built against glibc * Thu Mar 06 1997 Michael K. Johnson - Added a spell program. - Configured for 8-bit use.