]> git.pld-linux.org Git - packages/d2x-xl.git/blob - d2x-xl.spec
- s/openmotif/motif/
[packages/d2x-xl.git] / d2x-xl.spec
1 Summary:        D2X-XL - port of Descent 2 to OpenGL
2 Summary(pl.UTF-8):      D2X-XL - port Descenta 2 do OpenGL-a
3 Name:           d2x-xl
4 Version:        1.15.89
5 Release:        0.1
6 License:        GPL v2+
7 Group:          X11/Applications/Games
8 Source0:        http://www.descent2.de/downloads/%{name}-src-%{version}.7z
9 # Source0-md5:  41355662b87111a228a34a1620d7b229
10 Patch0:         %{name}-byte.patch
11 URL:            http://www.descent2.de/
12 BuildRequires:  OpenGL-GLU-devel
13 BuildRequires:  OpenGL-devel
14 BuildRequires:  SDL-devel >= 1.2.8
15 BuildRequires:  SDL_image-devel
16 BuildRequires:  SDL_mixer-devel
17 #BuildRequires: autoconf
18 BuildRequires:  automake
19 BuildRequires:  curl-devel
20 BuildRequires:  glew-devel
21 BuildRequires:  motif-devel
22 BuildRequires:  p7zip
23 BuildRequires:  sed >= 4.0
24 BuildRoot:      %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
25
26 %description
27 D2X-XL - port of Descent 2 to OpenGL.
28
29 %description -l pl.UTF-8
30 D2X-XL - port Descenta 2 do OpenGL-a.
31
32 %prep
33 %setup -q -c -T -n %{name}
34 7z x %{SOURCE0}
35 7z x -y d2x-xl-makefiles.7z
36
37 %patch0 -p1
38 %{__sed} -i 's/-O3//' configure
39 %{__sed} -i '/dialheap.h/d' main/gamedata.cpp
40
41 %build
42 %{__aclocal}
43 #%%{__autoconf}
44 #%%{__autoheader}
45 %{__automake}
46 chmod u+x configure
47 %configure \
48         LIBS="-lstdc++" \
49         --enable-release=yes
50 %{__make}
51
52 %install
53 rm -rf $RPM_BUILD_ROOT
54 install -d $RPM_BUILD_ROOT{%{_bindir},%{_mandir}/man1}
55
56 %{__make} install \
57         DESTDIR=$RPM_BUILD_ROOT
58
59 %clean
60 rm -rf $RPM_BUILD_ROOT
61
62 %files
63 %defattr(644,root,root,755)
64 %attr(755,root,root) %{_bindir}/*
This page took 0.061059 seconds and 3 git commands to generate.