Репозиторий ALT Linux backports/2.4
Последнее обновление: 9 июля 2008 | Пакетов: 497 | Посещений: 1582873
 поиск   регистрация   авторизация 
 
Группа :: Работа с текстами
Пакет: ispell

 Главная   Изменения   Спек   Патчи   Загрузить   Bugs and FR 

Name: ispell
Version: 3.2.06
Release: alt5.M24.6
Epoch: 1

Summary: The GNU interactive spelling checker program
License: BSD-like
Group: Text tools
URL: http://ficus-www.cs.ucla.edu/ficus-members/geoff/ispell.html

Source0: http://fmg-www.cs.ucla.edu/geoff/tars/ispell-%version.tar.bz2
Source2: spell.bz2
Source3: ispell-3.20-hk2-deutsch.tar.bz2
Source4: ispell.alternatives

Patch0: ispell-3.1.20-config.patch.bz2
Patch1: ispell-3.2.06-german.patch.bz2
Patch2: ispell-3.1.20-termio.patch.bz2
Patch3: ispell-3.1.20-strcmp.patch.bz2
Patch4: ispell-3.1.20-maskbits64_and_british.patch.bz2
Patch5: ispell-3.2.06-dont-string.patch.bz2
Patch6: ispell-3.20-sh.patch.bz2
Patch7: ispell-3.20-missing_prototypes.patch.bz2
Patch8: ispell-3.20-increase-max.patch.bz2
Patch9: ispell-3.20-xb-options.patch.bz2
Patch10: ispell-3.2.06-sq.patch.bz2
Patch11: ispell-3.20-man-update.patch.bz2
# add missing includes
Patch12: ispell-3.2.06-includes.patch.bz2
# use mkdir -p to create directories
Patch13: ispell-3.2.06-mkdir_p.patch.bz2
# fix syntax error
Patch14: ispell-3.2.06-syntax.patch

Patch15: ispell-3.2.06-alt-downgrade-english-wordchars.patch
Patch16: ispell-3.2.06-epa7-tmp.patch
Patch17: ispell-3.2.06.epa7-alt-tmp.patch

PreReq: alternatives >= 0.0.6
Requires: mktemp >= 1:1.3.1
Provides: /usr/bin/spell

# Automatically added by buildreq on Sat Jul 03 2004

BuildRequires: libalternatives-devel libncurses-devel words

%description
Ispell is the GNU interactive spelling checker.  Ispell will check a text
file 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.

Note this package has only the spell checker engine; you also need to
install the dictionary files from the ispell-* package for your language.

%package en
Summary: English dictionary for ispell
Group: System/Internationalization
# the binary format changed with ispell 3.2.06
Requires: ispell >= 1:3.2.06
BuildPreReq: words >= 2-ipl16mdk
Obsoletes: iamerica ispell-english ibritish ispell-british
Provides: ispell-dictionary = 3.2.06

%description en
This package has the English dictionary files for ispell.

With it you can check the spelling of Enlish text files or LaTeX files
written in English.

%package de
Summary: German dictionary for ispell
Group: System/Internationalization
Requires: ispell >= 1:3.2.06
Obsoletes: ispell-german igerman
Provides: ispell-dictionary = 3.2.06

%description de
This package has the German dictionary files for ispell.

%prep
%setup -q -a3

%patch0 -p1
%patch1
%patch2 -p1 -b .termio
%patch3 -p1 -b .strcmp
%patch4 -p1 -b .maskbits
%patch5 -p1
%patch6 -p1
%patch7 -p1
%patch8 -p1
%patch9 -p1
%patch10 -p1 -b .SQ
#%patch11 -p1
%patch12 -p1 -b .includes
%patch13 -p1 -b .mkdir-p
%patch14 -p1
%patch15 -p1
%patch16 -p1
%patch17 -p1

%build
%__cat >>./local.h <<\__EOF__
#define CC "gcc"
#define CFLAGS "%optflags"
#define BINDIR "%_bindir"
#define LIBDIR "%_libdir/%name"
#define MAN1DIR "%_man1dir"
#define MAN4DIR "%_man4dir" /* for upstream releases */
#define MANFDIR "%_man5dir" /* for unofficial `epa' releases */
#define INSTALL "%__install -p"
#define MASTERHASH "americanmed+.hash"
__EOF__
%__subst s,/usr/dict/words,%_datadir/dict/words,g local.h
# SMP-incompatible build
%make

%install
%__subst -p 's,%_prefix,%buildroot&,g' config.sh
%makeinstall
%__mv %buildroot%_bindir/ispell %buildroot%_bindir/ispell-real
bzcat %SOURCE2 >%buildroot%_bindir/ispell-spell
%__install -pD -m644 %SOURCE4 %buildroot%_altdir/%name

%post
%register_alternatives ispell -- ispell

%preun
%unregister_alternatives ispell

%files
%doc README
%attr(755,root,root) %_bindir/*
%_altdir/%name
%_man1dir/ispell.1*
%_man4dir/ispell.4*
#_infodir/ispell.info*
#_libdir/emacs/site-lisp/ispell.el
%_man1dir/buildhash.1*
%_man1dir/munchlist.1*
%_man1dir/findaffix.1*
%_man1dir/tryaffix.1*
%_man1dir/sq.1*
%_man1dir/unsq.1*
%dir %_libdir/%name

%files en
%_man4dir/english.4*
%_libdir/%name/american.hash
%_libdir/%name/americanmed+.hash
%_libdir/%name/americanxlg.hash
%_libdir/%name/english.aff
%_libdir/%name/english.hash
%_libdir/%name/british.hash
%_libdir/%name/britishmed+.hash
%_libdir/%name/britishxlg.hash

%files de
%_libdir/%name/deutsch.aff
%_libdir/%name/deutsch.hash
%_libdir/%name/deutschlxg.hash
%_libdir/%name/deutschmed.hash
%_libdir/%name/german.hash

%changelog

Полный changelog можно просмотреть здесь

 
design & coding: Vladimir Lettiev aka crux © 2004-2005