Sophie

Sophie

distrib > Fedora > 17 > x86_64 > media > updates-src > by-pkgid > f8148465cfaebd846ddd583cda11300a > files > 6

redeclipse-1.3.1-1.fc17.src.rpm

Summary:        Multiplayer FPS game based on Cube2
Name:           redeclipse
Group:          Amusements/Games
Version:        1.3.1
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}_nix.tar.bz2
Source0:        %{name}-%{version}-fs.tar.xz
# Upstream tarball contains some non-free and superfluous content,
# it is removed in the Fedora sources using:
# sh redeclipse-generate-tarball.sh <version>
Source1:        %{name}-generate-tarball.sh

# Start game windowed on first launch
# due to the sorry state of sdl + fullscreen on GNU/Linux
# Not wanted upstream
Patch0:         %{name}-windowed-by-default.patch
# Build using external Enet library from Fedora
# Not wanted upstream
Patch1:         %{name}-build-with-system-enet.patch
# Small fix from upstream SVN
Patch2:         %{name}-%{version}-system-install-fix-cube2font-targets.patch

BuildRequires:  SDL-devel
BuildRequires:  SDL_mixer-devel
BuildRequires:  SDL_image-devel
BuildRequires:  mesa-libGL-devel
BuildRequires:  enet-devel
BuildRequires:  ImageMagick
BuildRequires:  zlib-devel
BuildRequires:  libpng-devel
BuildRequires:  freetype-devel
BuildRequires:  desktop-file-utils

Requires:       redeclipse-data = %{version}-%{release}


%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


%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 'doc/all-licenses.txt' 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
BuildArch:      noarch


%description data
This package contains the data content, e.g. maps, models, textures,
sounds, etc. for the Red Eclipse FPS game.


%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
License:        zlib and CC-BY-SA


%description server
This package contains the dedicated server for the Red Eclipse FPS game,
it also includes some example scripts for configuring the server. 


%package -n cube2font
Summary:        Utility program for creating font bitmaps for Cube Engine games
License:        zlib


%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
%patch0 -p1
%patch1 -p1
%patch2 -p1


%build
make %{?_smp_mflags} CXXFLAGS="%{optflags}" -C src/                    \
       client server cube2font


%install
make %{?_smp_mflags} CXXFLAGS="%{optflags}" -C src/                    \
        DESTDIR=%{buildroot} prefix=%{_prefix}                         \
        libexecdir=%{buildroot}%{_libexecdir}                          \
        system-install system-install-cube2font
desktop-file-validate %{buildroot}/%{_datadir}/applications/%{name}.desktop


%post
/bin/touch --no-create %{_datadir}/icons/hicolor &>/dev/null || :


%postun
if [ $1 -eq 0 ] ; then
    /bin/touch --no-create %{_datadir}/icons/hicolor &>/dev/null
    /usr/bin/gtk-update-icon-cache %{_datadir}/icons/hicolor &>/dev/null || :
fi


%posttrans
/usr/bin/gtk-update-icon-cache %{_datadir}/icons/hicolor &>/dev/null || :


%files
%doc readme.txt doc/changelog.txt doc/license.txt doc/trademark.txt
%{_bindir}/%{name}
%dir %{_libexecdir}/%{name}/
%{_libexecdir}/%{name}/%{name}
%{_libexecdir}/%{name}/data
%{_datadir}/icons/*
%{_datadir}/pixmaps/*
%{_datadir}/applications/*
%dir %{_docdir}/%{name}/
%{_docdir}/%{name}/guidelines.txt
%{_mandir}/man6/%{name}.6.*


%files data
%doc doc/license.txt doc/all-licenses.txt doc/trademark.txt
%{_datadir}/%{name}/


%files server
%doc doc/license.txt doc/trademark.txt
%{_bindir}/%{name}-server
%dir %{_libexecdir}/%{name}/
%{_libexecdir}/%{name}/%{name}-server
%{_docdir}/%{name}/examples/
%{_docdir}/%{name}/guidelines.txt
%{_mandir}/man6/%{name}-server.6.*


%files -n cube2font
%{_bindir}/cube2font
%{_mandir}/man1/*


%changelog
* Thu Dec 06 2012 Martin Erik Werner <martinerikwerner@gmail.com>
- 1.3.1-1
- New upstream release
- Remove security text command fix patch
  + Applied upstream
- Remove icon patch
  + Applied upstream
- Remove all-licenses
  + Installed from upstream
- Removed versioning on windowed and enet patches
- Add patch for cube2font install target


* Fri Jul 27 2012 Martin Erik Werner <martinerikwerner@gmail.com>
- 1.2-12
- Add security-text-command-fix.patch
  + File access security fix


* Sat Jul 21 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.2-11
- Rebuilt for https://fedoraproject.org/wiki/Fedora_18_Mass_Rebuild

* Sun May 27 2012 martinerikwerner@gmail.com
- 1.2-10
- Fix unowned dir /usr/libexec/redeclipse/

* Wed May 02 2012 Martin Erik Werner <martinerikwerner@gmail.com>
- 1.2-9
- Use desktop-file-validate in %%install step
- Typo fix in cube2font %%description: utiliy -> utility
- Added versioned Requires: redeclipse-data = %%{version}-%%{release}

* Mon Mar 26 2012 Martin Erik Werner <martinerikwerner@gmail.com>
- 1.2-8
- Set flags for make install to avoid strip and get a useful -debuginfo

* Tue Mar 20 2012 Martin Erik Werner <martinerikwerner@gmail.com>
- 1.2-7
- Move removal of Enet & fonts from %%prep to generate-tarball script
- Re-add generate-tarball script as Source1

* Mon Mar 19 2012 Martin Erik Werner <martinerikwerner@gmail.com>r
- 1.2-6 
- Remove fonts in %%prep
- Corrections in all-licenses
  + Adapt comment about font generation (source URL & cube2font)
  + Remove superfluous overview "License:" field (copy of license.txt)

* Tue Mar 13 2012 Martin Erik Werner <martinerikwerner@gmail.com>
- 1.2-5
- Add Icon Cache scriptlet snippet
- Add BuildArch: noarch for -data subpackage
- Use %%{version} for Source0 and <version> in gen-tarball comment

* Mon Mar 12 2012 Martin Erik Werner <martinerikwerner@gmail.com> 
- 1.2-4
- Move back to repacking source rpm

* Sun Mar 11 2012 Martin Erik Werner <martinerikwerner@gmail.com>
- 1.2-3
- Enable building with Enet

* Fri Mar 09 2012 Martin Erik Werner <martinerikwerner@gmail.com>
- 1.2-2
- Start doing minor releases + changelog for review
- Wrap spec file at 72 chars
- Group %%package and %%description sections
- Drop rm -rf %%{buildroot} from %%install section
- Use wildcard to support different manpage compression
- One BuildRequires: per line
- Some indentation fixes
- Drop "in the -data package" since licesene.txt is included in -server

* Wed Feb 29 2012 Martin Erik Werner <martinerikwerner@gmail.com>
- 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