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 debugcflags -O1 -g
22 %define _noautoreqdep libGL.so.1 libGLU.so.1
25 DOOM Legacy for Linux.
28 DOOM Legacy dla Linuksa.
31 Summary: DOOM Legacy for Linux - common files
32 Summary(pl): DOOM Legacy dla Linuksa - pliki wspólne
33 Group: X11/Applications/Games
36 Common files for both versions of DOOM Legacy.
38 %description common -l pl
39 Pliki wspólne dla obu wersji DOOM Legacy.
42 Summary: DOOM Legacy for Linux - X Window and OpenGL version
43 Summary(pl): DOOM Legacy dla Linuksa - wersja korzystaj±ca z X Window i OpenGL
44 Group: X11/Applications/Games
48 This is DOOM Legacy for Linux - X11 and OpenGL version.
50 %description x11 -l pl
51 To jest DOOM Legacy dla Linuksa - wersja korzystaj±ca z X Window i
55 Summary: DOOM Legacy for Linux - SDL version
56 Summary(pl): DOOM Legacy dla Linuksa - wersja korzystaj±ca z SDL
57 Group: X11/Applications/Games
61 This is DOOM Legacy for Linux - SDL version.
63 %description sdl -l pl
64 To jest DOOM Legacy dla Linuksa - wersja SDL.
73 install -d doomlegacy/linux_x/{musserv,sndserv}/{objs,bin}
74 %{__make} -C doomlegacy PGCC=1 LINUX=1 OPTFLAGS="%{rpmcflags}"
75 %{__make} -C doomlegacy clean LINUX=1
76 %{__make} -C doomlegacy PGCC=1 LINUX=1 SDL=1 OPTFLAGS="%{rpmcflags}"
79 rm -rf $RPM_BUILD_ROOT
80 install -d $RPM_BUILD_ROOT{%{_bindir},%{_libdir}/doomlegacy,%{_datadir}/doomlegacy}
82 install bin/llxdoom $RPM_BUILD_ROOT%{_bindir}
83 install bin/lsdldoom $RPM_BUILD_ROOT%{_bindir}
84 install doomlegacy/linux_x/sndserv/linux/llsndserv $RPM_BUILD_ROOT%{_libdir}/doomlegacy
85 install doomlegacy/linux_x/musserv/linux/musserver $RPM_BUILD_ROOT%{_libdir}/doomlegacy
86 install bin/r_opengl.so $RPM_BUILD_ROOT%{_libdir}/doomlegacy
88 install doom3.wad $RPM_BUILD_ROOT%{_datadir}/doomlegacy
91 rm -rf ${RPM_BUILD_ROOT}
94 %defattr(644,root,root,755)
95 %doc doomlegacy/_doc/*.txt
96 %dir %{_libdir}/doomlegacy
97 %attr(755,root,root) %{_libdir}/doomlegacy/*serv*
98 %{_datadir}/doomlegacy
101 %defattr(644,root,root,755)
102 %attr(755,root,root) %{_bindir}/llxdoom
103 %attr(755,root,root) %{_libdir}/doomlegacy/r_opengl.so
106 %defattr(644,root,root,755)
107 %attr(755,root,root) %{_bindir}/lsdldoom