1 Summary: Game similar to the original game Super Mario Bros
2 Summary(pl): Gra podobna do oryginalnej gry Super Mario Bros
7 Group: Applications/Games
8 Source0: ftp://ftp.sonic.net/pub/users/nbs/unix/x/%{name}/src/%{name}-%{version}.tar.bz2
9 # Source0-md5: 2cf2dcb70f87c69d8654d755b0265d29
10 Source1: %{name}.desktop
11 URL: http://www.newbreedsoftware.com/supertux/
12 BuildRequires: SDL-devel
13 BuildRequires: SDL_image-devel
14 BuildRequires: SDL_mixer-devel
15 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
17 %define tuxdir %{_datadir}/games/%{name}
20 Super Mario Bros style game starring Tux the penguin.
23 Gra w stylu Super Mario Bros z pingwinek Tuksem w roli g³ównej.
30 CFLAGS="%{rpmcflags} `sdl-config --cflags` -DDATA_PREFIX=\\\"%{tuxdir}/data/\\\" -D__SOUND -DLINUX"
33 rm -rf $RPM_BUILD_ROOT
34 install -d $RPM_BUILD_ROOT{%{_bindir},%{tuxdir},%{_desktopdir},%{_pixmapsdir}}
36 cp -R data $RPM_BUILD_ROOT%{tuxdir}
37 install %{name} $RPM_BUILD_ROOT%{_bindir}
38 install %{SOURCE1} $RPM_BUILD_ROOT%{_desktopdir}
39 install data/images/icon.png $RPM_BUILD_ROOT%{_pixmapsdir}/%{name}.png
42 rm -rf $RPM_BUILD_ROOT
45 %defattr(644,root,root,755)
46 %doc AUTHORS.txt CHANGES.txt README.txt TODO.txt
47 %attr(755,root,root) %{_bindir}/*
49 %{_desktopdir}/*.desktop