]> git.pld-linux.org Git - packages/War3D.git/blame - War3D.spec
- massive change ( validate errors warrings from desktop-file-validate)
[packages/War3D.git] / War3D.spec
CommitLineData
af2a8936 1Summary: War3D - strategy game
1c05b681 2Summary(pl.UTF-8): War3D - gra strategiczna
af2a8936 3Name: War3D
4Version: 0.08.90
5%define _snap 20050909
6Release: 0.1
7License: GPL
8Group: Applications/Games
9Source0: http://sparky.homelinux.org/snaps/war3d/%{name}Source-%{_snap}.tar.gz
10# Source0-md5: cc5441a384e64dd0a8412403170477d0
11Source1: %{name}.sh
12Source2: %{name}.desktop
13Patch0: %{name}-homeconfig.patch
14URL: http://war3d.solar-opensource.com/
15BuildRequires: OpenAL-devel
16BuildRequires: SolarSockets-devel
17BuildRequires: glut-devel
18BuildRequires: libpng-devel
19BuildRequires: libstdc++-devel
20# only because of SolarSockets:
21ExclusiveArch: %{ix86} %{x8664}
22BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
23
24%description
25A 3D strategy game.
26
7e015f28
JB
27Warning: this game is not internationalized, everything is in Spanish.
28
87efab3a 29%description -l pl.UTF-8
7e015f28
JB
30Gra strategiczna 3D.
31
87efab3a 32Uwaga: nie jest umiędzynarodowiona, wszystko jest po hiszpańsku.
af2a8936 33
34%prep
35%setup -q -n %{name}Source
36%patch0 -p1
37sed -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
46rm -rf $RPM_BUILD_ROOT
47install -d $RPM_BUILD_ROOT{%{_datadir}/%{name},%{_bindir},%{_desktopdir}}
48
49install war3d $RPM_BUILD_ROOT%{_bindir}/war3d.bin
50install %{SOURCE1} $RPM_BUILD_ROOT%{_bindir}/war3d
51install %{SOURCE2} $RPM_BUILD_ROOT%{_desktopdir}
52
53cp -r Armys Edificios Efectos Esenarios Hud Interface \
54 Mapas Musica Objetos UnidadesDeCombate \
55 War3D.conf \
56 $RPM_BUILD_ROOT%{_datadir}/%{name}
57
58%clean
59rm -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.044132 seconds and 4 git commands to generate.