%define src_ver 1.1a %define languagelocal norsk %define languageeng norwegian %define languagecode no Summary: Norwegian files for ispell Name: ispell-%{languagecode} Version: 1.1a Release: 8mdk URL: http://www.uio.no/~runekl/dictionary.html Source: http://www.uio.no/~runekl/ispell-norsk-%{src_ver}.tar.bz2 Copyright: GPL Group: System/Internationalization BuildRoot: %{_tmppath}/%{name}-buildroot Prefix: %{_prefix} BuildArchitectures: noarch Autoreqprov: no Requires: locales-%{languagecode} Requires: ispell Provides: ispell-dictionary Obsoletes: inorsk Obsoletes: ispell-norsk Obsoletes: ispell-norwegian %description ispell-no is spelling data in Norwegian which used by ispell program. With this extension, you can compose a document in Norwegian and check for the typos easily. Ispell can be used directly from command line to check a file; or used by several text dealing programs, like LyX, etc. %prep %setup -q -c mv norsk.7bit norsk.aff cat norsk.base norsk.matte norsk.olje norsk.skole > norsk.sml mv -f norsk.sml %{languagelocal}.hash %build %install rm -rf $RPM_BUILD_ROOT mkdir -p $RPM_BUILD_ROOT%{_libdir}/ispell install -m 644 %{languagelocal}.aff $RPM_BUILD_ROOT%{_libdir}/ispell/%{languagelocal}.aff install -m 644 %{languagelocal}.hash $RPM_BUILD_ROOT%{_libdir}/ispell/%{languagelocal}.hash # LaTeX babel if [ "%{languagelocal}" != "%{languageeng}" ];then cd $RPM_BUILD_ROOT%{_libdir}/ispell ln -s %{languagelocal}.aff %{languageeng}.aff ln -s %{languagelocal}.hash %{languageeng}.hash fi %clean rm -rf $RPM_BUILD_ROOT %post cd %{_libdir}/ispell mv -f %{languagelocal}.hash %{languagelocal}.ispell buildhash %{languagelocal}.ispell %{languagelocal}.aff %{languagelocal}.hash &> /dev/null rm -f %{languagelocal}.ispell.stat %{languagelocal}.ispell.cnt %{languagelocal}.ispell %files %defattr(644, root, root,755) %doc COPYING README* %{_libdir}/ispell/* %changelog * Sat Aug 26 2000 Troels Liebe Bentsen <tlb@iname.com> 1.1a-8mdk - Small fix to the spec, no output on buildhash. * Sun Aug 13 2000 Troels Liebe Bentsen <tlb@iname.com> 1.1a-7mdk - Cleaned up the spec and moved to standard template. * Tue Jul 25 2000 Thierry Vignaud <tvignaud@mandrakesoft.com> 1.1a-6mdk - BM * Thu Mar 30 2000 Pablo Saratxaga <pablo@mandrakesoft.com> 1.1a-5mdk - adapted to new Group: naming * Wed Jan 12 2000 Pablo Saratxaga <pablo@mandrakesoft.com> - added Provides: ispell-dictionary * Mon Dec 06 1999 Pablo Saratxaga <pablo@mandrakesoft.com> - added Obsoletes: for easier installation over other rpms of same language - changed name to ispell-no for standardization * Fri Oct 22 1999 Pablo Saratxaga <pablo@mandrakesoft.com> - fixed permissions problem of /usr/doc/%{name} * Thu Oct 21 1999 Pablo Saratxaga <pablo@mandrakesoft.com> - rebuild with ispell-3.1.20-7mdk (which uses a MASKBITS of 64) * Mon Sep 06 1999 Pablo Saratxaga <pablo@mandrakesoft.com> - First version for Mandrake