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 URL: http://legacy.newdoom.com/
12 Patch0: %{name}-paths.patch
13 Patch1: %{name}-Makefile.patch
14 Patch2: %{name}-nosndstat.patch
15 Patch3: %{name}-sound.patch
16 BuildRequires: OpenGL-devel
17 BuildRequires: SDL_mixer-devel
18 BuildRequires: XFree86-devel
21 ExclusiveArch: %{ix86}
22 Buildroot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
24 %define debugcflags -O1 -g
25 %define _noautoreqdep libGL.so.1 libGLU.so.1
28 DOOM Legacy for Linux.
31 DOOM Legacy dla Linuksa.
34 Summary: DOOM Legacy for Linux - common files
35 Summary(pl): DOOM Legacy dla Linuksa - pliki wspólne
36 Group: X11/Applications/Games
39 Common files for both versions of DOOM Legacy.
41 %description common -l pl
42 Pliki wspólne dla obu wersji DOOM Legacy.
45 Summary: DOOM Legacy for Linux - X Window and OpenGL version
46 Summary(pl): DOOM Legacy dla Linuksa - wersja korzystaj±ca z X Window i OpenGL
47 Group: X11/Applications/Games
51 This is DOOM Legacy for Linux - X11 and OpenGL version.
53 %description x11 -l pl
54 To jest DOOM Legacy dla Linuksa - wersja korzystaj±ca z X Window i
58 Summary: DOOM Legacy for Linux - SDL version
59 Summary(pl): DOOM Legacy dla Linuksa - wersja korzystaj±ca z SDL
60 Group: X11/Applications/Games
64 This is DOOM Legacy for Linux - SDL version.
66 %description sdl -l pl
67 To jest DOOM Legacy dla Linuksa - wersja SDL.
70 %setup -q -c -a 1 -a 2
79 # linux_x contains some precompiled binary objects (incompatible with glibc 2.3) - kill them
80 %{__make} -C doomlegacy_src clean LINUX=1
81 %{__make} -C doomlegacy_src \
82 PGCC=1 LINUX=1 OPTFLAGS="%{rpmcflags} %{!?debug:-fomit-frame-pointer}"
84 %{__make} -C doomlegacy_src clean LINUX=1
85 %{__make} -C doomlegacy_src \
86 PGCC=1 LINUX=1 SDL=1 OPTFLAGS="%{rpmcflags} %{!?debug:-fomit-frame-pointer}"
89 rm -rf $RPM_BUILD_ROOT
90 install -d $RPM_BUILD_ROOT{%{_bindir},%{_libdir}/doomlegacy,%{_datadir}/doomlegacy}
92 install bin/llxdoom $RPM_BUILD_ROOT%{_bindir}
93 install bin/lsdldoom $RPM_BUILD_ROOT%{_bindir}
94 install doomlegacy_src/linux_x/sndserv/linux/llsndserv $RPM_BUILD_ROOT%{_libdir}/doomlegacy
95 install doomlegacy_src/linux_x/musserv/linux/musserver $RPM_BUILD_ROOT%{_libdir}/doomlegacy
96 install bin/r_opengl.so $RPM_BUILD_ROOT%{_libdir}/doomlegacy
98 install doom3.wad $RPM_BUILD_ROOT%{_datadir}/doomlegacy
99 install legacy.dat $RPM_BUILD_ROOT%{_datadir}/doomlegacy
102 rm -rf ${RPM_BUILD_ROOT}
105 %defattr(644,root,root,755)
106 %doc doomlegacy_src/_doc/*.txt
107 %dir %{_libdir}/doomlegacy
108 %attr(755,root,root) %{_libdir}/doomlegacy/*serv*
109 %{_datadir}/doomlegacy
112 %defattr(644,root,root,755)
113 %attr(755,root,root) %{_bindir}/llxdoom
114 %attr(755,root,root) %{_libdir}/doomlegacy/r_opengl.so
117 %defattr(644,root,root,755)
118 %attr(755,root,root) %{_bindir}/lsdldoom