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