]>
Commit | Line | Data |
---|---|---|
43915c72 TP |
1 | |
2 | # TODO: | |
3 | # - use system-wide lua | |
4 | ||
5 | %define snap 070804 | |
a8afca81 JB |
6 | Summary: Blobby Volley 2 game |
7 | Summary(pl.UTF-8): Gra Blobby Volley 2 | |
43915c72 TP |
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 | |
a775636f | 14 | # Source0-md5: fffe00422e14879fe73db491ae782649 |
c95d6ce5 | 15 | Patch0: %{name}-gcc4.patch |
43915c72 TP |
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 | |
a8afca81 | 22 | BuildRequires: sed >= 4.0 |
43915c72 TP |
23 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) |
24 | ||
25 | %description | |
a8afca81 | 26 | Blobby Volley 2 game. |
43915c72 TP |
27 | |
28 | %description -l pl.UTF-8 | |
a8afca81 | 29 | Gra Blobby Volley 2. |
43915c72 TP |
30 | |
31 | %prep | |
32 | %setup -q -n %{name}-%{snap} | |
c95d6ce5 | 33 | %patch0 -p1 |
43915c72 TP |
34 | |
35 | %build | |
36 | %{__aclocal} | |
37 | %{__autoconf} | |
38 | %{__automake} | |
a775636f | 39 | sed -i -e "s:HAVE_LIBGL = @HAVE_LIBGL@:HAVE_LIBGL = 0:" src/Makefile.in |
a8afca81 | 40 | sed -i -e "s:-lSDL:-lSDL -lGL:" configure |
43915c72 TP |
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 |