Group :: Text tools
RPM: aspell-fa
Main Changelog Spec Patches Sources Download Gear Bugs and FR Repocop
# BEGIN SourceDeps(oneline):
BuildRequires: unzip
# END SourceDeps(oneline)
# see https://bugzilla.altlinux.org/show_bug.cgi?id=10382
%define _localstatedir %{_var}
%define _enable_debug_packages %{nil}
%define debug_package %{nil}
# NOTE: the word list wrongly uses arabic kaf instead of farsi kaf,
# it is fixed trough a script in the make section (pablo)
%define src_ver 0.11-0
%define fname aspell6-%{languagecode}
%define aspell_ver 0.60
%define languageenglazy Persian
%define languagecode fa
%define lc_ctype fa_IR
Summary: %{languageenglazy} files for aspell
Name: aspell-%{languagecode}
Version: 0.11.0
Release: alt2_10
Group: Text tools
Source: http://ftp.gnu.org/gnu/aspell/dict/%{languagecode}/%{fname}-%{src_ver}.tar.bz2
URL: http://aspell.net/
License: GPL
Provides: spell-%{languagecode}
BuildRequires: aspell >= %{aspell_ver}
Requires: aspell >= %{aspell_ver}
# Mageia Stuff
Requires: locales-%{languagecode}
# aspell = 1, myspell = 2, lang-specific = 3
Provides: aspell-dictionary
Provides: aspell-%{lc_ctype}
Autoreqprov: no
Source44: import.info
%description
A %{languageenglazy} dictionary for use with aspell, a spelling checker.
%prep
%setup -q -n %{fname}-%{src_ver}
%build
# don't use configure macro
./configure
#%make
# the word list wrongly uses arabic kaf instead of farsi kaf, fixing it
cat << EOF > fixkaf.sh
#!/bin/bash
cat - | \
sed 's/ك/ک/g'
EOF
preunzip -c %{languagecode}.cwl | sh ./fixkaf.sh | (LC_ALL=C sort) > %{languagecode}.wl
aspell --lang=%{languagecode} create master ./%{languagecode}.rws < %{languagecode}.wl
%install
%makeinstall_std
chmod 644 Copyright README*
%files
%doc README* Copyright
%{_libdir}/aspell/*
%{_datadir}/aspell/*
%changelog
…
Full changelog you can see here
BuildRequires: unzip
# END SourceDeps(oneline)
# see https://bugzilla.altlinux.org/show_bug.cgi?id=10382
%define _localstatedir %{_var}
%define _enable_debug_packages %{nil}
%define debug_package %{nil}
# NOTE: the word list wrongly uses arabic kaf instead of farsi kaf,
# it is fixed trough a script in the make section (pablo)
%define src_ver 0.11-0
%define fname aspell6-%{languagecode}
%define aspell_ver 0.60
%define languageenglazy Persian
%define languagecode fa
%define lc_ctype fa_IR
Summary: %{languageenglazy} files for aspell
Name: aspell-%{languagecode}
Version: 0.11.0
Release: alt2_10
Group: Text tools
Source: http://ftp.gnu.org/gnu/aspell/dict/%{languagecode}/%{fname}-%{src_ver}.tar.bz2
URL: http://aspell.net/
License: GPL
Provides: spell-%{languagecode}
BuildRequires: aspell >= %{aspell_ver}
Requires: aspell >= %{aspell_ver}
# Mageia Stuff
Requires: locales-%{languagecode}
# aspell = 1, myspell = 2, lang-specific = 3
Provides: aspell-dictionary
Provides: aspell-%{lc_ctype}
Autoreqprov: no
Source44: import.info
%description
A %{languageenglazy} dictionary for use with aspell, a spelling checker.
%prep
%setup -q -n %{fname}-%{src_ver}
%build
# don't use configure macro
./configure
#%make
# the word list wrongly uses arabic kaf instead of farsi kaf, fixing it
cat << EOF > fixkaf.sh
#!/bin/bash
cat - | \
sed 's/ك/ک/g'
EOF
preunzip -c %{languagecode}.cwl | sh ./fixkaf.sh | (LC_ALL=C sort) > %{languagecode}.wl
aspell --lang=%{languagecode} create master ./%{languagecode}.rws < %{languagecode}.wl
%install
%makeinstall_std
chmod 644 Copyright README*
%files
%doc README* Copyright
%{_libdir}/aspell/*
%{_datadir}/aspell/*
%changelog
…
Full changelog you can see here