--- /dev/null
+--- crafted-0.1.3/configure.in.orig Tue Mar 5 23:35:12 2002
++++ crafted-0.1.3/configure.in Sun Dec 22 22:50:42 2002
+@@ -55,18 +55,18 @@
+
+ if test -z "$LIBZ"; then
+ AC_CHECK_LIB(z, gzsetparams,
+- AC_CHECK_HEADER(zlib.h,
++ [AC_CHECK_HEADER(zlib.h,
+ [LIBS="$LIBS -lz"
+ AC_DEFINE(HAVE_ZLIB)],
+- AC_MSG_ERROR(*** ZLIB header files not found ***)),
++ AC_MSG_ERROR(*** ZLIB header files not found ***))],
+ AC_MSG_ERROR(*** ZLIB library not found ***))
+ fi
+
+ if test -z "$LIBPNG"; then
+ AC_CHECK_LIB(png, png_read_info,
+- AC_CHECK_HEADER(png.h,
++ [AC_CHECK_HEADER(png.h,
+ png_ok=yes,
+- png_ok=no),
++ png_ok=no)],
+ AC_MSG_ERROR(*** PNG library not found ***), -lz -lm)
+ if test "$png_ok" = yes; then
+ AC_MSG_CHECKING([for png_structp in png.h])
--- /dev/null
+Summary: Crafted - an editor for Freecraft maps
+Summary(pl): Crafted - edytor do map Freecrafta
+Name: crafted
+Version: 0.1.3
+Release: 1
+License: GPL
+Group: X11/Applications/Games
+Source0: ftp://ftp.sourceforge.net/pub/sourceforge/freecraft/%{name}-%{version}.tar.gz
+Patch0: %{name}-acfix.patch
+URL: http://freecraft.org/
+BuildRequires: autoconf
+BuildRequires: automake
+BuildRequires: gettext-devel
+BuildRequires: gtk+-devel >= 1.2.0
+BuildRequires: libpng-devel
+BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
+
+%define _prefix /usr/X11R6
+%define _mandir %{_prefix}/man
+
+%description
+Crafted - an editor for Freecraft maps.
+
+%description -l pl
+Crafted - edytor do map Freecrafta.
+
+%prep
+%setup -q
+%patch -p1
+
+%build
+%{__gettextize}
+%{__aclocal}
+%{__autoconf}
+%{__autoheader}
+%{__automake}
+%configure
+%{__make}
+
+%install
+rm -rf $RPM_BUILD_ROOT
+
+%{__make} install DESTDIR=$RPM_BUILD_ROOT
+
+%find_lang %{name}
+
+%clean
+rm -rf $RPM_BUILD_ROOT
+
+%files -f %{name}.lang
+%defattr(644,root,root,755)
+%doc AUTHORS ChangeLog NEWS README
+%attr(755,root,root) %{_bindir}/*
+%{_mandir}/man1/*