Summary: Game similar to the original game Super Mario Bros
Summary(pl): Gra podobna do oryginalnej gry Super Mario Bros
Name: supertux
-Version: 0.0.5
+Version: 0.1.2
Release: 1
License: GPL
-Group: Applications/Games
-Source0: ftp://ftp.sonic.net/pub/users/nbs/unix/x/%{name}/src/%{name}-%{version}.tar.bz2
-# Source0-md5: 2cf2dcb70f87c69d8654d755b0265d29
+Group: X11/Applications/Games
+Source0: http://dl.sourceforge.net/super-tux/%{name}-%{version}.tar.bz2
+# Source0-md5: 7c10acf574f09ae5cb9eb2a4b9bf93ff
+#Source0: http://pingus.seul.org/~grumbel/tmp/%{name}-%{version}.tar.bz2
Source1: %{name}.desktop
-URL: http://www.newbreedsoftware.com/supertux/
-BuildRequires: SDL-devel
+URL: http://super-tux.sourceforge.net/
+BuildRequires: OpenGL-devel
+BuildRequires: SDL-devel >= 1.2.4
BuildRequires: SDL_image-devel
BuildRequires: SDL_mixer-devel
+BuildRequires: autoconf >= 2.54
+BuildRequires: automake
+Requires: OpenGL
BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
-%define tuxdir %{_datadir}/games/%{name}
+%define _noautoreqdep libGL.so.1 libGLU.so.1
%description
Super Mario Bros style game starring Tux the penguin.
%description -l pl
-Gra w stylu Super Mario Bros z pingwinek Tuksem w roli g³ównej.
+Gra w stylu Super Mario Bros z pingwinem Tuksem w roli g³ównej.
%prep
%setup -q
%build
-%{__make} \
- CFLAGS="%{rpmcflags} `sdl-config --cflags` -DDATA_PREFIX=\\\"%{tuxdir}/data/\\\" -D__SOUND -DLINUX"
+%{__aclocal} -I mk/autoconf
+%{__autoconf}
+%{__automake}
+%configure \
+ %{?debug:--enable-debug}%{!?debug:--disable-debug}
+
+%{__make}
%install
rm -rf $RPM_BUILD_ROOT
-install -d $RPM_BUILD_ROOT{%{_bindir},%{tuxdir},%{_desktopdir},%{_pixmapsdir}}
+install -d $RPM_BUILD_ROOT{%{_desktopdir},%{_pixmapsdir}}
+
+%{__make} install \
+ DESTDIR=$RPM_BUILD_ROOT
-cp -R data $RPM_BUILD_ROOT%{tuxdir}
-install %{name} $RPM_BUILD_ROOT%{_bindir}
install %{SOURCE1} $RPM_BUILD_ROOT%{_desktopdir}
-install data/images/icon.png $RPM_BUILD_ROOT%{_pixmapsdir}/%{name}.png
+install data/images/icon.xpm $RPM_BUILD_ROOT%{_pixmapsdir}/%{name}.xpm
%clean
rm -rf $RPM_BUILD_ROOT
%files
%defattr(644,root,root,755)
-%doc AUTHORS.txt CHANGES.txt README.txt TODO.txt
+%doc AUTHORS ChangeLog LEVELDESIGN README TODO
%attr(755,root,root) %{_bindir}/*
-%{tuxdir}
+%{_datadir}/%{name}
%{_desktopdir}/*.desktop
-%{_pixmapsdir}/*.png
+%{_pixmapsdir}/*.xpm