1 Summary: DOOM Legacy for Linux
2 Summary(pl): DOOM Legacy dla Linuksa
6 License: GPL, perhaps except for doom3.wad
7 Group: Applications/Games
8 Source0: http://prdownloads.sourceforge.net/doomlegacy/legacy_132beta1_src.tar.gz
9 Source1: http://prdownloads.sourceforge.net/doomlegacy/doom3_wad_132.zip
10 Patch0: %{name}-paths.patch
11 Patch1: %{name}-Makefile.patch
12 Patch2: %{name}-nosndstat.patch
13 BuildRequires: XFree86-devel
14 BuildRequires: OpenGL-devel
15 BuildRequires: SDL_mixer-devel
18 ExclusiveArch: %{ix86}
19 Buildroot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
21 %define _prefix /usr/X11R6
22 %define debugcflags -O1 -g
23 %define _noautoreqdep libGL.so.1 libGLU.so.1
26 DOOM Legacy for Linux.
29 DOOM Legacy dla Linuksa.
32 Summary: DOOM Legacy for Linux - common files
33 Summary(pl): DOOM Legacy dla Linuksa - pliki wspólne
34 Group: X11/Applications/Games
37 Common files for both versions of DOOM Legacy.
39 %description common -l pl
40 Pliki wspólne dla obu wersji DOOM Legacy.
43 Summary: DOOM Legacy for Linux - X Window and OpenGL version
44 Summary(pl): DOOM Legacy dla Linuksa - wersja korzystaj±ca z X Window i OpenGL
45 Group: X11/Applications/Games
49 This is DOOM Legacy for Linux - X11 and OpenGL version.
51 %description x11 -l pl
52 To jest DOOM Legacy dla Linuksa - wersja korzystaj±ca z X Window i
56 Summary: DOOM Legacy for Linux - SDL version
57 Summary(pl): DOOM Legacy dla Linuksa - wersja korzystaj±ca z SDL
58 Group: X11/Applications/Games
62 This is DOOM Legacy for Linux - SDL version.
64 %description sdl -l pl
65 To jest DOOM Legacy dla Linuksa - wersja SDL.
74 install -d doomlegacy/linux_x/{musserv,sndserv}/{objs,bin}
75 %{__make} -C doomlegacy PGCC=1 LINUX=1 OPTFLAGS="%{rpmcflags}"
76 %{__make} -C doomlegacy clean LINUX=1
77 %{__make} -C doomlegacy PGCC=1 LINUX=1 SDL=1 OPTFLAGS="%{rpmcflags}"
80 rm -rf $RPM_BUILD_ROOT
81 install -d $RPM_BUILD_ROOT{%{_bindir},%{_libdir}/doomlegacy,%{_datadir}/doomlegacy}
83 install bin/llxdoom $RPM_BUILD_ROOT%{_bindir}
84 install bin/lsdldoom $RPM_BUILD_ROOT%{_bindir}
85 install doomlegacy/linux_x/sndserv/linux/llsndserv $RPM_BUILD_ROOT%{_libdir}/doomlegacy
86 install doomlegacy/linux_x/musserv/linux/musserver $RPM_BUILD_ROOT%{_libdir}/doomlegacy
87 install bin/r_opengl.so $RPM_BUILD_ROOT%{_libdir}/doomlegacy
89 install doom3.wad $RPM_BUILD_ROOT%{_datadir}/doomlegacy
92 rm -rf ${RPM_BUILD_ROOT}
95 %defattr(644,root,root,755)
96 %doc doomlegacy/_doc/*.txt
97 %dir %{_libdir}/doomlegacy
98 %attr(755,root,root) %{_libdir}/doomlegacy/*serv*
99 %{_datadir}/doomlegacy
102 %defattr(644,root,root,755)
103 %attr(755,root,root) %{_bindir}/llxdoom
104 %attr(755,root,root) %{_libdir}/doomlegacy/r_opengl.so
107 %defattr(644,root,root,755)
108 %attr(755,root,root) %{_bindir}/lsdldoom