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://dl.sourceforge.net/doomlegacy/legacy_140_src.tar.gz
9 Source1: http://dl.sourceforge.net/doomlegacy/doom3_wad_132.zip
10 Source2: http://dl.sourceforge.net/doomlegacy/legacy_dat.zip
11 Source3: %{name}-x11.desktop
12 Source4: %{name}-sdl.desktop
13 URL: http://legacy.newdoom.com/
14 Patch0: %{name}-paths.patch
15 Patch1: %{name}-Makefile.patch
16 Patch2: %{name}-nosndstat.patch
17 Patch3: %{name}-sound.patch
18 BuildRequires: OpenGL-devel
19 BuildRequires: SDL_mixer-devel
20 BuildRequires: XFree86-devel
23 ExclusiveArch: %{ix86}
24 Buildroot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
26 %define debugcflags -O1 -g
27 %define _noautoreqdep libGL.so.1 libGLU.so.1
30 DOOM Legacy for Linux.
33 DOOM Legacy dla Linuksa.
36 Summary: DOOM Legacy for Linux - common files
37 Summary(pl): DOOM Legacy dla Linuksa - pliki wspólne
38 Group: X11/Applications/Games
41 Common files for both versions of DOOM Legacy.
43 %description common -l pl
44 Pliki wspólne dla obu wersji DOOM Legacy.
47 Summary: DOOM Legacy for Linux - X Window and OpenGL version
48 Summary(pl): DOOM Legacy dla Linuksa - wersja korzystaj±ca z X Window i OpenGL
49 Group: X11/Applications/Games
53 This is DOOM Legacy for Linux - X11 and OpenGL version.
55 %description x11 -l pl
56 To jest DOOM Legacy dla Linuksa - wersja korzystaj±ca z X Window i
60 Summary: DOOM Legacy for Linux - SDL version
61 Summary(pl): DOOM Legacy dla Linuksa - wersja korzystaj±ca z SDL
62 Group: X11/Applications/Games
66 This is DOOM Legacy for Linux - SDL version.
68 %description sdl -l pl
69 To jest DOOM Legacy dla Linuksa - wersja SDL.
72 %setup -q -c -a 1 -a 2
81 # linux_x contains some precompiled binary objects (incompatible with glibc 2.3) - kill them
82 %{__make} -C doomlegacy_src clean LINUX=1
83 %{__make} -C doomlegacy_src \
84 PGCC=1 LINUX=1 OPTFLAGS="%{rpmcflags} %{!?debug:-fomit-frame-pointer}"
86 %{__make} -C doomlegacy_src clean LINUX=1
87 %{__make} -C doomlegacy_src \
88 PGCC=1 LINUX=1 SDL=1 OPTFLAGS="%{rpmcflags} %{!?debug:-fomit-frame-pointer}"
91 rm -rf $RPM_BUILD_ROOT
92 install -d $RPM_BUILD_ROOT{%{_bindir},%{_libdir}/doomlegacy,%{_datadir}/doomlegacy,%{_applnkdir}/Games}
94 install bin/llxdoom $RPM_BUILD_ROOT%{_bindir}
95 install bin/lsdldoom $RPM_BUILD_ROOT%{_bindir}
96 install doomlegacy_src/linux_x/sndserv/linux/llsndserv $RPM_BUILD_ROOT%{_libdir}/doomlegacy
97 install doomlegacy_src/linux_x/musserv/linux/musserver $RPM_BUILD_ROOT%{_libdir}/doomlegacy
98 install bin/r_opengl.so $RPM_BUILD_ROOT%{_libdir}/doomlegacy
100 install doom3.wad $RPM_BUILD_ROOT%{_datadir}/doomlegacy
101 install legacy.dat $RPM_BUILD_ROOT%{_datadir}/doomlegacy
103 install %{SOURCE3} $RPM_BUILD_ROOT%{_applnkdir}/Games
104 install %{SOURCE4} $RPM_BUILD_ROOT%{_applnkdir}/Games
108 rm -rf ${RPM_BUILD_ROOT}
111 %defattr(644,root,root,755)
112 %doc doomlegacy_src/_doc/*.txt
113 %dir %{_libdir}/doomlegacy
114 %attr(755,root,root) %{_libdir}/doomlegacy/*serv*
115 %{_datadir}/doomlegacy
118 %defattr(644,root,root,755)
119 %attr(755,root,root) %{_bindir}/llxdoom
120 %attr(755,root,root) %{_libdir}/doomlegacy/r_opengl.so
121 %{_applnkdir}/Games/*x11.desktop
124 %defattr(644,root,root,755)
125 %attr(755,root,root) %{_bindir}/lsdldoom
126 %{_applnkdir}/Games/*sdl.desktop