File ispell.spec of Package ispell
#
# spec file for package ispell (Version 3.3.02)
#
# Copyright (c) 2007 SUSE LINUX Products GmbH, Nuernberg, Germany.
# This file and all modifications and additions to the pristine
# package are under the same license as the package itself.
#
# Please submit bugfixes or comments via http://bugs.opensuse.org/
#
# norootforbuild
Name: ispell
BuildRequires: bison ncurses-devel words
URL: http://www.lasr.cs.ucla.edu/geoff/ispell.html
License: BSD License and BSD-like
Group: Productivity/Text/Spell
PreReq: fillup fileutils
Provides: spell
Requires: words ispell_english_dictionary ispell_dictionary
Autoreqprov: on
Version: 3.3.02
Release: 1
BuildRoot: %{_tmppath}/%{name}-%{version}-build
Summary: A Spell Checker
Source: ispell-3.3.02.tar.bz2
Source1: SuSEconfig.ispell
Source2: sysconfig.ispell
Patch: ispell-3.3.02.dif
Patch1: ispell-3.3.02-config.patch
Patch2: ispell-3.2.06-suse.patch
Patch3: ispell-3.3.02-languages.patch
Patch4: ispell-3.3.02-types.patch
Patch5: ispell-3.3.02-terminal.patch
Patch6: ispell-3.3.02-sq.patch
Patch7: ispell-3.3.02-brkgcc.patch
Patch8: ispell-3.3.02-mkdir.patch
Patch9: ispell-3.3.02-strip.patch
%description
Ispell is a fast, screen-oriented spell checker that shows you your
errors in the context of the original file and suggests possible
corrections when it can figure them out. Compared to UNIX spell, it is
faster and much easier to use. Ispell can also handle languages other
than English. Ispell has a long history and many people have
contributed to the current version--some of the major contributors
include R. E. Gorin, Pace Willisson, Walt Buehring, and Geoff Kuenning.
You can find a short description in the directory
/usr/share/doc/packages/ispell/.
Authors:
--------
R. E. Gorin
Pace Willisson <pace@ai.mit.edu>
Walt Buehring
Goeff Kuenning <geoff@ITcorp.com>
%package -n ispell-american
Summary: American ispell dictionary
Group: Productivity/Text/Spell
Provides: ispell_english_dictionary ispell_dictionary iamerica locale(ispell:en)
Obsoletes: iamerica
Autoreqprov: on
%description -n ispell-american
This package includes a ready American dictionary for ispell. If you
install ispell-british too, check /etc/sysconfig/ispell to see which
one the default English dictionary will be. A short usage description
is given in /usr/share/doc/packages/ispell/README. The sources for this
dictionary are included in the source package of ispell.
%package -n ispell-british
Summary: British ispell dictionary
Group: Productivity/Text/Spell
Provides: ispell_english_dictionary ispell_dictionary ibritish locale(ispell:en_GB)
Obsoletes: ibritish
Autoreqprov: on
%description -n ispell-british
This packages includes a ready British dictionary for ispell. If you
install ispell-american too, check /etc/sysconfig/ispell to see which
one will be the default English dictionary. A short usage description
is given in /usr/share/doc/packages/ispell/README. The sources for this
dictionary are included in the source package of ispell.
%prep
%setup
%patch -P 0 -p 0 -b .dif
%patch -P 1 -p 0 -b .config
%patch -P 2 -p 0 -b .suse
%patch -P 3 -p 0 -b .languages
%patch -P 4 -p 0 -b .types
%patch -P 5 -p 0 -b .terminal
%patch -P 6 -p 0 -b .sq
%patch -P 7 -p 0 -b .brkgcc
%patch -P 8 -p 0 -b .mkdir
%patch -P 9 -p 0 -b .strip
%build
PATH=$PATH:$PWD
export PATH
make local.h
make config.sh
sed "s@\(DIR=\)['\"]\?\([^'\"]*\)['\"]\?@\1\"\$\{DESTDIR\}\2\"@g" \
< config.sh > config.tmp
mv config.tmp config.sh
make all
%install
DESTDIR=$RPM_BUILD_ROOT
export DESTDIR
mkdir -p ${DESTDIR}/usr/doc/packages/ispell
mkdir -p ${DESTDIR}/usr/lib/ispell/emacs
mkdir -p ${DESTDIR}/sbin/conf.d
mkdir -p ${DESTDIR}/var/adm/fillup-templates
mkdir -p ${DESTDIR}/var/lib/dict
make install DESTDIR=$DESTDIR
rm -f ${DESTDIR}/usr/share/emacs/site-lisp/ispell.el*
install -m 0444 suse/ispell-emacs-menu.el ${DESTDIR}/usr/lib/ispell/
install -m 0444 suse/emacs/american.el ${DESTDIR}/usr/lib/ispell/emacs/
install -m 0444 suse/emacs/british.el ${DESTDIR}/usr/lib/ispell/emacs/
install -m 0444 suse/emacs/english.el ${DESTDIR}/usr/lib/ispell/emacs/
rm -f ${DESTDIR}/usr/lib/ispell/british.hash
rm -r ${DESTDIR}/usr/lib/ispell/american.hash
ln -sf britishxlg.hash ${DESTDIR}/usr/lib/ispell/british.hash
ln -sf americanxlg.hash ${DESTDIR}/usr/lib/ispell/american.hash
mv ${DESTDIR}/usr/lib/ispell/english.aff ${DESTDIR}/usr/lib/ispell/american.aff
cp -a ${DESTDIR}/usr/lib/ispell/american.aff ${DESTDIR}/usr/lib/ispell/british.aff
install -m 755 $RPM_SOURCE_DIR/SuSEconfig.ispell ${DESTDIR}/sbin/conf.d/
install -m 644 $RPM_SOURCE_DIR/sysconfig.ispell ${DESTDIR}/var/adm/fillup-templates/
mkdir -p ${DESTDIR}/var/lib/dict
ln -sf /usr/lib/ispell/american.hash ${DESTDIR}/var/lib/dict/english.hash
ln -sf /usr/lib/ispell/american.aff ${DESTDIR}/var/lib/dict/english.aff
rm -f ${DESTDIR}/usr/lib/ispell/english.hash
rm -f ${DESTDIR}/usr/lib/ispell/english.aff
ln -sf /var/lib/dict/english.hash ${DESTDIR}/usr/lib/ispell/
ln -sf /var/lib/dict/english.aff ${DESTDIR}/usr/lib/ispell/
rm -f ${DESTDIR}/usr/bin/defmt-*
%post
%{fillup_only}
%files
%defattr(-, root, root)
%doc suse/LIESMICH suse/README
%dir /usr/lib/ispell
/usr/bin/buildhash
/usr/bin/findaffix
/usr/bin/icombine
/usr/bin/ijoin
/usr/bin/ispell
/usr/bin/munchlist
/usr/bin/sq
/usr/bin/tryaffix
/usr/bin/unsq
/usr/lib/ispell/ispell-emacs-menu.el
%dir /usr/lib/ispell/emacs
/usr/lib/ispell/emacs/english.el
/usr/lib/ispell/english.hash
/usr/lib/ispell/english.aff
/sbin/conf.d/SuSEconfig.ispell
/var/adm/fillup-templates/sysconfig.ispell
%verify(not link mtime) /var/lib/dict/english.hash
%verify(not link mtime) /var/lib/dict/english.aff
%doc %{_mandir}/man1/buildhash.1.gz
%doc %{_mandir}/man1/findaffix.1.gz
%doc %{_mandir}/man1/ispell.1.gz
%doc %{_mandir}/man1/munchlist.1.gz
%doc %{_mandir}/man1/sq.1.gz
%doc %{_mandir}/man1/tryaffix.1.gz
%doc %{_mandir}/man1/unsq.1.gz
%doc %{_mandir}/man5/english.5.gz
%doc %{_mandir}/man5/ispell.5.gz
%files -n ispell-american
%defattr(-, root, root)
/usr/lib/ispell/american.hash
/usr/lib/ispell/americanmed.hash
/usr/lib/ispell/americanxlg.hash
/usr/lib/ispell/emacs/american.el
/usr/lib/ispell/american.aff
%files -n ispell-british
%defattr(-, root, root)
/usr/lib/ispell/british.hash
/usr/lib/ispell/britishmed.hash
/usr/lib/ispell/britishxlg.hash
/usr/lib/ispell/emacs/british.el
/usr/lib/ispell/british.aff
%changelog
* Thu May 31 2007 - werner@suse.de
- Update ispell to version 3.3.02 including various bug fixes
and add new old html parser and support for UTF-8.
* Thu May 31 2007 - werner@suse.de
- Fix sq/unsq, hint from Thomas Rachel
* Thu Mar 29 2007 - rguenther@suse.de
- Add bison and ncurses-devel BuildRequires.
* Mon May 22 2006 - schwab@suse.de
- Don't strip binaries.
* Wed Mar 29 2006 - werner@suse.de
- Add locale provides (bug #161478)
* Wed Jan 25 2006 - mls@suse.de
- converted neededforbuild to BuildRequires
* Thu Jan 12 2006 - werner@suse.de
- Fix dangling symlink (bug #142828)
* Fri Jul 01 2005 - werner@suse.de
- Make it build-root and no norootforbuild
* Thu Jun 02 2005 - mfabian@suse.de
- fix ispell-emacs-menu.el for XEmacs 21.5.20 and
xemacs-packages-20050505 (coding system iso-8859-14 may not
exist without requiring 'latin-euro-latin8).
* Thu Mar 10 2005 - werner@suse.de
- Use /var/lib/dict/ to handle ro /usr/share/dict/ and the symbolic
link `english.hash/aff' to the choosen dictionary (bug #67048)
* Tue Dec 21 2004 - werner@suse.de
- Be sure that the string utils uses the POSIX locale
* Mon May 03 2004 - werner@suse.de
- Add break condition for checking HUGE lines to avoid side effect
of the new ``compensate for short copy strategy'' (bug #39745)
* Thu Jan 08 2004 - ro@suse.de
- fix build with current bison
* Fri Aug 29 2003 - werner@suse.de
- More about new POSIX sort behaviour: one fix in munchlist
and four fixes in findaffix (bug #29627).
* Thu Aug 28 2003 - mmj@suse.de
- Add sysconfig metadata [#28885]
* Thu Jul 24 2003 - werner@suse.de
- Fix encode mappings for Xemacs
* Tue Apr 08 2003 - werner@suse.de
- Fix munchlist sort using
- Fix Makefile's sort using
- Use secure tmp directory for munchlist
* Tue Apr 08 2003 - werner@suse.de
- Use -n option for tail
- Use iso-latin-1 even for english dictionaries to avoid splits
- Add some more comments about new german and the DICTIONARY var
* Thu Feb 20 2003 - mmj@suse.de
- Add sysconfig metadata [#22650]
* Wed Sep 18 2002 - ro@suse.de
- removed bogus self-provides
* Thu Aug 15 2002 - ro@suse.de
- fixed typo in specfile
* Thu Aug 15 2002 - werner@suse.de
- Add pre-requires (bug #17885)
* Mon May 13 2002 - egmont@suselinux.hu
- use RC_LANG instead of obsolete DEFAULT_LANGUAGE
* Tue Apr 16 2002 - adrian@suse.de
- add Provides spell (kdelibs3 needs either ispell or aspell now)
* Thu Mar 07 2002 - egmont@suselinux.hu
- Fixed template comment
* Wed Feb 20 2002 - werner@suse.de
- Avoid circular depndencies (bug #13609)
* Mon Feb 04 2002 - egmont@suselinux.hu
- SuSE GmbH -> SuSE Linux AG
* Thu Jan 24 2002 - werner@suse.de
- Make MASKTYPE to a string (thanks to Jan Cihlar)
* Wed Jan 16 2002 - egmont@suselinux.hu
- Rename packages to ispell-american and ispell-british
- They no longer have common files, no longer exclude each other
- New SuSEconfig module to generate the "english" symlinks
* Thu Dec 13 2001 - werner@suse.de
- Fix the sq patch gets versus fgets, the newline problem (#12461)
- No backslashspace patch anymore required
* Thu Sep 27 2001 - werner@suse.de
- Update to ispell 3.2.06
* port missed patches to 3.2.06
* curent missing patches are
ISO part of html mode and maybe backslashspace workaround
* Thu May 17 2001 - werner@suse.de
- Mask all exit status with true on unlinking english.hash
* Mon May 14 2001 - werner@suse.de
- Be sure that exit status is true in preun scripts
* Wed May 09 2001 - mfabian@suse.de
- bzip2 sources
* Wed Feb 07 2001 - werner@suse.de
- Workaround for broken gcc on IA64
- Split main dif into several patches
- Add backslash space patch for TeX text
- Add iso-more-html patch for HTML text
* Wed Jan 10 2001 - werner@suse.de
- Make temporary files more secure
* Sat Oct 14 2000 - schwab@suse.de
- Do not define bcopy and bzero on Linux.
* Mon Sep 18 2000 - werner@suse.de
- Change ispell-emacs-menu.el to fit filter feature
in ispell-menu-xemacs of newer ispell.el of XEmacs
- Change ispell-emacs-menu.el to add local used
dictionary list.
* Sat May 27 2000 - kukuk@suse.de
- Use doc macro
* Mon Mar 13 2000 - werner@suse.de
- Use tc[sg]etattr if possible
- Use correct pointer size depending on __WORDSIZE
- Fix common names with ncurses
- Use $RPM_OPT_FLAGS
- Use correct type for {m,re}alloc
- Don't require ispell for ibritish and iamerica because
ispell requires one of those packages (bootstrapping)
* Fri Feb 25 2000 - kukuk@suse.de
- Move /usr/{info,man} -> /usr/share/{info,man}
* Mon Sep 27 1999 - bs@suse.de
- fixed requirements for sub packages
* Mon Sep 20 1999 - ro@suse.de
- added Requires ispell_dictionary for ispell
- added Provides ispell_dictionary for ibritish, iamerica
* Mon Sep 13 1999 - bs@suse.de
- ran old prepare_spec on spec file to switch to new prepare_spec.
* Wed Jul 14 1999 - werner@suse.de
- Avoid load messages during rebuild of emacs spell menue
* Thu Mar 04 1999 - werner@suse.de
- Preparing for a better (x)emacs interface: Implement a
emacs lisp file to create the spell menus modular on the
fly in both emacs and xemacs Edit pulldown.
* Fri Nov 13 1998 - bs@suse.de
- fixed spec file (double entry Summary)
* Thu Nov 12 1998 - bs@suse.de
- fixed spec file for new rpm.
* Thu Sep 10 1998 - ro@suse.de
- catch redefinition of strcmp in ijoin.c
* Thu Jul 09 1998 - werner@suse.de
- Some preun scripts for ibritish and iamerica
* Thu Jul 09 1998 - werner@suse.de
- Split ispell into ispell for binaries and two
packages ibritish and iamerica (excluding each other)
* Fri Feb 06 1998 - werner@suse.de
- Move hk2-deutsch to igerman and dicts package
- Fix flag handling (flags [\]^_` are not reconginzed by isalpha)
- Fix bug in fix8bit (wrong handling of second figure of a hex number)
* Fri Oct 17 1997 - werner@suse.de
- Move description from pac to /usr/doc/packages/ispell
- Fix ispell.texinfo
* Thu Feb 06 1997 - werner@suse.de
- Repacked
- A small modification: Now there is an environment variable
CHARSET which will be used if and only if the environment variable
DICTIONARY is set. E.g. DICTIONARY=deutsch and CHARSET=latin1
Therefore `-T' is not needed ... `-n', `-t' and `-T'
overwrites CHARSET.