]>
Commit | Line | Data |
---|---|---|
2731beaf | 1 | Summary: D1X - modified version of Descent 1 |
67193c51 | 2 | Summary(pl.UTF-8): D1X - zmodyfikowana wersja Descenta 1 |
2731beaf JB |
3 | Name: d1x |
4 | Version: 1.43 | |
5 | %define sver %(echo %{version} | tr -d .) | |
931371ec | 6 | Release: 6 |
1d33e298 | 7 | License: non-commercial |
2731beaf JB |
8 | Group: X11/Applications/Games |
9 | Source0: ftp://pyropilots.org/pub/d1x/%{name}%{sver}sc.tar.bz2 | |
66c90c5e | 10 | # Source0-md5: fb52fd2990b2fadcea804238be648e53 |
2731beaf JB |
11 | Patch0: %{name}-config.patch |
12 | Patch1: %{name}-opt.patch | |
13 | Patch2: %{name}-fix.patch | |
14 | Patch3: %{name}-paths.patch | |
b0135d87 | 15 | Patch4: %{name}-maths.patch |
8f59dc62 | 16 | Patch5: %{name}-types.patch |
7079c373 | 17 | Patch6: %{name}-gcc3.patch |
53ace1d5 JB |
18 | Patch7: %{name}-joystick.patch |
19 | Patch8: %{name}-assert.patch | |
92b3272d | 20 | Patch9: %{name}-fixc.patch |
2731beaf JB |
21 | URL: http://d1x.warpcore.org/ |
22 | BuildRequires: OpenGL-devel | |
23 | BuildRequires: SDL-devel >= 1.1 | |
24 | %ifarch %{ix86} | |
25 | BuildRequires: nasm | |
26 | %endif | |
27 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) | |
28 | ||
2731beaf JB |
29 | %define _noautoreqdep libGL.so.1 libGLU.so.1 |
30 | ||
31 | %description | |
32 | D1X is a modification of the Descent 1 source that was released by | |
33 | Parallax. It's mostly compatible with the Descent 1 v1.5, both in | |
34 | multiplayer and on the local machine. | |
35 | ||
b35fad66 JR |
36 | %description -l pl.UTF-8 |
37 | D1X to modyfikacja źródeł Descenta 1 udostępnionych przez Parallax. | |
38 | Jest w większości kompatybilny z Descentem 1 w wersji 1.5, zarówno | |
2731beaf JB |
39 | w trybie dla wielu graczy, jak i bez sieci. |
40 | ||
41 | %package common | |
42 | Summary: D1X - modified version of Descent 1 | |
67193c51 | 43 | Summary(pl.UTF-8): D1X - zmodyfikowana wersja Descenta 1 |
2731beaf JB |
44 | Group: X11/Applications/Games |
45 | ||
46 | %description common | |
47 | D1X is a modification of the Descent 1 source that was released by | |
48 | Parallax. It's mostly compatible with the Descent 1 v1.5, both in | |
49 | multiplayer and on the local machine. | |
50 | ||
51 | This package contains only common files for all versions of D1X. You | |
52 | will need also one of game binaries (either SDL or GL version) | |
53 | appropriate for your versions of game data (shareware or full) and | |
54 | actual game data files. | |
55 | ||
b35fad66 JR |
56 | %description common -l pl.UTF-8 |
57 | D1X to modyfikacja źródeł Descenta 1 udostępnionych przez Parallax. | |
58 | Jest w większości kompatybilny z Descentem 1 w wersji 1.5, zarówno | |
2731beaf JB |
59 | w trybie dla wielu graczy, jak i bez sieci. |
60 | ||
b35fad66 JR |
61 | Ten pakiet zawiera tylko wspólne pliki dla wszystkich wersji D1X. |
62 | Oprócz niego potrzebny jest któryś z pakietów z binarką gry (w wersji | |
2731beaf | 63 | SDL lub GL) odpowiedni dla posiadanych danych gry (shareware lub |
b35fad66 | 64 | pełnej wersji) oraz właściwe pliki z danymi. |
2731beaf JB |
65 | |
66 | %package sdl-full | |
67 | Summary: D1X - SDL-based binary for full version of game | |
67193c51 | 68 | Summary(pl.UTF-8): D1X - używająca SDL binarka dla pełnej wersji gry |
2731beaf JB |
69 | Group: X11/Applications/Games |
70 | Provides: d1x-full | |
71 | Requires: %{name}-common = %{version} | |
72 | ||
73 | %description sdl-full | |
74 | This package contains D1X binary compiled with SDL support for full | |
75 | version of game. You will need to place full (commercial) version of | |
76 | game data files in /usr/X11R6/share/d1x. | |
77 | ||
b35fad66 JR |
78 | %description sdl-full -l pl.UTF-8 |
79 | Ten pakiet zawiera binarkę D1X skompilowaną z obsługą SDL dla pełnej | |
80 | wersji gry. Pliki z danymi z pełnej (komercyjnej) wersji gry trzeba | |
81 | umieścić w katalogu /usr/X11R6/share/d1x. | |
2731beaf JB |
82 | |
83 | %package sdl-shareware | |
84 | Summary: D1X - SDL-based binary for shareware version of game | |
67193c51 | 85 | Summary(pl.UTF-8): D1X - używająca SDL binarka dla wersji shareware gry |
2731beaf JB |
86 | Group: X11/Applications/Games |
87 | Provides: d1x-shareware | |
88 | Requires: %{name}-common = %{version} | |
89 | ||
90 | %description sdl-shareware | |
91 | This package contains D1X binary compiled with SDL support for full | |
92 | version of game. You will need to install d1x-data-shareware package | |
93 | or place shareware version of game data files in /usr/X11R6/share/d1x. | |
94 | ||
b35fad66 JR |
95 | %description sdl-shareware -l pl.UTF-8 |
96 | Ten pakiet zawiera binarkę D1X skompilowaną z obsługą SDL dla wersji | |
97 | shareware gry. Trzeba do niego doinstalować pakiet d1x-data-shareware | |
98 | lub pliki z danymi z wersji shareware umieścić w /usr/X11R6/share/d1x. | |
2731beaf JB |
99 | |
100 | %package gl-full | |
101 | Summary: D1X - GL-based binary for full version of game | |
67193c51 | 102 | Summary(pl.UTF-8): D1X - używająca GL binarka dla pełnej wersji gry |
2731beaf JB |
103 | Group: X11/Applications/Games |
104 | Provides: d1x-full | |
105 | Requires: %{name}-common = %{version} | |
106 | Requires: OpenGL | |
107 | ||
108 | %description gl-full | |
109 | This package contains D1X binary compiled with GL support for full | |
110 | version of game. You will need to place full (commercial) version of | |
111 | game data files in /usr/X11R6/share/d1x. | |
112 | ||
b35fad66 JR |
113 | %description gl-full -l pl.UTF-8 |
114 | Ten pakiet zawiera binarkę D1X skompilowaną z obsługą GL dla pełnej | |
115 | wersji gry. Pliki z danymi z pełnej (komercyjnej) wersji gry trzeba | |
116 | umieścić w katalogu /usr/X11R6/share/d1x. | |
2731beaf JB |
117 | |
118 | %package gl-shareware | |
119 | Summary: D1X - GL-based binary for shareware version of game | |
67193c51 | 120 | Summary(pl.UTF-8): D1X - używająca GL binarka dla wersji shareware gry |
2731beaf JB |
121 | Group: X11/Applications/Games |
122 | Provides: d1x-shareware | |
123 | Requires: %{name}-common = %{version} | |
124 | Requires: OpenGL | |
125 | ||
126 | %description gl-shareware | |
127 | This package contains D1X binary compiled with GL support for full | |
128 | version of game. You will need to install d1x-data-shareware package | |
129 | or place shareware version of game data files in /usr/X11R6/share/d1x. | |
130 | ||
b35fad66 JR |
131 | %description gl-shareware -l pl.UTF-8 |
132 | Ten pakiet zawiera binarkę D1X skompilowaną z obsługą GL dla wersji | |
133 | shareware gry. Trzeba do niego doinstalować pakiet d1x-data-shareware | |
134 | lub pliki z danymi z wersji shareware umieścić w /usr/X11R6/share/d1x. | |
2731beaf JB |
135 | |
136 | %prep | |
137 | %setup -q -n %{name} | |
138 | %patch0 -p1 | |
139 | %patch1 -p1 | |
140 | %patch2 -p1 | |
141 | %patch3 -p1 | |
b0135d87 | 142 | %patch4 -p1 |
8f59dc62 | 143 | %patch5 -p1 |
7079c373 | 144 | %patch6 -p1 |
53ace1d5 JB |
145 | %patch7 -p1 |
146 | %patch8 -p1 | |
92b3272d | 147 | %patch9 -p1 |
2731beaf JB |
148 | |
149 | %build | |
150 | mkdir lib | |
151 | %ifnarch %{ix86} | |
152 | echo "NO_ASM = 1" >> defines.in | |
153 | %endif | |
154 | %ifarch sparc sparc64 | |
155 | echo "BIGENDIAN = 1" >> defines.in | |
156 | %endif | |
157 | ||
158 | cp -f defines.in defines.mak | |
159 | echo "SDL_IO = 1" >> defines.mak | |
160 | %{__make} \ | |
92b3272d JB |
161 | CC="%{__cc}" \ |
162 | CXX="%{__cxx}" \ | |
163 | LFLAGS="%{rpmldflags} -L/usr/X11R6/%{_lib}" \ | |
164 | OPTFLAGS="%{rpmcflags} -DD1XDATAPATH=\\\"%{_datadir}/d1x/\\\" -I../../main" | |
2731beaf JB |
165 | mv -f ?1x143 d1x-sdl-full |
166 | ||
167 | %{__make} clean | |
168 | echo "SHAREWARE = 1" >> defines.mak | |
169 | %{__make} \ | |
92b3272d JB |
170 | CC="%{__cc}" \ |
171 | CXX="%{__cxx}" \ | |
172 | LFLAGS="%{rpmldflags} -L/usr/X11R6/%{_lib}" \ | |
173 | OPTFLAGS="%{rpmcflags} -DD1XDATAPATH=\\\"%{_datadir}/d1x/\\\" -I../../main" | |
2731beaf JB |
174 | mv -f ?1x143sh d1x-sdl-share |
175 | ||
176 | %{__make} clean | |
177 | cp -f defines.in defines.mak | |
178 | echo "SDLGL_IO = 1" >> defines.mak | |
179 | %{__make} \ | |
92b3272d JB |
180 | CC="%{__cc}" \ |
181 | CXX="%{__cxx}" \ | |
182 | LFLAGS="%{rpmldflags} -L/usr/X11R6/%{_lib}" \ | |
183 | OPTFLAGS="%{rpmcflags} -DD1XDATAPATH=\\\"%{_datadir}/d1x/\\\" -I../../main" | |
2731beaf JB |
184 | mv -f ?1x143_ogl d1x-gl-full |
185 | ||
186 | %{__make} clean | |
187 | echo "SHAREWARE = 1" >> defines.mak | |
188 | %{__make} \ | |
92b3272d JB |
189 | CC="%{__cc}" \ |
190 | CXX="%{__cxx}" \ | |
191 | LFLAGS="%{rpmldflags} -L/usr/X11R6/%{_lib}" \ | |
192 | OPTFLAGS="%{rpmcflags} -DD1XDATAPATH=\\\"%{_datadir}/d1x/\\\" -I../../main" | |
2731beaf JB |
193 | mv -f ?1x143sh_ogl d1x-gl-share |
194 | ||
195 | %install | |
196 | rm -rf $RPM_BUILD_ROOT | |
197 | install -d $RPM_BUILD_ROOT{%{_bindir},%{_datadir}/d1x} | |
198 | ||
199 | install d1x-*-* $RPM_BUILD_ROOT%{_bindir} | |
200 | ||
201 | %clean | |
202 | rm -rf $RPM_BUILD_ROOT | |
203 | ||
204 | %files common | |
205 | %defattr(644,root,root,755) | |
206 | %doc bugs.txt d1x.faq d1x.ini d1x.txt d1x140.txt license.txt readme.d1x readme.org todo.txt | |
207 | %dir %{_datadir}/d1x | |
208 | ||
209 | %files sdl-full | |
210 | %defattr(644,root,root,755) | |
211 | %attr(755,root,root) %{_bindir}/d1x-sdl-full | |
212 | ||
213 | %files sdl-shareware | |
214 | %defattr(644,root,root,755) | |
215 | %attr(755,root,root) %{_bindir}/d1x-sdl-share | |
216 | ||
217 | %files gl-full | |
218 | %defattr(644,root,root,755) | |
219 | %attr(755,root,root) %{_bindir}/d1x-gl-full | |
220 | ||
221 | %files gl-shareware | |
222 | %defattr(644,root,root,755) | |
e80e697c | 223 | %attr(755,root,root) %{_bindir}/d1x-gl-share |