]> git.pld-linux.org Git - packages/doomlegacy.git/blob - doomlegacy.spec
e28111d6619d3a8fd0ed9bec8e7ce4a5e87c647c
[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:        4
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 Icon:           doomlegacy.xpm
14 URL:            http://legacy.newdoom.com/
15 Patch0:         %{name}-paths.patch
16 Patch1:         %{name}-Makefile.patch
17 Patch2:         %{name}-nosndstat.patch
18 Patch3:         %{name}-sound.patch
19 BuildRequires:  OpenGL-devel
20 BuildRequires:  SDL_mixer-devel
21 BuildRequires:  XFree86-devel
22 BuildRequires:  nasm
23 BuildRequires:  unzip
24 ExclusiveArch:  %{ix86}
25 Buildroot:      %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
26
27 %define         _prefix         /usr/X11R6
28 %define         debugcflags     -O1 -g
29 %define         _noautoreqdep   libGL.so.1 libGLU.so.1
30
31 %description
32 DOOM Legacy for Linux.
33
34 %description -l pl
35 DOOM Legacy dla Linuksa.
36
37 %package common
38 Summary:        DOOM Legacy for Linux - common files
39 Summary(pl):    DOOM Legacy dla Linuksa - pliki wspólne
40 Group:          X11/Applications/Games
41
42 %description common
43 Common files for both versions of DOOM Legacy.
44
45 %description common -l pl
46 Pliki wspólne dla obu wersji DOOM Legacy.
47
48 %package x11
49 Summary:        DOOM Legacy for Linux - X Window and OpenGL version
50 Summary(pl):    DOOM Legacy dla Linuksa - wersja korzystaj±ca z X Window i OpenGL
51 Group:          X11/Applications/Games
52 Requires:       OpenGL
53
54 %description x11
55 This is DOOM Legacy for Linux - X11 and OpenGL version.
56
57 %description x11 -l pl
58 To jest DOOM Legacy dla Linuksa - wersja korzystaj±ca z X Window i
59 OpenGL.
60
61 %package sdl
62 Summary:        DOOM Legacy for Linux - SDL version
63 Summary(pl):    DOOM Legacy dla Linuksa - wersja korzystaj±ca z SDL
64 Group:          X11/Applications/Games
65 Requires:       OpenGL
66
67 %description sdl
68 This is DOOM Legacy for Linux - SDL version.
69
70 %description sdl -l pl
71 To jest DOOM Legacy dla Linuksa - wersja SDL.
72
73 %prep
74 %setup -q -c -a 1 -a 2
75 %patch0 -p0
76 %patch1 -p0
77 %patch2 -p0
78 %patch3 -p0
79
80 %build
81 mkdir bin
82
83 # linux_x contains some precompiled binary objects (incompatible with glibc 2.3) - kill them
84 %{__make} -C doomlegacy_src clean LINUX=1
85 %{__make} -C doomlegacy_src \
86         PGCC=1 LINUX=1 OPTFLAGS="%{rpmcflags} %{!?debug:-fomit-frame-pointer}"
87
88 %{__make} -C doomlegacy_src clean LINUX=1
89 %{__make} -C doomlegacy_src \
90         PGCC=1 LINUX=1 SDL=1 OPTFLAGS="%{rpmcflags} %{!?debug:-fomit-frame-pointer}"
91
92 %install
93 rm -rf $RPM_BUILD_ROOT
94 install -d $RPM_BUILD_ROOT{%{_bindir},%{_libdir}/doomlegacy,%{_datadir}/doomlegacy,%{_applnkdir}/Games/Arcade}
95
96 install bin/llxdoom     $RPM_BUILD_ROOT%{_bindir}
97 install bin/lsdldoom    $RPM_BUILD_ROOT%{_bindir}
98 install doomlegacy_src/linux_x/sndserv/linux/llsndserv $RPM_BUILD_ROOT%{_libdir}/doomlegacy
99 install doomlegacy_src/linux_x/musserv/linux/musserver $RPM_BUILD_ROOT%{_libdir}/doomlegacy
100 install bin/r_opengl.so $RPM_BUILD_ROOT%{_libdir}/doomlegacy
101
102 install doom3.wad       $RPM_BUILD_ROOT%{_datadir}/doomlegacy
103 install legacy.dat      $RPM_BUILD_ROOT%{_datadir}/doomlegacy
104
105 install %{SOURCE3} $RPM_BUILD_ROOT%{_applnkdir}/Games/Arcade
106 install %{SOURCE4} $RPM_BUILD_ROOT%{_applnkdir}/Games/Arcade
107
108 %clean
109 rm -rf ${RPM_BUILD_ROOT}
110
111 %post common
112 echo "To run legacy doom You need either Doom.wad, Doom1.wad, Doom2.wad,"
113 echo "Tnt.wad, Plutonia.wad, Heretic.wad or Heretic1.wad"
114 echo "from any sharware or commercial version of Doom or Heretic!"
115
116 %files common
117 %defattr(644,root,root,755)
118 %doc doomlegacy_src/_doc/*.txt
119 %dir %{_libdir}/doomlegacy
120 %attr(755,root,root) %{_libdir}/doomlegacy/*serv*
121 %{_datadir}/doomlegacy
122
123 %files x11
124 %defattr(644,root,root,755)
125 %attr(755,root,root) %{_bindir}/llxdoom
126 %attr(755,root,root) %{_libdir}/doomlegacy/r_opengl.so
127 %{_applnkdir}/Games/Arcade/*x11.desktop
128
129 %files sdl
130 %defattr(644,root,root,755)
131 %attr(755,root,root) %{_bindir}/lsdldoom
132 %{_applnkdir}/Games/Arcade/*sdl.desktop
This page took 0.025137 seconds and 2 git commands to generate.