]> git.pld-linux.org Git - packages/doomlegacy.git/blobdiff - doomlegacy.spec
- fixed Makefile patch (more OPTFLAGS needed)
[packages/doomlegacy.git] / doomlegacy.spec
index 9bdfdc606b7cf59b89c6e0994be16caa798d8ae2..f968c38fa67f7997908df4669b7985d61f3c9c72 100644 (file)
@@ -1,24 +1,26 @@
 Summary:       DOOM Legacy for Linux
 Summary(pl):   DOOM Legacy dla Linuksa
 Name:          doomlegacy
-Version:       1.32
-Release:       1.beta1.1
+Version:       1.40
+Release:       2
 License:       GPL, perhaps except for doom3.wad
 Group:         Applications/Games
-Source0:       http://prdownloads.sourceforge.net/doomlegacy/legacy_132beta1_src.tar.gz
-Source1:       http://prdownloads.sourceforge.net/doomlegacy/doom3_wad_132.zip
+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
 Patch2:                %{name}-nosndstat.patch
-BuildRequires: XFree86-devel
+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
 
@@ -65,16 +67,23 @@ This is DOOM Legacy for Linux - SDL version.
 To jest DOOM Legacy dla Linuksa - wersja SDL.
 
 %prep
-%setup -q -c -a 1
-%patch0 -p1
+%setup -q -c -a 1 -a 2
+%patch0 -p0
 %patch1 -p0
-%patch2 -p1
+%patch2 -p0
+%patch3 -p0
 
 %build
-install -d doomlegacy/linux_x/{musserv,sndserv}/{objs,bin}
-%{__make} -C doomlegacy PGCC=1 LINUX=1 OPTFLAGS="%{rpmcflags}"
-%{__make} -C doomlegacy clean LINUX=1
-%{__make} -C doomlegacy PGCC=1 LINUX=1 SDL=1 OPTFLAGS="%{rpmcflags}"
+mkdir bin
+
+# 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}"
+
+%{__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
@@ -82,18 +91,19 @@ install -d $RPM_BUILD_ROOT{%{_bindir},%{_libdir}/doomlegacy,%{_datadir}/doomlega
 
 install bin/llxdoom    $RPM_BUILD_ROOT%{_bindir}
 install bin/lsdldoom   $RPM_BUILD_ROOT%{_bindir}
-install doomlegacy/linux_x/sndserv/linux/llsndserv $RPM_BUILD_ROOT%{_libdir}/doomlegacy
-install doomlegacy/linux_x/musserv/linux/musserver $RPM_BUILD_ROOT%{_libdir}/doomlegacy
+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
 
 install doom3.wad      $RPM_BUILD_ROOT%{_datadir}/doomlegacy
+install legacy.dat     $RPM_BUILD_ROOT%{_datadir}/doomlegacy
 
 %clean
 rm -rf ${RPM_BUILD_ROOT}
 
 %files common
 %defattr(644,root,root,755)
-%doc doomlegacy/_doc/*.txt
+%doc doomlegacy_src/_doc/*.txt
 %dir %{_libdir}/doomlegacy
 %attr(755,root,root) %{_libdir}/doomlegacy/*serv*
 %{_datadir}/doomlegacy
This page took 0.167924 seconds and 4 git commands to generate.