-Summary : A graphical file finding program
-Name : gtkfind
-Version : 1.0
-Release : 1
-Copyright: GPL
-Group : X11/Utilities
-Source0 : http://www.oz.net/~mattg/gtkfind-1.0.tar.gz
-URL : http://www.oz.net/~mattg/download.html
-Vendor : Matt Grossman <mattg@oz.net>
-Packager : Tom Weber <x@4t2.com>
+Summary: A graphical file finding program
+Summary(pl.UTF-8): Graficzny program do szukania plików
+Name: gtkfind
+Version: 1.1
+Release: 1
+License: GPL
+Group: X11/Applications
+# from Mandrake src.rpm
+Source0: %{name}-%{version}.tar.bz2
+# Source0-md5: 6a894f3a798189cf74e7d61ddf1179f6
+BuildRequires: gtk+-devel
BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
%description
gtkfind is a graphical file finding program, written by Matt Grossman
-<mattg@oz.net> and distributed under the terms of the GNU GPL. It
-requires X and the freely distributable (GPL) gtk toolkit to run. gtk
-is available from www.gtk.org and other places.
+<mattg@oz.net> and distributed under the terms of the GNU GPL. It
+requires X and the freely distributable (GPL) GTK+ toolkit to run. GTK+
+is available from http://www.gtk.org/ and other places.
-%description -l pl
-gtkfind jest graficznym programem do znajdowania plików, napisanym przez
-Matta Grossmana <mattg@oz.net> i rozpowszechnianym na licencji GNU GPL.
-Wymaga X oraz biblioteki gtk (któr± mo¿na uzyskaæ np. z www.gtk.org).
+%description -l pl.UTF-8
+gtkfind jest graficznym programem do znajdowania plików, napisanym
+przez Matta Grossmana <mattg@oz.net> i rozpowszechnianym na licencji
+GNU GPL. Wymaga X oraz biblioteki GTK+ (którą można uzyskać np. z
+http://www.gtk.org/).
%prep
-%setup
+%setup -q
%build
-CFLAGS="$RPM_OPT_FLAGS" ./configure --prefix=/usr
-make
+export CONFIG_XTERM=/usr/bin/xterm
+%configure2_13
+
+%{__make} \
+ CFLAGS="%{rpmcflags} -Wall"
%install
-XBD=$RPM_BUILD_ROOT/usr/X11R6/bin
-XMD=$RPM_BUILD_ROOT/usr/X11R6/man/man1
-BD=$RPM_BUILD_ROOT/usr/bin
-MD=$RPM_BUILD_ROOT/usr/man/man1
-test -d $XBD || mkdir -p $XBD
-test -d $XMD || mkdir -p $XMD
-test -d $BD || mkdir -p $BD
-test -d $MD || mkdir -p $MD
-install -s -m 555 gtkfind $XBD
-install -m 444 gtkfind.1 $XMD
-install -s -m 555 mktmp $BD
-install -m 444 mktmp.1 $MD
+rm -rf $RPM_BUILD_ROOT
+
+%{__make} install \
+ DESTDIR=$RPM_BUILD_ROOT
%clean
-rm -fr $RPM_BUILD_ROOT
+rm -rf $RPM_BUILD_ROOT
%files
-%attr(-, root, root) %doc README TODO
-%attr(555, root, root) /usr/X11R6/bin/gtkfind
-%attr(444, root, root) /usr/X11R6/man/man1/gtkfind.1
-%attr(555, root, root) /usr/bin/mktmp
-%attr(444, root, root) /usr/man/man1/mktmp.1
+%defattr(644,root,root,755)
+%doc README TODO
+%attr(755,root,root) %{_bindir}/gtkfind
+%attr(755,root,root) %{_bindir}/mktmp
+%{_mandir}/man1/gtkfind.1*
+%{_mandir}/man1/mktmp.1*