1 Summary: D1X - modified version of Descent 1
2 Summary(pl.UTF-8): D1X - zmodyfikowana wersja Descenta 1
5 %define sver %(echo %{version} | tr -d .)
7 License: non-commercial
8 Group: X11/Applications/Games
9 Source0: ftp://pyropilots.org/pub/d1x/%{name}%{sver}sc.tar.bz2
10 # Source0-md5: fb52fd2990b2fadcea804238be648e53
11 Patch0: %{name}-config.patch
12 Patch1: %{name}-opt.patch
13 Patch2: %{name}-fix.patch
14 Patch3: %{name}-paths.patch
15 Patch4: %{name}-maths.patch
16 Patch5: %{name}-types.patch
17 Patch6: %{name}-gcc3.patch
18 Patch7: %{name}-joystick.patch
19 Patch8: %{name}-assert.patch
20 Patch9: %{name}-fixc.patch
21 URL: http://d1x.warpcore.org/
22 BuildRequires: OpenGL-devel
23 BuildRequires: SDL-devel >= 1.1
27 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
29 %define _noautoreqdep libGL.so.1 libGLU.so.1
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.
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
39 w trybie dla wielu graczy, jak i bez sieci.
42 Summary: D1X - modified version of Descent 1
43 Summary(pl.UTF-8): D1X - zmodyfikowana wersja Descenta 1
44 Group: X11/Applications/Games
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.
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.
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
59 w trybie dla wielu graczy, jak i bez sieci.
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
63 SDL lub GL) odpowiedni dla posiadanych danych gry (shareware lub
64 pełnej wersji) oraz właściwe pliki z danymi.
67 Summary: D1X - SDL-based binary for full version of game
68 Summary(pl.UTF-8): D1X - używająca SDL binarka dla pełnej wersji gry
69 Group: X11/Applications/Games
71 Requires: %{name}-common = %{version}
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.
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.
83 %package sdl-shareware
84 Summary: D1X - SDL-based binary for shareware version of game
85 Summary(pl.UTF-8): D1X - używająca SDL binarka dla wersji shareware gry
86 Group: X11/Applications/Games
87 Provides: d1x-shareware
88 Requires: %{name}-common = %{version}
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.
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.
101 Summary: D1X - GL-based binary for full version of game
102 Summary(pl.UTF-8): D1X - używająca GL binarka dla pełnej wersji gry
103 Group: X11/Applications/Games
105 Requires: %{name}-common = %{version}
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.
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.
118 %package gl-shareware
119 Summary: D1X - GL-based binary for shareware version of game
120 Summary(pl.UTF-8): D1X - używająca GL binarka dla wersji shareware gry
121 Group: X11/Applications/Games
122 Provides: d1x-shareware
123 Requires: %{name}-common = %{version}
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.
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.
152 echo "NO_ASM = 1" >> defines.in
154 %ifarch sparc sparc64
155 echo "BIGENDIAN = 1" >> defines.in
158 cp -f defines.in defines.mak
159 echo "SDL_IO = 1" >> defines.mak
163 LFLAGS="%{rpmldflags} -L/usr/X11R6/%{_lib}" \
164 OPTFLAGS="%{rpmcflags} -DD1XDATAPATH=\\\"%{_datadir}/d1x/\\\" -I../../main"
165 mv -f ?1x143 d1x-sdl-full
168 echo "SHAREWARE = 1" >> defines.mak
172 LFLAGS="%{rpmldflags} -L/usr/X11R6/%{_lib}" \
173 OPTFLAGS="%{rpmcflags} -DD1XDATAPATH=\\\"%{_datadir}/d1x/\\\" -I../../main"
174 mv -f ?1x143sh d1x-sdl-share
177 cp -f defines.in defines.mak
178 echo "SDLGL_IO = 1" >> defines.mak
182 LFLAGS="%{rpmldflags} -L/usr/X11R6/%{_lib}" \
183 OPTFLAGS="%{rpmcflags} -DD1XDATAPATH=\\\"%{_datadir}/d1x/\\\" -I../../main"
184 mv -f ?1x143_ogl d1x-gl-full
187 echo "SHAREWARE = 1" >> defines.mak
191 LFLAGS="%{rpmldflags} -L/usr/X11R6/%{_lib}" \
192 OPTFLAGS="%{rpmcflags} -DD1XDATAPATH=\\\"%{_datadir}/d1x/\\\" -I../../main"
193 mv -f ?1x143sh_ogl d1x-gl-share
196 rm -rf $RPM_BUILD_ROOT
197 install -d $RPM_BUILD_ROOT{%{_bindir},%{_datadir}/d1x}
199 install d1x-*-* $RPM_BUILD_ROOT%{_bindir}
202 rm -rf $RPM_BUILD_ROOT
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
210 %defattr(644,root,root,755)
211 %attr(755,root,root) %{_bindir}/d1x-sdl-full
214 %defattr(644,root,root,755)
215 %attr(755,root,root) %{_bindir}/d1x-sdl-share
218 %defattr(644,root,root,755)
219 %attr(755,root,root) %{_bindir}/d1x-gl-full
222 %defattr(644,root,root,755)
223 %attr(755,root,root) %{_bindir}/d1x-gl-share