]> git.pld-linux.org Git - packages/doomlegacy.git/blob - doomlegacy.spec
9bdfdc606b7cf59b89c6e0994be16caa798d8ae2
[packages/doomlegacy.git] / doomlegacy.spec
1 Summary:        DOOM Legacy for Linux
2 Summary(pl):    DOOM Legacy dla Linuksa
3 Name:           doomlegacy
4 Version:        1.32
5 Release:        1.beta1.1
6 License:        GPL, perhaps except for doom3.wad
7 Group:          Applications/Games
8 Source0:        http://prdownloads.sourceforge.net/doomlegacy/legacy_132beta1_src.tar.gz
9 Source1:        http://prdownloads.sourceforge.net/doomlegacy/doom3_wad_132.zip
10 Patch0:         %{name}-paths.patch
11 Patch1:         %{name}-Makefile.patch
12 Patch2:         %{name}-nosndstat.patch
13 BuildRequires:  XFree86-devel
14 BuildRequires:  OpenGL-devel
15 BuildRequires:  SDL_mixer-devel
16 BuildRequires:  nasm
17 BuildRequires:  unzip
18 ExclusiveArch:  %{ix86}
19 Buildroot:      %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
20
21 %define         _prefix         /usr/X11R6
22 %define         debugcflags     -O1 -g
23 %define         _noautoreqdep   libGL.so.1 libGLU.so.1
24
25 %description
26 DOOM Legacy for Linux.
27
28 %description -l pl
29 DOOM Legacy dla Linuksa.
30
31 %package common
32 Summary:        DOOM Legacy for Linux - common files
33 Summary(pl):    DOOM Legacy dla Linuksa - pliki wspólne
34 Group:          X11/Applications/Games
35
36 %description common
37 Common files for both versions of DOOM Legacy.
38
39 %description common -l pl
40 Pliki wspólne dla obu wersji DOOM Legacy.
41
42 %package x11
43 Summary:        DOOM Legacy for Linux - X Window and OpenGL version
44 Summary(pl):    DOOM Legacy dla Linuksa - wersja korzystaj±ca z X Window i OpenGL
45 Group:          X11/Applications/Games
46 Requires:       OpenGL
47
48 %description x11
49 This is DOOM Legacy for Linux - X11 and OpenGL version.
50
51 %description x11 -l pl
52 To jest DOOM Legacy dla Linuksa - wersja korzystaj±ca z X Window i
53 OpenGL.
54
55 %package sdl
56 Summary:        DOOM Legacy for Linux - SDL version
57 Summary(pl):    DOOM Legacy dla Linuksa - wersja korzystaj±ca z SDL
58 Group:          X11/Applications/Games
59 Requires:       OpenGL
60
61 %description sdl
62 This is DOOM Legacy for Linux - SDL version.
63
64 %description sdl -l pl
65 To jest DOOM Legacy dla Linuksa - wersja SDL.
66
67 %prep
68 %setup -q -c -a 1
69 %patch0 -p1
70 %patch1 -p0
71 %patch2 -p1
72
73 %build
74 install -d doomlegacy/linux_x/{musserv,sndserv}/{objs,bin}
75 %{__make} -C doomlegacy PGCC=1 LINUX=1 OPTFLAGS="%{rpmcflags}"
76 %{__make} -C doomlegacy clean LINUX=1
77 %{__make} -C doomlegacy PGCC=1 LINUX=1 SDL=1 OPTFLAGS="%{rpmcflags}"
78
79 %install
80 rm -rf $RPM_BUILD_ROOT
81 install -d $RPM_BUILD_ROOT{%{_bindir},%{_libdir}/doomlegacy,%{_datadir}/doomlegacy}
82
83 install bin/llxdoom     $RPM_BUILD_ROOT%{_bindir}
84 install bin/lsdldoom    $RPM_BUILD_ROOT%{_bindir}
85 install doomlegacy/linux_x/sndserv/linux/llsndserv $RPM_BUILD_ROOT%{_libdir}/doomlegacy
86 install doomlegacy/linux_x/musserv/linux/musserver $RPM_BUILD_ROOT%{_libdir}/doomlegacy
87 install bin/r_opengl.so $RPM_BUILD_ROOT%{_libdir}/doomlegacy
88
89 install doom3.wad       $RPM_BUILD_ROOT%{_datadir}/doomlegacy
90
91 %clean
92 rm -rf ${RPM_BUILD_ROOT}
93
94 %files common
95 %defattr(644,root,root,755)
96 %doc doomlegacy/_doc/*.txt
97 %dir %{_libdir}/doomlegacy
98 %attr(755,root,root) %{_libdir}/doomlegacy/*serv*
99 %{_datadir}/doomlegacy
100
101 %files x11
102 %defattr(644,root,root,755)
103 %attr(755,root,root) %{_bindir}/llxdoom
104 %attr(755,root,root) %{_libdir}/doomlegacy/r_opengl.so
105
106 %files sdl
107 %defattr(644,root,root,755)
108 %attr(755,root,root) %{_bindir}/lsdldoom
This page took 0.028619 seconds and 2 git commands to generate.