- use optflags
[packages/gav.git] / gav.spec
1 Summary:        GPL Arcade Volleyball
2 Summary(pl):    Gra zrêczno¶ciowa w siatkówkê
3 Name:           gav
4 Version:        0.7.3
5 Release:        1
6 License:        GPL
7 Group:          X11/Applications/Games
8 Source0:        http://dl.sourceforge.net/%{name}/%{name}-%{version}.tar.gz
9 # Source0-md5:  938c8cd9e7eef6842f931620377fe6b4
10 Patch0:         %{name}-desktop.patch
11 URL:            http://gav.sourceforge.net/
12 Buildrequires:  SDL_net-devel
13 BuildRoot:      %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
14
15 %description
16 GAV stands for GPL Arcade Volleyball, and is a remake of the old dos
17 game Arcade Volleyball.
18
19 %description -l pl
20 GAV oznacza GPL Arcade Volleyball i jest "od¶wie¿on±" wersj± starej
21 dosowej gry Arcade Voleyball.
22
23 %prep
24 %setup -q
25 %patch0 -p1
26
27 %build
28 ./build_linux.sh
29 %{__make} \
30         CXX="%{__cxx}" \
31         CXXFLAGS="%{rpmcflags} `sdl-config --cflags` -Wall -I`pwd`/menu -I`pwd`/automa -I`pwd`/net -I`pwd`"
32
33 %install
34 rm -rf $RPM_BUILD_ROOT
35 install -d $RPM_BUILD_ROOT{%{_bindir},%{_desktopdir},%{_pixmapsdir}}
36
37 %{__make} install \
38         ROOT=$RPM_BUILD_ROOT
39
40 install package/%{name}.desktop $RPM_BUILD_ROOT%{_desktopdir}
41 install package/%{name}.png $RPM_BUILD_ROOT%{_pixmapsdir}
42
43 %clean
44 rm -rf $RPM_BUILD_ROOT
45
46 %files
47 %defattr(644,root,root,755)
48 %doc CHANGELOG README
49 %attr(755,root,root) %{_bindir}/*
50 %{_datadir}/games/%{name}
51 %{_desktopdir}/*
52 %{_pixmapsdir}/*
This page took 0.044495 seconds and 3 git commands to generate.