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