Репозитории ALT
Группа :: Работа с текстами
Пакет: ispell-ru-rk
Главная Изменения Спек Патчи Sources Загрузить Gear Bugs and FR Repocop
%define ispelldir %_libdir/ispell
%define ispell_version 3.2.06
%define aspell_version 0.60.0
Name: ispell-ru-rk
Version: 1.1
Release: alt8
Summary: Russian dictionary for ispell -- KOI8-R encoding
Summary(ru_RU.UTF-8): п║п╩п╬п╡п╟я─я▄ я─я┐я│я│п╨п╬пЁп╬ я▐п╥я▀п╨п╟ п╢п╩я▐ ispell -- п╨п╬п╢п╦я─п╬п╡п╨п╟ KOI8-R
License: GPL
Group: Text tools
# Note: ispell and aspell hash files are architecture-dependent.
# Do not put BuildArch: noarch here.
Source0: ispell-rus-1.1.tar.bz2
Source2: russianw.aff
Source3: ispell-rus-aspellfiles-0.3.tar.bz2
PreReq: alternatives >= 0.4
Requires: ispell >= %ispell_version
Provides: ispell-dictionary, ispell-ru = %version
Obsoletes: russian, ispell-rus, ispell-russian, rispell, ispell-ru
# Automatically added by buildreq on Sat Nov 22 2003
BuildRequires: aspell ispell libalternatives-devel
BuildPreReq: ispell >= %ispell_version
BuildPreReq: aspell >= %aspell_version
# The real ispell is required - not the aspell-provided emulation.
BuildConflicts: aspell-ispell
%package cp1251
Summary: Russian dictionary for ispell -- CP1251 encoding
Summary(ru_RU.UTF-8): п║п╩п╬п╡п╟я─я▄ я─я┐я│я│п╨п╬пЁп╬ я▐п╥я▀п╨п╟ п╢п╩я▐ ispell -- п╨п╬п╢п╦я─п╬п╡п╨п╟ CP1251
Group: Text tools
PreReq: alternatives >= 0.0.6
Requires: ispell >= %ispell_version
Provides: ispell-dictionary, ispell-ru-cp1251 = %version
Obsoletes: irussian, ispell-rus, ispell-russian, rispell, ispell-ru-cp1251
%package -n aspell-ru-rk
Summary: Russian dictionary for GNU Aspell
Summary(ru_RU.UTF-8): п║п╩п╬п╡п╟я─я▄ я─я┐я│я│п╨п╬пЁп╬ я▐п╥я▀п╨п╟ п╢п╩я▐ GNU Aspell
Group: Text tools
PreReq: alternatives >= 0.0.6
Requires: aspell >= %aspell_version
Provides: aspell-dictionary, aspell-ru = %version
Obsoletes: aspell-ru
%description
Russian dictionary for ispell in KOI8-R encoding, created by
Vladimir Roganov and Konstantin Knizhnik.
This dictionary is installed under the name "russian-rk". Default
Russian dictionary in KOI8-R encoding (with the name "russian") is
selected using the alternatives subsystem.
%description -l ru_RU.UTF-8
п║п╩п╬п╡п╟я─я▄ я─я┐я│я│п╨п╬пЁп╬ я▐п╥я▀п╨п╟ п╢п╩я▐ ispell п╡ п╨п╬п╢п╦я─п╬п╡п╨п╣ KOI8-R, п©п╬п╢пЁп╬я┌п╬п╡п╩п╣п╫п╫я▀п╧
п▓п╩п╟п╢п╦п╪п╦я─п╬п╪ п═п╬пЁп╟п╫п╬п╡я▀п╪ п╦ п п╬п╫я│я┌п╟п╫я┌п╦п╫п╬п╪ п п╫п╦п╤п╫п╦п╨п╬п╪.
п╜я┌п╬я┌ я│п╩п╬п╡п╟я─я▄ я┐я│я┌п╟п╫п╟п╡п╩п╦п╡п╟п╣я┌я│я▐ п©п╬п╢ п╦п╪п╣п╫п╣п╪ "russian-rk". п║п╩п╬п╡п╟я─я▄ п╢п╩я▐
п©я─п╬п╡п╣я─п╨п╦ я─я┐я│я│п╨п╦я┘ я┌п╣п╨я│я┌п╬п╡ п╡ п╨п╬п╢п╦я─п╬п╡п╨п╣ KOI8-R п©п╬ я┐п╪п╬п╩я┤п╟п╫п╦я▌ (я│ п╦п╪п╣п╫п╣п╪
"russian") п╡я▀п╠п╦я─п╟п╣я┌я│я▐ я│ п©п╬п╪п╬я┴я▄я▌ п©п╬п╢я│п╦я│я┌п╣п╪я▀ п╟п╩я▄я┌п╣я─п╫п╟я┌п╦п╡.
%description cp1251
Russian dictionary for ispell in CP1251 encoding, created by
Vladimir Roganov and Konstantin Knizhnik.
This dictionary is installed under the name "russianw-rk". Default
Russian dictionary in CP1251 encoding (with the name "russianw") is
selected using the alternatives subsystem.
%description cp1251 -l ru_RU.UTF-8
п║п╩п╬п╡п╟я─я▄ я─я┐я│я│п╨п╬пЁп╬ я▐п╥я▀п╨п╟ п╢п╩я▐ ispell п╡ п╨п╬п╢п╦я─п╬п╡п╨п╣ CP1251, п©п╬п╢пЁп╬я┌п╬п╡п╩п╣п╫п╫я▀п╧
п▓п╩п╟п╢п╦п╪п╦я─п╬п╪ п═п╬пЁп╟п╫п╬п╡я▀п╪ п╦ п п╬п╫я│я┌п╟п╫я┌п╦п╫п╬п╪ п п╫п╦п╤п╫п╦п╨п╬п╪.
п╜я┌п╬я┌ я│п╩п╬п╡п╟я─я▄ я┐я│я┌п╟п╫п╟п╡п╩п╦п╡п╟п╣я┌я│я▐ п©п╬п╢ п╦п╪п╣п╫п╣п╪ "russianw-rk". п║п╩п╬п╡п╟я─я▄ п╢п╩я▐
п©я─п╬п╡п╣я─п╨п╦ я─я┐я│я│п╨п╦я┘ я┌п╣п╨я│я┌п╬п╡ п╡ п╨п╬п╢п╦я─п╬п╡п╨п╣ CP1251 п©п╬ я┐п╪п╬п╩я┤п╟п╫п╦я▌ (я│ п╦п╪п╣п╫п╣п╪
"russianw") п╡я▀п╠п╦я─п╟п╣я┌я│я▐ я│ п©п╬п╪п╬я┴я▄я▌ п©п╬п╢я│п╦я│я┌п╣п╪я▀ п╟п╩я▄я┌п╣я─п╫п╟я┌п╦п╡.
%description -n aspell-ru-rk
Russian dictionary for use with GNU Aspell. The word list for this
dictionary was created by Vladimir Roganov and Konstantin Knizhnik.
This dictionary is installed under the name "ru-rk". Default Russian
dictionary for GNU Aspell (with the name "ru") is selected using the
alternatives subsystem.
%description -n aspell-ru-rk -l ru_RU.UTF-8
п║п╩п╬п╡п╟я─я▄ я─я┐я│я│п╨п╬пЁп╬ я▐п╥я▀п╨п╟ п╢п╩я▐ GNU Aspell п╫п╟ п╬я│п╫п╬п╡п╣ я│п©п╦я│п╨п╟ я│п╩п╬п╡,
п©п╬п╢пЁп╬я┌п╬п╡п╩п╣п╫п╫п╬пЁп╬ п▓п╩п╟п╢п╦п╪п╦я─п╬п╪ п═п╬пЁп╟п╫п╬п╡я▀п╪ п╦ п п╬п╫я│я┌п╟п╫я┌п╦п╫п╬п╪ п п╫п╦п╤п╫п╦п╨п╬п╪.
п╜я┌п╬я┌ я│п╩п╬п╡п╟я─я▄ я┐я│я┌п╟п╫п╟п╡п╩п╦п╡п╟п╣я┌я│я▐ п©п╬п╢ п╦п╪п╣п╫п╣п╪ "ru-rk". п║п╩п╬п╡п╟я─я▄ п╢п╩я▐ п©я─п╬п╡п╣я─п╨п╦
я─я┐я│я│п╨п╦я┘ я┌п╣п╨я│я┌п╬п╡ п©п╬ я┐п╪п╬п╩я┤п╟п╫п╦я▌ (я│ п╦п╪п╣п╫п╣п╪ "ru") п╡я▀п╠п╦я─п╟п╣я┌я│я▐ я│ п©п╬п╪п╬я┴я▄я▌
п©п╬п╢я│п╦я│я┌п╣п╪я▀ п╟п╩я▄я┌п╣я─п╫п╟я┌п╦п╡.
%prep
%setup -n ispell-rus-%version -a 3
cp -a %SOURCE2 russianw.aff
%build
# ispell, KOI8-R
make all
# ispell, CP1251
iconv -f koi8-r -t cp1251 <russian.sml >russianw.sml
buildhash russianw.sml russianw.aff russianw.hash
pushd docs
for f in *.russian; do
iconv -f koi8-r -t cp1251 <"$f" >"$f"w
done
popd
# aspell
ispell -d ./russian.hash -e <russian.sml | \
tr ' ' '\n' | grep -v '^$' | \
aspell --lang=ru-rk create master ./ru-rk.rws
%install
mkdir -p $RPM_BUILD_ROOT%ispelldir
cp -avf russian.aff $RPM_BUILD_ROOT%ispelldir/russian-rk.aff
cp -avf russian.hash $RPM_BUILD_ROOT%ispelldir/russian-rk.hash
cp -avf russianw.aff $RPM_BUILD_ROOT%ispelldir/russianw-rk.aff
cp -avf russianw.hash $RPM_BUILD_ROOT%ispelldir/russianw-rk.hash
mkdir -p $RPM_BUILD_ROOT%_libdir/aspell
mkdir -p $RPM_BUILD_ROOT%_datadir/aspell
install -p -m 644 ru-rk.rws $RPM_BUILD_ROOT%_libdir/aspell
install -p -m 644 ru-rk.multi $RPM_BUILD_ROOT%_libdir/aspell
install -p -m 644 russian-rk.alias $RPM_BUILD_ROOT%_libdir/aspell
install -p -m 644 ru-rk.dat $RPM_BUILD_ROOT%_datadir/aspell
install -p -m 644 ru-rk_phonet.dat $RPM_BUILD_ROOT%_datadir/aspell
install -d $RPM_BUILD_ROOT%_altdir
cat > $RPM_BUILD_ROOT%_altdir/%name <<'EOF'
%ispelldir/russian.hash %ispelldir/russian-rk.hash 10
%ispelldir/russian.aff %ispelldir/russian-rk.aff %ispelldir/russian-rk.hash
EOF
cat > $RPM_BUILD_ROOT%_altdir/%name-cp1251 <<'EOF'
%ispelldir/russianw.hash %ispelldir/russianw-rk.hash 10
%ispelldir/russianw.aff %ispelldir/russianw-rk.aff %ispelldir/russianw-rk.hash
EOF
cat > $RPM_BUILD_ROOT%_altdir/aspell-ru-rk <<'EOF'
%_libdir/aspell/ru.multi %_libdir/aspell/ru-rk.multi 10
%_libdir/aspell/russian.alias %_libdir/aspell/russian-rk.alias %_libdir/aspell/ru-rk.multi
EOF
cat > %buildroot%_altdir/aspell-ru-rk-dat << EOF
/usr/share/aspell/ru.dat /usr/share/aspell/ru-rk.dat 10
/usr/share/aspell/ru_phonet.dat /usr/share/aspell/ru-rk_phonet.dat /usr/share/aspell/ru-rk.dat
EOF
%files
%doc docs/Readme.russian
%doc docs/copyright
%doc docs/cyrispell
%doc docs/readme.makedict
%doc docs/INSTALL.russian
%_altdir/%name
%ispelldir/russian-rk.*
%files cp1251
%doc docs/Readme.russianw
%doc docs/copyright
%doc docs/cyrispell
%doc docs/readme.makedict
%doc docs/INSTALL.russianw
%_altdir/%name-cp1251
%ispelldir/russianw-rk.*
%files -n aspell-ru-rk
%doc docs/Readme.russian
%doc docs/copyright
%doc LICENSE.phonet
%_altdir/aspell-ru-rk
%_libdir/aspell/*
%_altdir/aspell-ru-rk-dat
%_datadir/aspell/*
%changelog
…
Полный changelog можно просмотреть здесь
%define ispell_version 3.2.06
%define aspell_version 0.60.0
Name: ispell-ru-rk
Version: 1.1
Release: alt8
Summary: Russian dictionary for ispell -- KOI8-R encoding
Summary(ru_RU.UTF-8): п║п╩п╬п╡п╟я─я▄ я─я┐я│я│п╨п╬пЁп╬ я▐п╥я▀п╨п╟ п╢п╩я▐ ispell -- п╨п╬п╢п╦я─п╬п╡п╨п╟ KOI8-R
License: GPL
Group: Text tools
# Note: ispell and aspell hash files are architecture-dependent.
# Do not put BuildArch: noarch here.
Source0: ispell-rus-1.1.tar.bz2
Source2: russianw.aff
Source3: ispell-rus-aspellfiles-0.3.tar.bz2
PreReq: alternatives >= 0.4
Requires: ispell >= %ispell_version
Provides: ispell-dictionary, ispell-ru = %version
Obsoletes: russian, ispell-rus, ispell-russian, rispell, ispell-ru
# Automatically added by buildreq on Sat Nov 22 2003
BuildRequires: aspell ispell libalternatives-devel
BuildPreReq: ispell >= %ispell_version
BuildPreReq: aspell >= %aspell_version
# The real ispell is required - not the aspell-provided emulation.
BuildConflicts: aspell-ispell
%package cp1251
Summary: Russian dictionary for ispell -- CP1251 encoding
Summary(ru_RU.UTF-8): п║п╩п╬п╡п╟я─я▄ я─я┐я│я│п╨п╬пЁп╬ я▐п╥я▀п╨п╟ п╢п╩я▐ ispell -- п╨п╬п╢п╦я─п╬п╡п╨п╟ CP1251
Group: Text tools
PreReq: alternatives >= 0.0.6
Requires: ispell >= %ispell_version
Provides: ispell-dictionary, ispell-ru-cp1251 = %version
Obsoletes: irussian, ispell-rus, ispell-russian, rispell, ispell-ru-cp1251
%package -n aspell-ru-rk
Summary: Russian dictionary for GNU Aspell
Summary(ru_RU.UTF-8): п║п╩п╬п╡п╟я─я▄ я─я┐я│я│п╨п╬пЁп╬ я▐п╥я▀п╨п╟ п╢п╩я▐ GNU Aspell
Group: Text tools
PreReq: alternatives >= 0.0.6
Requires: aspell >= %aspell_version
Provides: aspell-dictionary, aspell-ru = %version
Obsoletes: aspell-ru
%description
Russian dictionary for ispell in KOI8-R encoding, created by
Vladimir Roganov and Konstantin Knizhnik.
This dictionary is installed under the name "russian-rk". Default
Russian dictionary in KOI8-R encoding (with the name "russian") is
selected using the alternatives subsystem.
%description -l ru_RU.UTF-8
п║п╩п╬п╡п╟я─я▄ я─я┐я│я│п╨п╬пЁп╬ я▐п╥я▀п╨п╟ п╢п╩я▐ ispell п╡ п╨п╬п╢п╦я─п╬п╡п╨п╣ KOI8-R, п©п╬п╢пЁп╬я┌п╬п╡п╩п╣п╫п╫я▀п╧
п▓п╩п╟п╢п╦п╪п╦я─п╬п╪ п═п╬пЁп╟п╫п╬п╡я▀п╪ п╦ п п╬п╫я│я┌п╟п╫я┌п╦п╫п╬п╪ п п╫п╦п╤п╫п╦п╨п╬п╪.
п╜я┌п╬я┌ я│п╩п╬п╡п╟я─я▄ я┐я│я┌п╟п╫п╟п╡п╩п╦п╡п╟п╣я┌я│я▐ п©п╬п╢ п╦п╪п╣п╫п╣п╪ "russian-rk". п║п╩п╬п╡п╟я─я▄ п╢п╩я▐
п©я─п╬п╡п╣я─п╨п╦ я─я┐я│я│п╨п╦я┘ я┌п╣п╨я│я┌п╬п╡ п╡ п╨п╬п╢п╦я─п╬п╡п╨п╣ KOI8-R п©п╬ я┐п╪п╬п╩я┤п╟п╫п╦я▌ (я│ п╦п╪п╣п╫п╣п╪
"russian") п╡я▀п╠п╦я─п╟п╣я┌я│я▐ я│ п©п╬п╪п╬я┴я▄я▌ п©п╬п╢я│п╦я│я┌п╣п╪я▀ п╟п╩я▄я┌п╣я─п╫п╟я┌п╦п╡.
%description cp1251
Russian dictionary for ispell in CP1251 encoding, created by
Vladimir Roganov and Konstantin Knizhnik.
This dictionary is installed under the name "russianw-rk". Default
Russian dictionary in CP1251 encoding (with the name "russianw") is
selected using the alternatives subsystem.
%description cp1251 -l ru_RU.UTF-8
п║п╩п╬п╡п╟я─я▄ я─я┐я│я│п╨п╬пЁп╬ я▐п╥я▀п╨п╟ п╢п╩я▐ ispell п╡ п╨п╬п╢п╦я─п╬п╡п╨п╣ CP1251, п©п╬п╢пЁп╬я┌п╬п╡п╩п╣п╫п╫я▀п╧
п▓п╩п╟п╢п╦п╪п╦я─п╬п╪ п═п╬пЁп╟п╫п╬п╡я▀п╪ п╦ п п╬п╫я│я┌п╟п╫я┌п╦п╫п╬п╪ п п╫п╦п╤п╫п╦п╨п╬п╪.
п╜я┌п╬я┌ я│п╩п╬п╡п╟я─я▄ я┐я│я┌п╟п╫п╟п╡п╩п╦п╡п╟п╣я┌я│я▐ п©п╬п╢ п╦п╪п╣п╫п╣п╪ "russianw-rk". п║п╩п╬п╡п╟я─я▄ п╢п╩я▐
п©я─п╬п╡п╣я─п╨п╦ я─я┐я│я│п╨п╦я┘ я┌п╣п╨я│я┌п╬п╡ п╡ п╨п╬п╢п╦я─п╬п╡п╨п╣ CP1251 п©п╬ я┐п╪п╬п╩я┤п╟п╫п╦я▌ (я│ п╦п╪п╣п╫п╣п╪
"russianw") п╡я▀п╠п╦я─п╟п╣я┌я│я▐ я│ п©п╬п╪п╬я┴я▄я▌ п©п╬п╢я│п╦я│я┌п╣п╪я▀ п╟п╩я▄я┌п╣я─п╫п╟я┌п╦п╡.
%description -n aspell-ru-rk
Russian dictionary for use with GNU Aspell. The word list for this
dictionary was created by Vladimir Roganov and Konstantin Knizhnik.
This dictionary is installed under the name "ru-rk". Default Russian
dictionary for GNU Aspell (with the name "ru") is selected using the
alternatives subsystem.
%description -n aspell-ru-rk -l ru_RU.UTF-8
п║п╩п╬п╡п╟я─я▄ я─я┐я│я│п╨п╬пЁп╬ я▐п╥я▀п╨п╟ п╢п╩я▐ GNU Aspell п╫п╟ п╬я│п╫п╬п╡п╣ я│п©п╦я│п╨п╟ я│п╩п╬п╡,
п©п╬п╢пЁп╬я┌п╬п╡п╩п╣п╫п╫п╬пЁп╬ п▓п╩п╟п╢п╦п╪п╦я─п╬п╪ п═п╬пЁп╟п╫п╬п╡я▀п╪ п╦ п п╬п╫я│я┌п╟п╫я┌п╦п╫п╬п╪ п п╫п╦п╤п╫п╦п╨п╬п╪.
п╜я┌п╬я┌ я│п╩п╬п╡п╟я─я▄ я┐я│я┌п╟п╫п╟п╡п╩п╦п╡п╟п╣я┌я│я▐ п©п╬п╢ п╦п╪п╣п╫п╣п╪ "ru-rk". п║п╩п╬п╡п╟я─я▄ п╢п╩я▐ п©я─п╬п╡п╣я─п╨п╦
я─я┐я│я│п╨п╦я┘ я┌п╣п╨я│я┌п╬п╡ п©п╬ я┐п╪п╬п╩я┤п╟п╫п╦я▌ (я│ п╦п╪п╣п╫п╣п╪ "ru") п╡я▀п╠п╦я─п╟п╣я┌я│я▐ я│ п©п╬п╪п╬я┴я▄я▌
п©п╬п╢я│п╦я│я┌п╣п╪я▀ п╟п╩я▄я┌п╣я─п╫п╟я┌п╦п╡.
%prep
%setup -n ispell-rus-%version -a 3
cp -a %SOURCE2 russianw.aff
%build
# ispell, KOI8-R
make all
# ispell, CP1251
iconv -f koi8-r -t cp1251 <russian.sml >russianw.sml
buildhash russianw.sml russianw.aff russianw.hash
pushd docs
for f in *.russian; do
iconv -f koi8-r -t cp1251 <"$f" >"$f"w
done
popd
# aspell
ispell -d ./russian.hash -e <russian.sml | \
tr ' ' '\n' | grep -v '^$' | \
aspell --lang=ru-rk create master ./ru-rk.rws
%install
mkdir -p $RPM_BUILD_ROOT%ispelldir
cp -avf russian.aff $RPM_BUILD_ROOT%ispelldir/russian-rk.aff
cp -avf russian.hash $RPM_BUILD_ROOT%ispelldir/russian-rk.hash
cp -avf russianw.aff $RPM_BUILD_ROOT%ispelldir/russianw-rk.aff
cp -avf russianw.hash $RPM_BUILD_ROOT%ispelldir/russianw-rk.hash
mkdir -p $RPM_BUILD_ROOT%_libdir/aspell
mkdir -p $RPM_BUILD_ROOT%_datadir/aspell
install -p -m 644 ru-rk.rws $RPM_BUILD_ROOT%_libdir/aspell
install -p -m 644 ru-rk.multi $RPM_BUILD_ROOT%_libdir/aspell
install -p -m 644 russian-rk.alias $RPM_BUILD_ROOT%_libdir/aspell
install -p -m 644 ru-rk.dat $RPM_BUILD_ROOT%_datadir/aspell
install -p -m 644 ru-rk_phonet.dat $RPM_BUILD_ROOT%_datadir/aspell
install -d $RPM_BUILD_ROOT%_altdir
cat > $RPM_BUILD_ROOT%_altdir/%name <<'EOF'
%ispelldir/russian.hash %ispelldir/russian-rk.hash 10
%ispelldir/russian.aff %ispelldir/russian-rk.aff %ispelldir/russian-rk.hash
EOF
cat > $RPM_BUILD_ROOT%_altdir/%name-cp1251 <<'EOF'
%ispelldir/russianw.hash %ispelldir/russianw-rk.hash 10
%ispelldir/russianw.aff %ispelldir/russianw-rk.aff %ispelldir/russianw-rk.hash
EOF
cat > $RPM_BUILD_ROOT%_altdir/aspell-ru-rk <<'EOF'
%_libdir/aspell/ru.multi %_libdir/aspell/ru-rk.multi 10
%_libdir/aspell/russian.alias %_libdir/aspell/russian-rk.alias %_libdir/aspell/ru-rk.multi
EOF
cat > %buildroot%_altdir/aspell-ru-rk-dat << EOF
/usr/share/aspell/ru.dat /usr/share/aspell/ru-rk.dat 10
/usr/share/aspell/ru_phonet.dat /usr/share/aspell/ru-rk_phonet.dat /usr/share/aspell/ru-rk.dat
EOF
%files
%doc docs/Readme.russian
%doc docs/copyright
%doc docs/cyrispell
%doc docs/readme.makedict
%doc docs/INSTALL.russian
%_altdir/%name
%ispelldir/russian-rk.*
%files cp1251
%doc docs/Readme.russianw
%doc docs/copyright
%doc docs/cyrispell
%doc docs/readme.makedict
%doc docs/INSTALL.russianw
%_altdir/%name-cp1251
%ispelldir/russianw-rk.*
%files -n aspell-ru-rk
%doc docs/Readme.russian
%doc docs/copyright
%doc LICENSE.phonet
%_altdir/aspell-ru-rk
%_libdir/aspell/*
%_altdir/aspell-ru-rk-dat
%_datadir/aspell/*
%changelog
…
Полный changelog можно просмотреть здесь