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