]> git.pld-linux.org Git - packages/War3D.git/blob - War3D.spec
519d1b9f212587fcfe7b8f93dd38147e2d21e34d
[packages/War3D.git] / War3D.spec
1 Summary:        War3D - strategy game
2 Name:           War3D
3 Version:        0.08.90
4 %define _snap   20050909
5 Release:        0.1
6 License:        GPL
7 Group:          Applications/Games
8 Source0:        http://sparky.homelinux.org/snaps/war3d/%{name}Source-%{_snap}.tar.gz
9 # Source0-md5:  cc5441a384e64dd0a8412403170477d0
10 Source1:        %{name}.sh
11 Source2:        %{name}.desktop
12 Patch0:         %{name}-homeconfig.patch
13 URL:            http://war3d.solar-opensource.com/
14 BuildRequires:  OpenAL-devel
15 BuildRequires:  SolarSockets-devel
16 BuildRequires:  glut-devel
17 BuildRequires:  libpng-devel
18 BuildRequires:  libstdc++-devel
19 # only because of SolarSockets:
20 ExclusiveArch:  %{ix86} %{x8664}
21 BuildRoot:      %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
22
23 %description
24 A 3D strategy game.
25
26 Warning: this game is not internacionalized, everything is in Spanish.
27
28 %prep
29 %setup -q -n %{name}Source
30 %patch0 -p1
31 sed -i 's/IRCClienteSocket.getIP()/MiIP/' IRCcomunicaciones.h
32
33 %build
34 %{__make} \
35         CC="%{__cxx}" \
36         CFLAGS="%{rpmcflags} -funsigned-char -c -ansi -I. -Wall" \
37         LFLAGS="%{rpmldflags} -lglut -lsolarsockets -lopenal -lpng"
38
39 %install
40 rm -rf $RPM_BUILD_ROOT
41 install -d $RPM_BUILD_ROOT{%{_datadir}/%{name},%{_bindir},%{_desktopdir}}
42
43 install war3d $RPM_BUILD_ROOT%{_bindir}/war3d.bin
44 install %{SOURCE1} $RPM_BUILD_ROOT%{_bindir}/war3d
45 install %{SOURCE2} $RPM_BUILD_ROOT%{_desktopdir}
46
47 cp -r   Armys Edificios Efectos Esenarios Hud Interface \
48         Mapas Musica Objetos UnidadesDeCombate \
49         War3D.conf \
50         $RPM_BUILD_ROOT%{_datadir}/%{name}
51
52 %clean
53 rm -rf $RPM_BUILD_ROOT
54
55 %files
56 %defattr(644,root,root,755)
57 %doc README.txt
58 %attr(755,root,root) %{_bindir}/war3d*
59 %{_datadir}/%{name}
60 %{_desktopdir}/%{name}.desktop
This page took 0.081107 seconds and 2 git commands to generate.