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

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

%define src_ver 1.0
%define languagelocal francais
%define languageeng french
%define languagecode fr

Summary: French files for ispell
Summary(fr): Dictionnaire franц╖ais pour ispell
Name: ispell-%{languagecode}
Version: 1.0
Release: ipl12mdk.M24.15

#Packager: AEN <aen at altlinux.ru>


Url: http://www.unil.ch/ling/cp/frgut.html
Source: http://www.unil.ch/ling/cp/Francais-GUTenberg-v%{src_ver}.tar.bz2
License: GPL
Group: System/Internationalization

# Can't be noarch due to the byte order

#BuildArch: noarch
Autoreqprov: no

Requires: ispell
# the binary format changed with ispell 3.2.06
PreReq: ispell >= 3.2.06-2mdk
Provides: ispell-dictionary
BuildRequires: ispell

Obsoletes: ispell-francais-IREQ, ispell-french, ispell-francais
Obsoletes: ifrench

%description
ispell-fr is spelling data in French to be used by ispell program.
With this extension, you can compose a document in French 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.

%description -l fr
Ceci est le dictionnaire franц╖ais pour le correcteur
orthographique interactif de GNU ispell.

%prep
%setup -n Francais-GUTenberg-v%src_ver
# answer "oui" (yes) 10 times.
echo -e "o\no\no\no\no\no\no\no\no\no\n" | ./makehash
mv -f francais.dico %languagelocal.hash

%build
%install
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

%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
%doc ALIRE HISTORIQUE docs/*.* utils
%_libdir/ispell/*

%changelog

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

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