-%define name gaspell
-%define version .28.5
-%define release 1
-%define serial 1
-Summary: Gnome frontend to the Aspell library.
-Name: %{name}
-Version: %{version}
-Release: %{release}
-Serial: %{serial}
-Copyright: GPL
+%define ver .30
+
+Summary: Gnome frontend to the Aspell library
+Summary(pl): Frontend Gnome do biblioteki aspell
+Name: gaspell
+Version: 0%{ver}
+Release: 1
+License: GPL
Group: Applications/Text
-URL: http://metalab.unc.edu/kevina/aspell
Vendor: Kevin Atkinson <kevinatk@home.com>
-Source: %{name}-%{version}.tar.gz
-BuildRoot: /var/tmp/%{name}-%{version}
+Source0: http://aspell.sourceforge.net/%{name}-%{ver}.tar.gz
+URL: http://aspell.sourceforge.net/
+BuildRequires: aspell-devel
+BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
Requires: aspell
-Distribution: Freshmeat RPMs
-Packager: Ryan Weaver <ryanw@infohwy.com>
%description
Gnome frontend to the Aspell library. Or put another way a simple
spell checker that does a way better job than ispell does with coming
up with suggestions.
+%description -l pl
+Gaspell to interfejs (frontend) do biblioteki Aspell. Innymi s³owy
+jest to narzedzie do sprawdzania pisownie które o wiele lepiej ni¿
+ispell radzi sobie z propozycjami wymienników.
+
%prep
-%setup -q
+%setup -q -n %{name}-%{ver}
%build
-make CXXFLAGS=$RPM_OPT_FLAGS ASPELL_PREFIX=/usr
+%{__make} CXXFLAGS="%{rpmcflags}" ASPELL_PREFIX=%{_prefix}
%install
-if [ -d $RPM_BUILD_ROOT ]; then rm -rf $RPM_BUILD_ROOT; fi
-mkdir -p $RPM_BUILD_ROOT/usr/bin
-install -s -m 755 gaspell $RPM_BUILD_ROOT/usr/bin
+rm -rf $RPM_BUILD_ROOT
+install -d $RPM_BUILD_ROOT%{_bindir}
+install -d $RPM_BUILD_ROOT%{_applnkdir}/Utilities
+
+install gaspell $RPM_BUILD_ROOT%{_bindir}
+install gaspell.desktop $RPM_BUILD_ROOT%{_applnkdir}/Utilities
%clean
-if [ -d $RPM_BUILD_ROOT ]; then rm -rf $RPM_BUILD_ROOT; fi
+rm -rf $RPM_BUILD_ROOT
%files
-%defattr(-,root,root)
+%defattr(644,root,root,755)
%doc ChangeLog README TODO
-/usr/bin/gaspell
-
-%changelog
-* Mon Sep 27 1999 Ryan Weaver <ryanw@infohwy.com>
- [gaspell-.28.5-1]
-- Added the ability to lookup the definition of a suggestion using
- the WordNet definitions form a DICT server.
-
-* Thu Jul 29 1999 Ryan Weaver <ryanw@infohwy.com>
- [gaspell-.28.2-1]
-- Reverted to Gaspell .28 code as my bug fixed now causes Gaspell to
- randomly crash when the text is unhighlighted. I then fixed the bug
- in .28 by a cheap hack. I hope eventually find out what is really going on.
-- Changed the text window to use word wrap.
-
-* Wed Jul 28 1999 Ryan Weaver <ryanw@infohwy.com>
- [gaspell-.28.1-1]
-- Fixed a bug that caused gaspell to dump core when clearing a
- file that has a word highlighted in red.
-
-* Mon Jul 26 1999 Ryan Weaver <ryanw@infohwy.com>
- [gaspell-.28-1]
-- Fixed the code so that it would word with aspell .28
-- Fixed the code so that it will provide an nice error message
- if there is a problem duren startup rather than just
- dumping core.
-- Re did the command line options a bit
-
- [gaspell-.27-1]
-- Fixed code so that it would work with aspell .27
-- Added support for Aspell URL skip mode.
-- Added an option to not save personal dictionaries on exit.
-
- [gaspell-.26-1]
-- First real release
+%attr(755,root,root) %{_bindir}/gaspell
+%{_applnkdir}/Utilities/gaspell.desktop