Group :: Ferramentas de texto
RPM: ispell-fr
Main Changelog Spec Patches Sources Download Gear Bugs e FR Repocop
%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}
Epoch:1
Version: 1.0
Release: alt2
Packager: Igor Vlasenko <viy 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: Text tools
# 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
…
Todas as alterações você pod ver aqui
%define languagelocal francais
%define languageeng french
%define languagecode fr
Summary: French files for ispell
Summary(fr): Dictionnaire français pour ispell
Name: ispell-%{languagecode}
Epoch:1
Version: 1.0
Release: alt2
Packager: Igor Vlasenko <viy 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: Text tools
# 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
…
Todas as alterações você pod ver aqui