]> git.pld-linux.org Git - packages/supertux.git/blob - supertux.spec
- updated to 0.0.5
[packages/supertux.git] / supertux.spec
1 Summary:        Game similar to the original game Super Mario Bros
2 Summary(pl):    Gra podobna do oryginalnej gry Super Mario Bros
3 Name:           supertux
4 Version:        0.0.5
5 Release:        1
6 License:        GPL
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)
16
17 %define tuxdir  %{_datadir}/games/%{name}
18
19 %description
20 Super Mario Bros style game starring Tux the penguin.
21
22 %description -l pl
23 Gra w stylu Super Mario Bros z pingwinek Tuksem w roli g³ównej.
24
25 %prep
26 %setup -q
27
28 %build
29 %{__make} \
30         CFLAGS="%{rpmcflags} `sdl-config --cflags` -DDATA_PREFIX=\\\"%{tuxdir}/data/\\\" -D__SOUND -DLINUX"
31
32 %install
33 rm -rf $RPM_BUILD_ROOT
34 install -d $RPM_BUILD_ROOT{%{_bindir},%{tuxdir},%{_desktopdir},%{_pixmapsdir}}
35
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
40
41 %clean
42 rm -rf $RPM_BUILD_ROOT
43
44 %files
45 %defattr(644,root,root,755)
46 %doc AUTHORS.txt CHANGES.txt README.txt TODO.txt
47 %attr(755,root,root) %{_bindir}/*
48 %{tuxdir}
49 %{_desktopdir}/*.desktop
50 %{_pixmapsdir}/*.png
This page took 0.090218 seconds and 4 git commands to generate.