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