]>
Commit | Line | Data |
---|---|---|
1 | ||
2 | # TODO: | |
3 | # - use system-wide lua | |
4 | ||
5 | %define snap 070804 | |
6 | Summary: Blobby Volley 2 game | |
7 | Summary(pl.UTF-8): Gra Blobby Volley 2 | |
8 | Name: blobby2 | |
9 | Version: 0.61 | |
10 | Release: 1 | |
11 | License: GPL v2 | |
12 | Group: X11/Applications/Games | |
13 | Source0: %{name}-%{snap}.tar.bz2 | |
14 | # Source0-md5: fffe00422e14879fe73db491ae782649 | |
15 | Patch0: %{name}-gcc4.patch | |
16 | URL: http://blobby.redio.de/content/en/ | |
17 | BuildRequires: OpenGL-devel | |
18 | BuildRequires: SDL-devel | |
19 | BuildRequires: autoconf | |
20 | BuildRequires: automake | |
21 | BuildRequires: physfs-devel | |
22 | BuildRequires: sed >= 4.0 | |
23 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) | |
24 | ||
25 | %description | |
26 | Blobby Volley 2 game. | |
27 | ||
28 | %description -l pl.UTF-8 | |
29 | Gra Blobby Volley 2. | |
30 | ||
31 | %prep | |
32 | %setup -q -n %{name}-%{snap} | |
33 | %patch0 -p1 | |
34 | ||
35 | %build | |
36 | %{__aclocal} | |
37 | %{__autoconf} | |
38 | %{__automake} | |
39 | sed -i -e "s:HAVE_LIBGL = @HAVE_LIBGL@:HAVE_LIBGL = 0:" src/Makefile.in | |
40 | sed -i -e "s:-lSDL:-lSDL -lGL:" configure | |
41 | %configure \ | |
42 | %{?debug:--enable-debug} | |
43 | %{__make} \ | |
44 | CFLAGS="%{rpmcflags}" \ | |
45 | CXXFLAGS="%{rpmcflags}" | |
46 | ||
47 | %install | |
48 | rm -rf $RPM_BUILD_ROOT | |
49 | ||
50 | %{__make} install \ | |
51 | DESTDIR=$RPM_BUILD_ROOT | |
52 | ||
53 | %clean | |
54 | rm -rf $RPM_BUILD_ROOT | |
55 | ||
56 | %files | |
57 | %defattr(644,root,root,755) | |
58 | %attr(755,root,root) %{_bindir}/* | |
59 | %doc AUTHORS ChangeLog NEWS README TODO doc/*.txt | |
60 | %{_datadir}/blobby |