]> git.pld-linux.org Git - packages/War3D.git/commitdiff
- NEW; realy nice strategy game - like Starcraft but in 3D
authorsparky <sparky@pld-linux.org>
Sun, 11 Sep 2005 01:18:09 +0000 (01:18 +0000)
committercvs2git <feedback@pld-linux.org>
Sun, 24 Jun 2012 12:13:13 +0000 (12:13 +0000)
- Warning1: license is GPL with some additions, one of them says:
  precompiled binary can NOT be distributed without source (I have to
  ask them does the source have to be in same file as binary)
- Warning2: everything is in Spanish, even source and directory stucture

Changed files:
    War3D.spec -> 1.1

War3D.spec [new file with mode: 0644]

diff --git a/War3D.spec b/War3D.spec
new file mode 100644 (file)
index 0000000..519d1b9
--- /dev/null
@@ -0,0 +1,60 @@
+Summary:       War3D - strategy game
+Name:          War3D
+Version:       0.08.90
+%define        _snap   20050909
+Release:       0.1
+License:       GPL
+Group:         Applications/Games
+Source0:       http://sparky.homelinux.org/snaps/war3d/%{name}Source-%{_snap}.tar.gz
+# Source0-md5: cc5441a384e64dd0a8412403170477d0
+Source1:       %{name}.sh
+Source2:       %{name}.desktop
+Patch0:                %{name}-homeconfig.patch
+URL:           http://war3d.solar-opensource.com/
+BuildRequires: OpenAL-devel
+BuildRequires: SolarSockets-devel
+BuildRequires: glut-devel
+BuildRequires: libpng-devel
+BuildRequires: libstdc++-devel
+# only because of SolarSockets:
+ExclusiveArch: %{ix86} %{x8664}
+BuildRoot:     %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
+
+%description
+A 3D strategy game.
+
+Warning: this game is not internacionalized, everything is in Spanish.
+
+%prep
+%setup -q -n %{name}Source
+%patch0 -p1
+sed -i 's/IRCClienteSocket.getIP()/MiIP/' IRCcomunicaciones.h
+
+%build
+%{__make} \
+       CC="%{__cxx}" \
+       CFLAGS="%{rpmcflags} -funsigned-char -c -ansi -I. -Wall" \
+       LFLAGS="%{rpmldflags} -lglut -lsolarsockets -lopenal -lpng"
+
+%install
+rm -rf $RPM_BUILD_ROOT
+install -d $RPM_BUILD_ROOT{%{_datadir}/%{name},%{_bindir},%{_desktopdir}}
+
+install war3d $RPM_BUILD_ROOT%{_bindir}/war3d.bin
+install %{SOURCE1} $RPM_BUILD_ROOT%{_bindir}/war3d
+install %{SOURCE2} $RPM_BUILD_ROOT%{_desktopdir}
+
+cp -r  Armys Edificios Efectos Esenarios Hud Interface \
+       Mapas Musica Objetos UnidadesDeCombate \
+       War3D.conf \
+       $RPM_BUILD_ROOT%{_datadir}/%{name}
+
+%clean
+rm -rf $RPM_BUILD_ROOT
+
+%files
+%defattr(644,root,root,755)
+%doc README.txt
+%attr(755,root,root) %{_bindir}/war3d*
+%{_datadir}/%{name}
+%{_desktopdir}/%{name}.desktop
This page took 0.081802 seconds and 4 git commands to generate.