]> git.pld-linux.org Git - packages/doomlegacy.git/blob - doomlegacy.spec
- I'm restoring previous version, it crashes with optimalizations on one machine...
[packages/doomlegacy.git] / doomlegacy.spec
1 Summary:        DOOM Legacy for Linux
2 Summary(pl):    DOOM Legacy dla Linuksa
3 Name:           doomlegacy
4 Version:        1.40
5 Release:        2
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
19 BuildRequires:  nasm
20 BuildRequires:  unzip
21 ExclusiveArch:  %{ix86}
22 Buildroot:      %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
23
24 %define         debugcflags     -O1 -g
25 %define         _noautoreqdep   libGL.so.1 libGLU.so.1
26
27 %description
28 DOOM Legacy for Linux.
29
30 %description -l pl
31 DOOM Legacy dla Linuksa.
32
33 %package common
34 Summary:        DOOM Legacy for Linux - common files
35 Summary(pl):    DOOM Legacy dla Linuksa - pliki wspólne
36 Group:          X11/Applications/Games
37
38 %description common
39 Common files for both versions of DOOM Legacy.
40
41 %description common -l pl
42 Pliki wspólne dla obu wersji DOOM Legacy.
43
44 %package x11
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
48 Requires:       OpenGL
49
50 %description x11
51 This is DOOM Legacy for Linux - X11 and OpenGL version.
52
53 %description x11 -l pl
54 To jest DOOM Legacy dla Linuksa - wersja korzystaj±ca z X Window i
55 OpenGL.
56
57 %package sdl
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
61 Requires:       OpenGL
62
63 %description sdl
64 This is DOOM Legacy for Linux - SDL version.
65
66 %description sdl -l pl
67 To jest DOOM Legacy dla Linuksa - wersja SDL.
68
69 %prep
70 %setup -q -c -a 1 -a 2
71 %patch0 -p0
72 %patch1 -p0
73 %patch2 -p0
74 %patch3 -p0
75
76 %build
77 mkdir bin
78
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}"
83
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}"
87
88 %install
89 rm -rf $RPM_BUILD_ROOT
90 install -d $RPM_BUILD_ROOT{%{_bindir},%{_libdir}/doomlegacy,%{_datadir}/doomlegacy}
91
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
97
98 install doom3.wad       $RPM_BUILD_ROOT%{_datadir}/doomlegacy
99 install legacy.dat      $RPM_BUILD_ROOT%{_datadir}/doomlegacy
100
101 %clean
102 rm -rf ${RPM_BUILD_ROOT}
103
104 %files common
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
110
111 %files x11
112 %defattr(644,root,root,755)
113 %attr(755,root,root) %{_bindir}/llxdoom
114 %attr(755,root,root) %{_libdir}/doomlegacy/r_opengl.so
115
116 %files sdl
117 %defattr(644,root,root,755)
118 %attr(755,root,root) %{_bindir}/lsdldoom
This page took 0.100298 seconds and 3 git commands to generate.