]>
Commit | Line | Data |
---|---|---|
fbfecb49 | 1 | Summary: Shooting arcade game |
2 | Summary(pl.UTF-8): Zręcznościowa strzelanka | |
3 | Name: alienblaster | |
4 | Version: 1.1.0 | |
5 | Release: 1 | |
6 | License: GPL v2+ | |
7 | Group: X11/Applications/Games | |
8 | Source0: http://www.informatik.uni-bremen.de/~schwardt/alienblaster/%{name}-%{version}.tgz | |
9 | # Source0-md5: 27412a868f7d4ae0949036aeb29a6691 | |
10 | Patch0: %{name}-Makefile.patch | |
11 | URL: http://www.schwardtnet.de/alienblaster/ | |
12 | BuildRequires: SDL-devel >= 1.2.7 | |
13 | BuildRequires: SDL_mixer >= 1.2.5 | |
14 | BuildRequires: sed >= 4.0 | |
15 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) | |
16 | ||
17 | %description | |
18 | The game goal is to stop the invasion of the aliens and blast them. | |
19 | ||
20 | %description -l pl.UTF-8 | |
21 | Celem gry jest powstrzymanie inwazji obcych i znieszczenie ich. | |
22 | ||
23 | %prep | |
24 | %setup -q -n %{name} | |
25 | %patch0 -p1 | |
26 | %{__sed} -i 's@images@%{_datadir}/%{name}/images@' cfg/{level1.cfg,level2.cfg} | |
27 | %{__sed} -i 's@.//@/@' cfg/{level1.cfg,level2.cfg} | |
28 | %{__sed} -i 's@./images@%{_datadir}/%{name}/images@' src/{global.cc,global.h} | |
29 | %{__sed} -i 's@./sound@%{_datadir}/%{name}/sound@' src/global.h | |
30 | %{__sed} -i 's@./cfg@%{_datadir}/%{name}/cfg@' src/global.h | |
31 | ||
32 | %build | |
33 | %{__make} \ | |
34 | COMPILER="%{__cxx}" \ | |
35 | CXXFLAGS="%{rpmcxxflags}" \ | |
36 | LDFLAGS="%{rpmldflags}" | |
37 | ||
38 | %install | |
39 | rm -rf $RPM_BUILD_ROOT | |
40 | install -d $RPM_BUILD_ROOT{%{_bindir},%{_datadir}/%{name}} | |
41 | ||
42 | cp alienBlaster $RPM_BUILD_ROOT%{_bindir}/%{name} | |
43 | cp -r {images,sound,cfg} $RPM_BUILD_ROOT%{_datadir}/%{name} | |
44 | ||
45 | %clean | |
46 | rm -rf $RPM_BUILD_ROOT | |
47 | ||
48 | %files | |
49 | %defattr(644,root,root,755) | |
50 | %doc AUTHORS CHANGELOG | |
51 | %attr(755,root,root) %{_bindir}/%{name} | |
52 | %{_datadir}/%{name} |