Summary: Multiplayer FPS game based on Cube2 Name: redeclipse Group: Amusements/Games Version: 1.2 Release: 1%{?dist} # Game engine is zlib # Icon and trademark info is CC-BY-SA # Logo and name covered by "trademark guidelines" see trademark.txt License: zlib and CC-BY-SA URL: http://www.redeclipse.net/ Source0: http://downloads.sourceforge.net/%{name}/%{name}_%{version}_linux_bsd.tar.bz2 # Debian origin, merged and modified copyright files for engine and data Source1: all-licenses # Debian origin, not wanted upstream Patch0: %{name}-%{version}-windowed-by-default.patch # https://sourceforge.net/apps/trac/redeclipse/changeset/3614 Patch1: %{name}-%{version}-backported-fix-icon-sizes.patch # Chakra origin, not wanted upstream Patch2: %{name}-%{version}-build-with-system-enet.patch BuildRequires: SDL-devel, SDL_mixer-devel, SDL_image-devel, mesa-libGL-devel, enet-devel, ImageMagick, zlib-devel, libpng-devel, freetype-devel Requires: redeclipse-data %package data Summary: Data for the Red Eclipse FPS game # Game scripts are zlib # Trademark info is CC-BY-SA # Game data is mixed (per-directory readme.txt), by default CC-BY-SA # See the included file 'all-licenses' for license breakdown # Logo and name covered by "trademark guidelines" see trademark.txt License: zlib and CC-BY-SA and CC-BY and Public Domain and OFL %package server Summary: Server for the Red Eclipse FPS game # Game engine is zlib # Trademark info is CC-BY-SA # Name covered by "trademark guidelines" see trademark.txt in the -data package License: zlib and CC-BY-SA %package -n cube2font Summary: Utility program for creating font bitmaps for Cube Engine games License: zlib %description A single-player and multi-player first-person ego-shooter, built on Cube Engine 2, which lends itself toward a balanced gameplay, completely at the control of map makers, while maintaining a general theme of agility in a variety of environments. Features: * Balanced gameplay, with a general theme of agility in a variety of environments * Parkour, impulse boosts, dashing, sliding, and other tricks * Favourite gamemodes with tons of mutators and variables * Available for Windows, Linux/BSD and Mac OSX * Builtin editor lets you create your own maps cooperatively online %description data This package contains the data content, e.g. maps, models, textures, sounds, etc. for the Red Eclipse FPS game. %description server This package contains the dedicated server for the Red Eclipse FPS game, it also includes some example scripts for configuring the server. %description -n cube2font cube2font is a utility program designed to create font bitmaps for Cube Engine games, it works by taking a Truetype font and building it into a set of coordinates in an image. cube2font is an improved version of the previous TTF2Font, supporting a much larger range of characters. %prep %setup -q -n redeclipse cp %{SOURCE1} . rm -r src/include/ rm -r src/lib/ # Needs updated enet ~ 1.3, not in Fedora yet, see Bug #799778 #rm -r src/enet/ %patch0 -p1 %patch1 -p1 #%patch2 -p1 %build make %{?_smp_mflags} CXXFLAGS="%{optflags}" -C src/ client server cube2font %install rm -rf %{buildroot} make DESTDIR=%{buildroot} redeclipse=%{name} prefix=%{_prefix} libexecdir=%{buildroot}%{_libexecdir} -C src/ system-install system-install-cube2font %files %{_bindir}/%{name} %{_libexecdir}/%{name}/%{name} %{_datadir}/icons/* %{_datadir}/applications/* %{_mandir}/man6/%{name}.6.gz %files data %doc readme.txt changelog.txt license.txt trademark.txt %doc all-licenses %{_datadir}/%{name}/ %{_libexecdir}/%{name}/data %files server %doc license.txt trademark.txt %{_bindir}/%{name}-server %{_libexecdir}/%{name}/%{name}-server %{_docdir}/%{name}/ %{_mandir}/man6/%{name}-server.6.gz %files -n cube2font %{_bindir}/cube2font %{_mandir}/man1/* %changelog * Wed Feb 29 2012 Martin Erik Werner - 1.2-1 - Initial Fedora package - Add patch from upstream SVN to fix icon sizes - Add patch to build with Fedora's Enet - Add patch to start in windowed mode by default