-Summary: Gnome frontend to the Aspell library.
+Summary: Gnome frontend to the Aspell library
+Summary(pl): Frontend Gnome do biblioteki aspell
Name: gaspell
Version: .28.5
Release: 1
License: GPL
Group: Applications/Text
+Group(de): Applikationen/Text
+Group(fr): Utilitaires/Texte
+Group(pl): Aplikacje/Tekst
Vendor: Kevin Atkinson <kevinatk@home.com>
-Source: %{name}-%{version}.tar.gz
+Source0: %{name}-%{version}.tar.gz
URL: http://metalab.unc.edu/kevina/aspell
-BuildRoot: /tmp/%{name}-%{version}-root
+BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
Requires: aspell
%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.
+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
%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
-install -d $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 gaspell $RPM_BUILD_ROOT%{_bindir}
+
+gzip -9nf ChangeLog README TODO
%clean
-if [ -d $RPM_BUILD_ROOT ]; then rm -rf $RPM_BUILD_ROOT; fi
+rm -rf $RPM_BUILD_ROOT
%files
%defattr(644,root,root,755)
-%doc ChangeLog README TODO
-/usr/bin/gaspell
+%doc ChangeLog.gz README.gz TODO.gz
+%attr(755,root,root) %{_bindir}/gaspell