]>
Commit | Line | Data |
---|---|---|
71d0f225 ER |
1 | # TODO |
2 | # - http://wiki.eduke32.com/wiki/Building_EDuke32_on_Linux | |
3 | %define snap 20090131 | |
4 | %define patch 20090313 | |
5 | %define rel 0.2 | |
6 | Summary: Duke Nukem 3D | |
7 | Name: eduke32 | |
8 | Version: 1.5.0 | |
9 | Release: 0.%{patch}.%{rel} | |
10 | License: GPL v2 | |
11 | Group: X11/Applications/Games | |
12 | Source0: http://dukeworld.duke4.net/eduke32/source_code/%{name}_src_%{snap}.zip | |
13 | # Source0-md5: cf5eb51de024f28e8b24aae2702d459e | |
14 | Source1: http://dukeworld.duke4.net/eduke32/source_code/%{name}_src_%{patch}.diff | |
15 | # Source1-md5: fd9fa13146c9a31b2eb709aff93a4afa | |
16 | Patch0: make.patch | |
17 | URL: http://www.eduke32.com/ | |
18 | BuildRequires: OpenAL-devel | |
19 | BuildRequires: SDL-devel | |
20 | BuildRequires: SDL_mixer-devel | |
21 | BuildRequires: gtk+2-devel | |
22 | BuildRequires: libogg-devel | |
23 | BuildRequires: libstdc++-devel | |
24 | BuildRequires: libvorbis-devel | |
25 | BuildRequires: nasm | |
26 | ExclusiveArch: %{ix86} %{x8664} | |
27 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) | |
28 | ||
29 | %define _appdir %{_datadir}/%{name} | |
30 | ||
31 | %description | |
32 | EDuke32 is a port of the classic 3D Realms game Duke Nukem 3D (or | |
33 | Duke3D for short) to Windows, Linux and OSX. EDuke32 adds many new | |
34 | convenient features and modernizations for casual players and many | |
35 | editing features and scripting extensions for mod authors. | |
36 | ||
37 | EDuke32 screams cool so loud you'll think Bruce Dickinson got uppercut | |
38 | in the balls by Freddy Krueger. It even comes with Mapster32, an | |
39 | enhanced version of that good ol' Build editor you remember messing | |
40 | around with when you were a kid. | |
41 | ||
42 | EDuke32 requires a copy of Duke Nukem 3D to run. | |
43 | ||
44 | %description -l pl.UTF-8 | |
45 | Duke Nukem 3D. | |
46 | ||
47 | Aby uruchomić grę wymagane są pliki z Atomic Edition. | |
48 | ||
49 | %prep | |
50 | %setup -q -n %{name}_src_%{snap} | |
51 | %{__patch} -p1 < %{SOURCE1} | |
52 | %patch0 -p1 | |
53 | ||
54 | %{__sed} -i -e 's,\r$,,' *.sample | |
55 | mv duke3d.def.sample duke3d.def | |
56 | mv enhance.con.sample enhance.con | |
57 | ||
58 | %build | |
59 | %{__make} \ | |
60 | CC="%{__cc}" \ | |
61 | CXX="%{__cxx}" \ | |
62 | STRIP=echo \ | |
63 | PRETTY_OUTPUT=0 \ | |
64 | OPTFLAGS="%{rpmcflags}" | |
65 | ||
66 | %install | |
67 | rm -rf $RPM_BUILD_ROOT | |
68 | install -d $RPM_BUILD_ROOT{%{_bindir},%{_appdir}} | |
69 | install -p eduke32 mapster32 $RPM_BUILD_ROOT%{_bindir} | |
70 | #cp -a *.def *.con $RPM_BUILD_ROOT%{_appdir} | |
71 | ||
72 | %clean | |
73 | rm -rf $RPM_BUILD_ROOT | |
74 | ||
75 | %files | |
76 | %defattr(644,root,root,755) | |
77 | %doc buildlic.txt | |
78 | %attr(755,root,root) %{_bindir}/eduke32 | |
79 | %attr(755,root,root) %{_bindir}/mapster32 | |
80 | %{_appdir} |