]> git.pld-linux.org Git - packages/doomlegacy.git/blobdiff - doomlegacy.spec
- I'm restoring previous version, it crashes with optimalizations on one machine...
[packages/doomlegacy.git] / doomlegacy.spec
index 5f31e53a7d37ff9401fe8150783214dd7abfcd13..f968c38fa67f7997908df4669b7985d61f3c9c72 100644 (file)
-Summary:       DOOM Legacy for Linux X-Windows and Mesa
+Summary:       DOOM Legacy for Linux
+Summary(pl):   DOOM Legacy dla Linuksa
 Name:          doomlegacy
-Version:       1.32
-Release:       1.beta1
-Source0:       http://prdownloads.sourceforge.net/doomlegacy/legacy_132beta1_src.tar.gz
-Source1:       http://prdownloads.sourceforge.net/doomlegacy/doom3_wad_132.zip
+Version:       1.40
+Release:       2
+License:       GPL, perhaps except for doom3.wad
+Group:         Applications/Games
+Source0:       http://dl.sourceforge.net/doomlegacy/legacy_140_src.tar.gz
+Source1:       http://dl.sourceforge.net/doomlegacy/doom3_wad_132.zip
+Source2:       http://dl.sourceforge.net/doomlegacy/legacy_dat.zip
+URL:           http://legacy.newdoom.com/
 Patch0:                %{name}-paths.patch
 Patch1:                %{name}-Makefile.patch
-License:       GPL, perhaps except for doom3.wad
-Group:         Amusements/Games
+Patch2:                %{name}-nosndstat.patch
+Patch3:                %{name}-sound.patch
+BuildRequires: OpenGL-devel
+BuildRequires: SDL_mixer-devel
+BuildRequires: XFree86-devel
+BuildRequires: nasm
+BuildRequires: unzip
+ExclusiveArch: %{ix86}
 Buildroot:     %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
 
-%define                _prefix /usr/X11R6
+%define                debugcflags     -O1 -g
+%define                _noautoreqdep   libGL.so.1 libGLU.so.1
 
 %description
-This is Doom Legacy for Linux X11 and Mesa.
+DOOM Legacy for Linux.
+
+%description -l pl
+DOOM Legacy dla Linuksa.
+
+%package common
+Summary:       DOOM Legacy for Linux - common files
+Summary(pl):   DOOM Legacy dla Linuksa - pliki wspólne
+Group:         X11/Applications/Games
+
+%description common
+Common files for both versions of DOOM Legacy.
+
+%description common -l pl
+Pliki wspólne dla obu wersji DOOM Legacy.
+
+%package x11
+Summary:       DOOM Legacy for Linux - X Window and OpenGL version
+Summary(pl):   DOOM Legacy dla Linuksa - wersja korzystaj±ca z X Window i OpenGL
+Group:         X11/Applications/Games
+Requires:      OpenGL
+
+%description x11
+This is DOOM Legacy for Linux - X11 and OpenGL version.
+
+%description x11 -l pl
+To jest DOOM Legacy dla Linuksa - wersja korzystaj±ca z X Window i
+OpenGL.
+
+%package sdl
+Summary:       DOOM Legacy for Linux - SDL version
+Summary(pl):   DOOM Legacy dla Linuksa - wersja korzystaj±ca z SDL
+Group:         X11/Applications/Games
+Requires:      OpenGL
+
+%description sdl
+This is DOOM Legacy for Linux - SDL version.
+
+%description sdl -l pl
+To jest DOOM Legacy dla Linuksa - wersja SDL.
 
 %prep
-%setup -q -n doomlegacy -a 1
-%patch0 -p1
-%patch1 -p1
+%setup -q -c -a 1 -a 2
+%patch0 -p0
+%patch1 -p0
+%patch2 -p0
+%patch3 -p0
 
 %build
-install -d {,linux_x/{musserv,sndesrv}/}{objs,bin}
-%{__make} PGCC=1 LINUX=1 OPTFLAGS="%{!?debug:%{rpmcflags}} %{?debug:-O1 -g}"
+mkdir bin
 
-%install
-install -d $RPM_BUILD_ROOT{%{_bindir},%{_libdir}/doom,%{_datadir}/games/doom}
+# linux_x contains some precompiled binary objects (incompatible with glibc 2.3) - kill them
+%{__make} -C doomlegacy_src clean LINUX=1
+%{__make} -C doomlegacy_src \
+       PGCC=1 LINUX=1 OPTFLAGS="%{rpmcflags} %{!?debug:-fomit-frame-pointer}"
 
-install ../bin/llxdoom                 $RPM_BUILD_ROOT%{_bindir}
-install linux_x/sndserv/linux/llsndserv $RPM_BUILD_ROOT%{_bindir}
-install linux_x/musserv/linux/musserver $RPM_BUILD_ROOT%{_bindir}
-install ../bin/r_opengl.so             $RPM_BUILD_ROOT%{_libdir}/doom
+%{__make} -C doomlegacy_src clean LINUX=1
+%{__make} -C doomlegacy_src \
+       PGCC=1 LINUX=1 SDL=1 OPTFLAGS="%{rpmcflags} %{!?debug:-fomit-frame-pointer}"
+
+%install
+rm -rf $RPM_BUILD_ROOT
+install -d $RPM_BUILD_ROOT{%{_bindir},%{_libdir}/doomlegacy,%{_datadir}/doomlegacy}
 
-install doom3.wad                      $RPM_BUILD_ROOT%{_datadir}/games/doom
+install bin/llxdoom    $RPM_BUILD_ROOT%{_bindir}
+install bin/lsdldoom   $RPM_BUILD_ROOT%{_bindir}
+install doomlegacy_src/linux_x/sndserv/linux/llsndserv $RPM_BUILD_ROOT%{_libdir}/doomlegacy
+install doomlegacy_src/linux_x/musserv/linux/musserver $RPM_BUILD_ROOT%{_libdir}/doomlegacy
+install bin/r_opengl.so        $RPM_BUILD_ROOT%{_libdir}/doomlegacy
 
-gzip -9nf _doc/*.txt
+install doom3.wad      $RPM_BUILD_ROOT%{_datadir}/doomlegacy
+install legacy.dat     $RPM_BUILD_ROOT%{_datadir}/doomlegacy
 
 %clean
 rm -rf ${RPM_BUILD_ROOT}
 
-%files
+%files common
+%defattr(644,root,root,755)
+%doc doomlegacy_src/_doc/*.txt
+%dir %{_libdir}/doomlegacy
+%attr(755,root,root) %{_libdir}/doomlegacy/*serv*
+%{_datadir}/doomlegacy
+
+%files x11
+%defattr(644,root,root,755)
+%attr(755,root,root) %{_bindir}/llxdoom
+%attr(755,root,root) %{_libdir}/doomlegacy/r_opengl.so
+
+%files sdl
 %defattr(644,root,root,755)
-%doc _doc/*.txt.gz
-%attr(755,root,root) %{_bindir}/*
-%attr(755,root,root) %{_libdir}/*
-%{_datadir}/games/doom/doom3.wad
+%attr(755,root,root) %{_bindir}/lsdldoom
This page took 0.6796 seconds and 4 git commands to generate.