Updated addon repository URL and improved debug output on download
[supertux.git] / tools / supertux.spec
1 Name:           supertux
2 Version:        0.1.1
3 Release:        2zebar
4
5 Group:          Amusements/Games       
6 Summary:        A free arcade game like Super Mario.
7
8 Vendor:         The SuperTux Developer Team
9 Packager:       Astakhov Peter
10 License:        GPL
11 URL:            http://supertux.lethargik.org/
12 Source0:        %{name}-%{version}.tar.bz2
13 BuildRoot:      %{_tmppath}/%{name}-%{version}-root
14 Prefix: /usr
15 Requires:      SDL, SDL_image, SDL_mixer
16 BuildRequires: SDL-devel, SDL_mixer-devel, SDL_image-devel
17 %description
18 SuperTux is a jump'n run like game, with strong inspiration from the
19 Super Mario Bros games for Nintendo.
20
21 Run and jump through multiple worlds, fighting off enemies by jumping
22 on them or bumping them from below.  Grabbing power-ups and other stuff
23 on the way.
24
25 %prep
26 #Unpack package
27 %setup
28
29 %build
30 CFLAGS="$RPM_OPT_FLAGS" CXXFLAGS="$RPM_OPT_FLAGS" \
31 ./configure --prefix=%{_prefix} --disable-opengl --disable-debug
32 make 
33
34 %install
35 #make DESTDIR=%{buildroot} install
36 %makeinstall
37
38 #Install application link for X-Windows
39 install -d %{buildroot}/etc/X11/applnk/Games
40 echo -e "[Desktop Entry]
41 Name=SuperTux
42 Comment=Arcade game
43 Exec=supertux
44 Icon=/usr/share/supertux/images/icon.xpm
45 Terminal=0
46 Type=Application" > %{buildroot}/etc/X11/applnk/Games/SuperTux.desktop
47
48
49
50
51 %clean
52 rm -rf %{buildroot}
53
54 %files
55 %defattr(-,root,root)
56 %doc COPYING README ChangeLog TODO 
57 #%doc doc/*
58 /etc/X11/applnk/*
59 %{_bindir}/*
60 %{_prefix}/share/supertux/*
61
62
63 %changelog
64 * Wed Jun 23 2004 Astakhov Peter <astakhovp@mail.ru>
65 - initial supertux specfile