Sisyphus
: 1 2023 | : 18631 | : 37401842
en ru br
ALT
S:0.60.8-alt2
5.1: 0.60.6-alt1
4.1: 0.60.5-alt2
4.0: 0.60.5-alt2
3.0: 0.60.2-alt4
www.altlinux.org/Changes

::
: aspell

             Sources      Gear   Bugs and FR  Repocop 

%define src_ver 0.60
%define prever 3
Name: aspell
Version: 0.60.2
Release: alt4

Summary: An Open Source interactive spelling checker program
Summary(be_BY.UTF-8): Інтэрактыўная праграма праверкі правапісу
Summary(ru_RU.UTF-8): Интерактивная программа проверки правописания
License: LGPL
Group: Text tools
Url: http://%name.net/
Packager: Vital Khilko <vk at altlinux.ru>

Source: http://ftp.gnu.org/gnu/%name/%name-%src_ver.tar.gz
#Source100: cp1251.dat
Source101: %name-ispell.alternatives

BuildRequires: gcc-c++ libncurses-devel

%def_disable static

%description
GNU Aspell is a spell checker designed to eventually replace Ispell.
It can either be used as a library or as an independent spell checker.
Its main feature is that it does a much better job of coming up with
possible suggestions than just about any other spell checker out there
for the English language, including Ispell and Microsoft Word. It
also has many other technical enhancements over Ispell such as using
shared memory for dictionaries and intelligently handling personal
dictionaries when more than one Aspell process is open at once.

%description -l be_BY.UTF-8
GNU Aspell -- гэта праграма праверкі правапісу распрацаваная для замены Ispell.

%description -l ru_RU.UTF-8
GNU Aspell -- это программа проверки правописания разработанная для замены Ispell.

%package -n %name-ispell
Summary: Spell and Ispell compatibility scripts for Aspell
Summary(be_BY.UTF-8): Сцэнары, сумяшчальныя са стандартнымі праграмамі Spell і Ispell
Summary(ru_RU.UTF-8): Сценарии, совместимые со стандартными программами Spell и Ispell
Group: Text tools
PreReq: alternatives >= 0.0.6
BuildRequires: alternatives
Requires: %name = %version
Provides: ispell
Provides: /usr/bin/spell
Obsoletes: pspell-ispell

%description -n %name-ispell
Two simple scripts: Spell and Ispell compatibility scripts for Aspell.

%description -n %name-ispell -l be_BY.UTF-8
Прадастаўляе два простых сцэнары  для сумяшчальнасьці з паводзінамі праграмаў  Spell і Ispell.

%package -n lib%name
Summary: Shared libraries required for %name-based software
Summary(be_BY.UTF-8): Падзеленыя бібліятэкі для праграмнага забесьпячэньня што базіруецца на %name
Summary(ru_RU.UTF-8): Разделяемые библиотеки для программного обеспечения базирующегося на %name
Group: System/Libraries
Provides: libpspell
Obsoletes: libpspell

%description -n lib%name
Shared libraries required for %name-based software.

%description -n lib%name -l be_BY.UTF-8
Падзеленыя бібліятэкі для праграмнага забесьпячэньня што базіруецца на %name

%package -n lib%name-devel
Summary: Development files needed to build applications with %name
Summary(be_BY.UTF-8): Файлы распрацоўкі патрэбныя для пабудовы дастасаваньняў з %name
Summary(ru_RU.UTF-8): Файлы разработки для построения приложений с %name
Group: Development/C
Requires: lib%name = %version

%description -n lib%name-devel
Development files needed to build applications with %name.

%description -n lib%name-devel -l be_BY.UTF-8
Файлы распрацоўкі патрэбныя для пабудовы дастасаваньняў з %name

%package -n lib%name-devel-static
Summary: Static library needed to build static applications with %name
Summary(be_BY.UTF-8): Статычныя бібліятэкі патрэбныя для пабудовы статычных дастасаваньняў з %name
Summary(ru_RU.UTF-8): Файлы разработки для построения статических приложений с %name
Group: Development/C
Requires: lib%name-devel = %version

%description -n lib%name-devel-static
Static library needed to build statically linked applications with %name.

%description -n lib%name-devel-static -l be_BY.UTF-8
Статычныя бібліятэкі патрэбныя для пабудовы статычных дастасаваньняў з %name

%prep
%setup -q -n %name-%src_ver
#.%bugfix_ver

%build
#undefine __libtoolize
%configure %{subst_enable static} \
--enable-pkgdatadir=%_datadir/%name --enable-pkglibdir=%_libdir/%name
%make_build

%install
%make_install DESTDIR=$RPM_BUILD_ROOT install
#cp %SOURCE100 $RPM_BUILD_ROOT%_datadir/%name
ln -sf cp1251.cset $RPM_BUILD_ROOT/%_datadir/%name/windows-1251.cset
mv $RPM_BUILD_ROOT%_datadir/%name/ispell $RPM_BUILD_ROOT%_bindir/%name-ispell
mv $RPM_BUILD_ROOT%_datadir/%name/spell $RPM_BUILD_ROOT%_bindir/%name-spell
install -d $RPM_BUILD_ROOT%_altdir
install -p -m 644 %SOURCE101 $RPM_BUILD_ROOT%_altdir/%name-ispell

cp modules/filter/*.info $RPM_BUILD_ROOT%_libdir/%name/
rm -rf $RPM_BUILD_ROOT%_libdir/%name/*.la

%find_lang %name

%post -n lib%name -p %post_ldconfig
%postun -n lib%name -p %postun_ldconfig

%post -n %name-ispell
%register_alternatives %name-ispell -- ispell

%preun -n %name-ispell
%unregister_alternatives %name-ispell

%files -n lib%name
%_datadir/%name
%dir %_libdir/%name
%_libdir/*.so.*
%_libdir/%name/*

%files -n lib%name-devel
%_libdir/*.so
%_includedir/*
%_infodir/aspell-dev.*

%if_enabled static
%files -n lib%name-devel-static
%_libdir/*.a
%endif

%files -n %name-ispell
%_altdir/%name-ispell
%_bindir/%name-ispell
%_bindir/%name-spell

%files -f %name.lang
%doc README TODO
%_bindir/aspell
%_bindir/aspell-import
%_bindir/pspell-config
%_bindir/pre*
%_bindir/run-with-aspell
%_bindir/word-list-compress
%_mandir/man1/*
%_infodir/aspell.info.bz2
%_man1dir/aspell.1.gz

%changelog

changelog

 
: Vladimir Lettiev aka crux © 2004-2005, Andrew Avramenko aka liks © 2007-2008
: Michael Shigorin