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