]> git.pld-linux.org Git - packages/d1x.git/blame - d1x.spec
- tabs in preamble
[packages/d1x.git] / d1x.spec
CommitLineData
2731beaf 1Summary: D1X - modified version of Descent 1
67193c51 2Summary(pl.UTF-8): D1X - zmodyfikowana wersja Descenta 1
2731beaf
JB
3Name: d1x
4Version: 1.43
5%define sver %(echo %{version} | tr -d .)
931371ec 6Release: 6
1d33e298 7License: non-commercial
2731beaf
JB
8Group: X11/Applications/Games
9Source0: ftp://pyropilots.org/pub/d1x/%{name}%{sver}sc.tar.bz2
66c90c5e 10# Source0-md5: fb52fd2990b2fadcea804238be648e53
2731beaf
JB
11Patch0: %{name}-config.patch
12Patch1: %{name}-opt.patch
13Patch2: %{name}-fix.patch
14Patch3: %{name}-paths.patch
b0135d87 15Patch4: %{name}-maths.patch
8f59dc62 16Patch5: %{name}-types.patch
7079c373 17Patch6: %{name}-gcc3.patch
53ace1d5
JB
18Patch7: %{name}-joystick.patch
19Patch8: %{name}-assert.patch
92b3272d 20Patch9: %{name}-fixc.patch
2731beaf
JB
21URL: http://d1x.warpcore.org/
22BuildRequires: OpenGL-devel
23BuildRequires: SDL-devel >= 1.1
24%ifarch %{ix86}
25BuildRequires: nasm
26%endif
27BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
28
2731beaf
JB
29%define _noautoreqdep libGL.so.1 libGLU.so.1
30
31%description
32D1X is a modification of the Descent 1 source that was released by
33Parallax. It's mostly compatible with the Descent 1 v1.5, both in
34multiplayer and on the local machine.
35
b35fad66
JR
36%description -l pl.UTF-8
37D1X to modyfikacja źródeł Descenta 1 udostępnionych przez Parallax.
38Jest w większości kompatybilny z Descentem 1 w wersji 1.5, zarówno
2731beaf
JB
39w trybie dla wielu graczy, jak i bez sieci.
40
41%package common
42Summary: D1X - modified version of Descent 1
67193c51 43Summary(pl.UTF-8): D1X - zmodyfikowana wersja Descenta 1
2731beaf
JB
44Group: X11/Applications/Games
45
46%description common
47D1X is a modification of the Descent 1 source that was released by
48Parallax. It's mostly compatible with the Descent 1 v1.5, both in
49multiplayer and on the local machine.
50
51This package contains only common files for all versions of D1X. You
52will need also one of game binaries (either SDL or GL version)
53appropriate for your versions of game data (shareware or full) and
54actual game data files.
55
b35fad66
JR
56%description common -l pl.UTF-8
57D1X to modyfikacja źródeł Descenta 1 udostępnionych przez Parallax.
58Jest w większości kompatybilny z Descentem 1 w wersji 1.5, zarówno
2731beaf
JB
59w trybie dla wielu graczy, jak i bez sieci.
60
b35fad66
JR
61Ten pakiet zawiera tylko wspólne pliki dla wszystkich wersji D1X.
62Oprócz niego potrzebny jest któryś z pakietów z binarką gry (w wersji
2731beaf 63SDL lub GL) odpowiedni dla posiadanych danych gry (shareware lub
b35fad66 64pełnej wersji) oraz właściwe pliki z danymi.
2731beaf
JB
65
66%package sdl-full
67Summary: D1X - SDL-based binary for full version of game
67193c51 68Summary(pl.UTF-8): D1X - używająca SDL binarka dla pełnej wersji gry
2731beaf
JB
69Group: X11/Applications/Games
70Provides: d1x-full
71Requires: %{name}-common = %{version}
72
73%description sdl-full
74This package contains D1X binary compiled with SDL support for full
75version of game. You will need to place full (commercial) version of
76game data files in /usr/X11R6/share/d1x.
77
b35fad66
JR
78%description sdl-full -l pl.UTF-8
79Ten pakiet zawiera binarkę D1X skompilowaną z obsługą SDL dla pełnej
80wersji gry. Pliki z danymi z pełnej (komercyjnej) wersji gry trzeba
81umieścić w katalogu /usr/X11R6/share/d1x.
2731beaf
JB
82
83%package sdl-shareware
84Summary: D1X - SDL-based binary for shareware version of game
67193c51 85Summary(pl.UTF-8): D1X - używająca SDL binarka dla wersji shareware gry
2731beaf
JB
86Group: X11/Applications/Games
87Provides: d1x-shareware
88Requires: %{name}-common = %{version}
89
90%description sdl-shareware
91This package contains D1X binary compiled with SDL support for full
92version of game. You will need to install d1x-data-shareware package
93or place shareware version of game data files in /usr/X11R6/share/d1x.
94
b35fad66
JR
95%description sdl-shareware -l pl.UTF-8
96Ten pakiet zawiera binarkę D1X skompilowaną z obsługą SDL dla wersji
97shareware gry. Trzeba do niego doinstalować pakiet d1x-data-shareware
98lub pliki z danymi z wersji shareware umieścić w /usr/X11R6/share/d1x.
2731beaf
JB
99
100%package gl-full
101Summary: D1X - GL-based binary for full version of game
67193c51 102Summary(pl.UTF-8): D1X - używająca GL binarka dla pełnej wersji gry
2731beaf
JB
103Group: X11/Applications/Games
104Provides: d1x-full
105Requires: %{name}-common = %{version}
106Requires: OpenGL
107
108%description gl-full
109This package contains D1X binary compiled with GL support for full
110version of game. You will need to place full (commercial) version of
111game data files in /usr/X11R6/share/d1x.
112
b35fad66
JR
113%description gl-full -l pl.UTF-8
114Ten pakiet zawiera binarkę D1X skompilowaną z obsługą GL dla pełnej
115wersji gry. Pliki z danymi z pełnej (komercyjnej) wersji gry trzeba
116umieścić w katalogu /usr/X11R6/share/d1x.
2731beaf
JB
117
118%package gl-shareware
119Summary: D1X - GL-based binary for shareware version of game
67193c51 120Summary(pl.UTF-8): D1X - używająca GL binarka dla wersji shareware gry
2731beaf
JB
121Group: X11/Applications/Games
122Provides: d1x-shareware
123Requires: %{name}-common = %{version}
124Requires: OpenGL
125
126%description gl-shareware
127This package contains D1X binary compiled with GL support for full
128version of game. You will need to install d1x-data-shareware package
129or place shareware version of game data files in /usr/X11R6/share/d1x.
130
b35fad66
JR
131%description gl-shareware -l pl.UTF-8
132Ten pakiet zawiera binarkę D1X skompilowaną z obsługą GL dla wersji
133shareware gry. Trzeba do niego doinstalować pakiet d1x-data-shareware
134lub 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
150mkdir lib
151%ifnarch %{ix86}
152echo "NO_ASM = 1" >> defines.in
153%endif
154%ifarch sparc sparc64
155echo "BIGENDIAN = 1" >> defines.in
156%endif
157
158cp -f defines.in defines.mak
159echo "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
165mv -f ?1x143 d1x-sdl-full
166
167%{__make} clean
168echo "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
174mv -f ?1x143sh d1x-sdl-share
175
176%{__make} clean
177cp -f defines.in defines.mak
178echo "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
184mv -f ?1x143_ogl d1x-gl-full
185
186%{__make} clean
187echo "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
193mv -f ?1x143sh_ogl d1x-gl-share
194
195%install
196rm -rf $RPM_BUILD_ROOT
197install -d $RPM_BUILD_ROOT{%{_bindir},%{_datadir}/d1x}
198
199install d1x-*-* $RPM_BUILD_ROOT%{_bindir}
200
201%clean
202rm -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
This page took 0.072073 seconds and 4 git commands to generate.