]> git.pld-linux.org Git - packages/doomlegacy.git/blob - doomlegacy.spec
3c91aa8385579610eb82e106e5d032e1ded7dc8b
[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:        3
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         _noautoreqdep   libGL.so.1 libGLU.so.1
25
26 %description
27 DOOM Legacy for Linux.
28
29 %description -l pl
30 DOOM Legacy dla Linuksa.
31
32 %package common
33 Summary:        DOOM Legacy for Linux - common files
34 Summary(pl):    DOOM Legacy dla Linuksa - pliki wspólne
35 Group:          X11/Applications/Games
36
37 %description common
38 Common files for both versions of DOOM Legacy.
39
40 %description common -l pl
41 Pliki wspólne dla obu wersji DOOM Legacy.
42
43 %package x11
44 Summary:        DOOM Legacy for Linux - X Window and OpenGL version
45 Summary(pl):    DOOM Legacy dla Linuksa - wersja korzystaj±ca z X Window i OpenGL
46 Group:          X11/Applications/Games
47 Requires:       OpenGL
48
49 %description x11
50 This is DOOM Legacy for Linux - X11 and OpenGL version.
51
52 %description x11 -l pl
53 To jest DOOM Legacy dla Linuksa - wersja korzystaj±ca z X Window i
54 OpenGL.
55
56 %package sdl
57 Summary:        DOOM Legacy for Linux - SDL version
58 Summary(pl):    DOOM Legacy dla Linuksa - wersja korzystaj±ca z SDL
59 Group:          X11/Applications/Games
60 Requires:       OpenGL
61
62 %description sdl
63 This is DOOM Legacy for Linux - SDL version.
64
65 %description sdl -l pl
66 To jest DOOM Legacy dla Linuksa - wersja SDL.
67
68 %prep
69 %setup -q -c -a 1 -a 2
70 %patch0 -p0
71 %patch1 -p0
72 %patch2 -p0
73 %patch3 -p0
74
75 %build
76 mkdir bin
77
78 # linux_x contains some precompiled binary objects (incompatible with glibc 2.3) - kill them
79 %{__make} -C doomlegacy_src clean LINUX=1
80 %{__make} -C doomlegacy_src \
81         PGCC=1 LINUX=1 OPTFLAGS="%{rpmcflags}"
82
83 %{__make} -C doomlegacy_src clean LINUX=1
84 %{__make} -C doomlegacy_src \
85         PGCC=1 LINUX=1 SDL=1 OPTFLAGS="%{rpmcflags}"
86
87 %install
88 rm -rf $RPM_BUILD_ROOT
89 install -d $RPM_BUILD_ROOT{%{_bindir},%{_libdir}/doomlegacy,%{_datadir}/doomlegacy}
90
91 install bin/llxdoom     $RPM_BUILD_ROOT%{_bindir}
92 install bin/lsdldoom    $RPM_BUILD_ROOT%{_bindir}
93 install doomlegacy_src/linux_x/sndserv/linux/llsndserv $RPM_BUILD_ROOT%{_libdir}/doomlegacy
94 install doomlegacy_src/linux_x/musserv/linux/musserver $RPM_BUILD_ROOT%{_libdir}/doomlegacy
95 install bin/r_opengl.so $RPM_BUILD_ROOT%{_libdir}/doomlegacy
96
97 install doom3.wad       $RPM_BUILD_ROOT%{_datadir}/doomlegacy
98 install legacy.dat      $RPM_BUILD_ROOT%{_datadir}/doomlegacy
99
100 %clean
101 rm -rf ${RPM_BUILD_ROOT}
102
103 %files common
104 %defattr(644,root,root,755)
105 %doc doomlegacy_src/_doc/*.txt
106 %dir %{_libdir}/doomlegacy
107 %attr(755,root,root) %{_libdir}/doomlegacy/*serv*
108 %{_datadir}/doomlegacy
109
110 %files x11
111 %defattr(644,root,root,755)
112 %attr(755,root,root) %{_bindir}/llxdoom
113 %attr(755,root,root) %{_libdir}/doomlegacy/r_opengl.so
114
115 %files sdl
116 %defattr(644,root,root,755)
117 %attr(755,root,root) %{_bindir}/lsdldoom
This page took 0.058734 seconds and 2 git commands to generate.