]>
Commit | Line | Data |
---|---|---|
43915c72 TP |
1 | |
2 | # TODO: | |
3 | # - use system-wide lua | |
4 | ||
5 | %define snap 070804 | |
6 | Summary: Blobby Volley 2 | |
7 | Summary(pl.UTF-8): 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 | |
a775636f | 14 | # Source0-md5: fffe00422e14879fe73db491ae782649 |
43915c72 TP |
15 | URL: http://blobby.redio.de/content/en/ |
16 | BuildRequires: OpenGL-devel | |
17 | BuildRequires: SDL-devel | |
18 | BuildRequires: autoconf | |
19 | BuildRequires: automake | |
20 | BuildRequires: physfs-devel | |
21 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) | |
22 | ||
23 | %description | |
24 | ||
25 | %description -l pl.UTF-8 | |
26 | ||
27 | %prep | |
28 | %setup -q -n %{name}-%{snap} | |
29 | ||
30 | %build | |
31 | %{__aclocal} | |
32 | %{__autoconf} | |
33 | %{__automake} | |
a775636f | 34 | sed -i -e "s:HAVE_LIBGL = @HAVE_LIBGL@:HAVE_LIBGL = 0:" src/Makefile.in |
43915c72 TP |
35 | sed -i -e "s:-lSDL:-lSDL -lGL:" configure |
36 | %configure \ | |
37 | %{?debug:--enable-debug} | |
38 | %{__make} \ | |
39 | CFLAGS="%{rpmcflags}" \ | |
40 | CXXFLAGS="%{rpmcflags}" | |
41 | ||
42 | %install | |
43 | rm -rf $RPM_BUILD_ROOT | |
44 | ||
45 | %{__make} install \ | |
46 | DESTDIR=$RPM_BUILD_ROOT | |
47 | ||
48 | %clean | |
49 | rm -rf $RPM_BUILD_ROOT | |
50 | ||
51 | %files | |
52 | %defattr(644,root,root,755) | |
53 | %attr(755,root,root) %{_bindir}/* | |
54 | %doc AUTHORS ChangeLog NEWS README TODO doc/*.txt | |
55 | %{_datadir}/blobby |