-Summary: Aspell is an Open Source spell checker
-Summary(pl): Aspell jest kontrolerem pisowni
+Summary: GNU Aspell is an Open Source spell checker
+Summary(pl): GNU Aspell jest kontrolerem pisowni
+Summary(pt_BR): Verificador ortográfico
Name: aspell
-Version: .27.2
-Release: 3
-Epoch: 1
+Version: 0.50.5
+Release: 2
+Epoch: 2
License: LGPL
Group: Applications/Text
-Group(de): Applikationen/Text
-Group(fr): Utilitaires/Texte
-Group(pl): Aplikacje/Tekst
-Vendor: Kevin Atkinson <kevinatk@home.com>
-Source0: http://metalab.unc.edu/kevina/aspell/%{name}-%{version}.tar.gz
-URL: http://metalab.unc.edu/kevina/aspell/
+Vendor: Kevin Atkinson <kevina@gnu.org>
+Source0: http://aspell.net/%{name}-%{version}.tar.gz
+# Source0-md5: 14403d2ea5ded5d3fc9bb259bf65aab5
+# Security patch from gentoo: http://www.gentoo.org/cgi-bin/viewcvs.cgi/app-text/aspell/files/aspell-buffer-fix.patch
+# ref.: http://securitytracker.com/alerts/2004/Jun/1010435.html
+Patch0: %{name}-buffer-fix.patch
+URL: http://aspell.net/
+BuildRequires: autoconf
+BuildRequires: automake
+BuildRequires: gettext-devel
BuildRequires: libstdc++-devel
-Provides: ispell
-Obsoletes: ispell
+BuildRequires: libtool >= 2:1.5
+Provides: pspell = %{epoch}:%{version}-%{release}
+Obsoletes: libaspell15
+Obsoletes: pspell
BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
%description
-Aspell is an Open Source spell checker designed to eventually replace
-Ispell. Its main feature is that it does a much better job of coming
-up with possible suggestions than Ispell does. In fact recent tests
-shows that it even does better than Microsoft Word 97's spell checker
-in some cases. In addition it has both compile time and run time
-support for other non English languages. Aspell also doubles as a
-powerful C++ library with C and Perl interfaces in the works.
+GNU Aspell is a Free and Open Source 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 pl
-Aspell jest kontrolerem pisowni zaprojektowanym tak, by móc zast±piæ
-ispell'a. Dodatkowo zawiera wsparcie dla innych jêzyków ni¿ angielski.
-Interfejs aspella napisany zosta³ w C++, a interfejsy w Perlu i C s±
-aktualnie rozwijane.
+GNU Aspell jest kontrolerem pisowni zaprojektowanym tak, by móc
+zast±piæ ispella. Dodatkowo zawiera wsparcie dla innych jêzyków ni¿
+angielski. Interfejs aspella napisany zosta³ w C++, a interfejsy w
+Perlu i C s± aktualnie rozwijane.
+
+%description -l pt_BR
+GNU Aspell é um verificador ortográfico criado para substituir o
+antigo "ispell". Sua principal vantagem (sobre o Ispell) é uma melhor
+sugestão de correções. Aspell inclui suporte a vários idiomas e pode
+fazer a checagem de arquivos LaTeX e HTML.
%package devel
-Summary: Libraries and header files for aspell development
-Summary(pl): Biblioteki i pliki nag³ówkowe dla developerów aspella
+Summary: Header files for aspell development
+Summary(pl): Pliki nag³ówkowe dla programistów u¿ywaj±cych aspella
+Summary(pt_BR): Arquivos para desenvolvimento usando Aspell
Group: Development/Libraries
-Group(de): Entwicklung/Libraries
-Group(fr): Development/Librairies
-Group(pl): Programowanie/Biblioteki
-Epoch: %{serial}
-Requires: %{name} = %{version}
+Requires: %{name} = %{epoch}:%{version}-%{release}
+Provides: pspell-devel = %{epoch}:%{version}-%{release}
+Obsoletes: libaspell15-devel
+Obsoletes: pspell-devel
%description devel
-Aspell is an Open Source spell checker.
+Aspell is an Open Source spell checker. This package contains header
+files for aspell development.
-Libraries and header files for aspell development.
+%description devel -l pl
+Aspell jest kontrolerem pisowni. Ten pakiet zawiera pliki nag³ówkowe
+dla programistów u¿ywaj±cych bibliotek aspella.
-%description -l pl devel
-Aspell jest kontrolerem pisowni. Pakiet ten zawiera biblioteki i pliki
-nag³ówkowe dla developerów aspella.
+%description devel -l pt_BR
+Aspell é um corretor ortográfico. O pacote -devel inclui bibliotecas
+dinâmicas e arquivos de inclusão necessários para o desenvolvimento
+utilizando o aspell.
%package static
-Summary: Static Libraries for aspell development
-Summary(pl): Biblioteki statyczne dla developerów aspella
+Summary: Static libraries for aspell development
+Summary(pl): Biblioteki statyczne aspella
+Summary(pt_BR): Bibliotecas estáticas para desenvolvimento usando Aspell
Group: Development/Libraries
-Group(de): Entwicklung/Libraries
-Group(fr): Development/Librairies
-Group(pl): Programowanie/Biblioteki
-Epoch: %{serial}
-Requires: %{name}-devel = %{version}
+Requires: %{name}-devel = %{epoch}:%{version}-%{release}
+Provides: pspell-static = %{epoch}:%{version}-%{release}
+Obsoletes: pspell-static
%description static
-Aspell is an Open Source spell checker.
-
-Static Libraries for aspell development.
+Aspell is an Open Source spell checker. This package contains static
+aspell libraries.
-%description -l pl static
+%description static -l pl
Aspell jest kontrolerem pisowni. Pakiet ten zawiera biblioteki
-statyczne dla developerów aspella.
+statyczne aspella.
+
+%description static -l pt_BR
+Aspell é um corretor ortográfico. O pacote -devel-static inclui as
+bibliotecas estáticas necessárias para o desenvolvimento utilizando o
+aspell.
%prep
%setup -q
-
-cp -p %{_includedir}/g++/stl_rope.h .
-patch <misc/stl_rope-30.diff
+%patch0 -p1
%build
-CFLAGS="%{rpmcflags}" CXXFLAGS="%{rpmcflags}" LDFLAGS="%{rpmldflags}" \
-./configure %{_target_platform} \
---prefix=%{_prefix} \
- --libdir=%{_datadir} \
+%{__libtoolize}
+%{__aclocal}
+%{__autoconf}
+%{__automake}
+%configure \
--enable-shared \
--enable-static
-%{__make}
+
+%{__make}
%install
rm -rf $RPM_BUILD_ROOT
+install -d $RPM_BUILD_ROOT%{_libdir}/aspell
%{__make} install \
- DESTDIR=$RPM_BUILD_ROOT \
- pkgdatadir=%{_datadir}/aspell \
- libdir=%{_libdir}
-
-#cp -pr $RPM_BUILD_ROOT%{_prefix}/doc/aspell .
+ DESTDIR=$RPM_BUILD_ROOT
-ln -sf aspell $RPM_BUILD_ROOT%{_bindir}/ispell
-rm -rf $RPM_BUILD_ROOT%{_prefix}/{bin/run-with-aspell,share/aspell/ispell}
+rm -f $RPM_BUILD_ROOT{%{_bindir}/run-with-aspell,%{_datadir}/aspell/{i,}spell}
-gzip -9nf manual/manual2.lyx manual/man-text/*.txt
+%clean
+rm -rf $RPM_BUILD_ROOT
%post -p /sbin/ldconfig
%postun -p /sbin/ldconfig
-%clean
-rm -rf $RPM_BUILD_ROOT
-
%files
%defattr(644,root,root,755)
-%doc README TODO manual/{*,man-text/*.txt}.gz
-%attr(755,root,root) %{_bindir}/*
+%doc README manual/man-html/*.{html,png,css}
+%attr(755,root,root) %{_bindir}/aspell*
+%attr(755,root,root) %{_bindir}/word-list-compress
+%attr(755,root,root) %{_libdir}/lib*.so.*.*
%{_datadir}/aspell
-%{_libdir}/libaspell.so.*.*
+%dir %{_libdir}/aspell
-%files devel
+%files devel
%defattr(644,root,root,755)
-%attr(755,root,root) %{_libdir}/libaspell.so
-%{_includedir}/aspell
-%{_libdir}/libaspell.la
+%doc manual/dev-html/*.{html,png,css}
+%attr(755,root,root) %{_bindir}/pspell-config
+%attr(755,root,root) %{_libdir}/lib*.so
+%{_libdir}/lib*.la
+%{_includedir}/pspell
+%{_includedir}/*.h
%files static
%defattr(644,root,root,755)
-%{_libdir}/libaspell.a
+%{_libdir}/lib*.a