Репозиторий Sisyphus
Последнее обновление: 1 октября 2023 | Пакетов: 18631 | Посещений: 37047493
en ru br
Репозитории ALT
S:1.1-alt8
5.1: 1.1-alt5
4.1: 1.1-alt5
4.0: 1.1-alt5
3.0: 1.1-alt5
www.altlinux.org/Changes

Группа :: Система/Интернационализация
Пакет: 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: alt5

Summary: Russian dictionary for ispell -- KOI8-R encoding
Summary(ru_RU.UTF-8): п║п╩п╬п╡п╟я─я▄ я─я┐я│я│п╨п╬пЁп╬ я▐п╥я▀п╨п╟ п╢п╩я▐ ispell -- п╨п╬п╢п╦я─п╬п╡п╨п╟ KOI8-R
License: GPL
Group: System/Internationalization

Packager: Sergey Vlasov <vsu at altlinux.ru>

# 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

Source100: %name.alternatives
Source101: %name-cp1251.alternatives
Source102: aspell-ru-rk.alternatives

PreReq: alternatives >= 0.0.6
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: System/Internationalization
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: System/Internationalization
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
%__install -p -m 644 %SOURCE100 $RPM_BUILD_ROOT%_altdir/%name
%__install -p -m 644 %SOURCE101 $RPM_BUILD_ROOT%_altdir/%name-cp1251
%__install -p -m 644 %SOURCE102 $RPM_BUILD_ROOT%_altdir/aspell-ru-rk


%post
%register_alternatives %name -- ispell-ru ispell-ru.aff

%triggerpostun -- ispell-ru, ispell-ru-rk < 1.1-alt2
%register_alternatives %name -- ispell-ru ispell-ru.aff

%preun
%unregister_alternatives %name


%post cp1251
%register_alternatives %name-cp1251 -- ispell-ru-cp1251 ispell-ru-cp1251.aff

%triggerpostun cp1251 -- ispell-ru-cp1251, ispell-ru-rk-cp1251 < 1.1-alt2
%register_alternatives %name-cp1251 -- ispell-ru-cp1251 ispell-ru-cp1251.aff

%preun cp1251
%unregister_alternatives %name-cp1251


%post -n aspell-ru-rk
%register_alternatives aspell-ru-rk -- aspell-ru aspell-ru.multi

%triggerpostun -n aspell-ru-rk -- aspell-ru, aspell-ru-rk < 1.1-alt2
%register_alternatives aspell-ru-rk -- aspell-ru aspell-ru.multi

%preun -n aspell-ru-rk
%unregister_alternatives aspell-ru-rk

%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/*
%_datadir/aspell/*

%changelog

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

 
дизайн и разработка: Vladimir Lettiev aka crux © 2004-2005, Andrew Avramenko aka liks © 2007-2008
текущий майнтейнер: Michael Shigorin