moagg/moagg.spec

Name: moagg
Summary: Mother of all Gravity Games
Version: 0.16
Release: 4
License: GPL
Group: Amusements/Games
URL: http://moagg.sourceforge.net/
Description: Moagg combines several game types of other genres like races, search and rescue, seek and destroy et cetera into a 2D gravity game. You are pilot of a small space ship and have to navigate that ship through different levels. But beside the gravity that drags you down there are other obstacles like laser ports, magnets, black holes, cannons, rockets and grinders you have to master.

CentOS 7 x86_64

The build could not start because of the following missing build requirements:

Build Status

CentOS 6 x86_64

The build could not start because of the following missing build requirements:

Build Status

Contents

The spec file used by the build system currently has the following contents:

# $Id$
# Authority: dries
# Upstream: <moagg-devel$lists,sourceforge,net>

# Screenshot: http://moagg.sourceforge.net/screenshots/blackhole.png
# ScreenshotURL: http://moagg.sourceforge.net/screenshots.php


%{?rh7:%define _without_freedesktop 1}
%{?el2:%define _without_freedesktop 1}
%{?rh6:%define _without_freedesktop 1}

Summary: Mother of all Gravity Games
Name: moagg
Version: 0.16
Release: 4%{?dist}
License: GPL
Group: Amusements/Games
URL: http://moagg.sourceforge.net/

Source: http://dl.sf.net/moagg/moagg-%{version}-src.tar.bz2
#Source1: http://dl.sf.net/moagg/moagg-%{version}-data.tar.bz2
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root

BuildRequires: expat-devel, SDL-devel, SDL_gfx-devel, SDL_mixer-devel
BuildRequires: paragui-devel, freetype-devel, gcc-c++, SDL_image-devel
BuildRequires: desktop-file-utils, zlib-devel
%{!?_without_freedesktop:BuildRequires: desktop-file-utils}
Requires: SDL, SDL_gfx, SDL_mixer, paragui, freetype, SDL_image, zlib
Requires: moagg-data

%description
Moagg combines several game types of other genres like races, search and
rescue, seek and destroy et cetera into a 2D gravity game. You are pilot of a
small space ship and have to navigate that ship through different levels.
But beside the gravity that drags you down there are other obstacles like
laser ports, magnets, black holes, cannons, rockets and grinders you have to
master.

%prep
%setup
# -D -b 1

%{__cat} <<EOF >%{name}.desktop
[Desktop Entry]
Name=Moagg
Comment=Mother of all gravity games
Exec=moagg
Terminal=false
Type=Application
StartupNotify=true
Encoding=UTF-8
Categories=Application;Game;X-Red-Hat-Extra;
EOF

%build
%configure \
    --disable-paraguitest
%{__make} %{?_smp_mflags}

%install
%{__rm} -rf %{buildroot}
%{__make} install-bin install-doc install-man \
    prefix="%{buildroot}%{_prefix}" \
    exec_prefix="%{buildroot}%{_prefix}" \
    bindir="%{buildroot}%{_bindir}" \
    sbindir="%{buildroot}%{_sbindir}" \
    sysconfdir="%{buildroot}%{_sysconfdir}" \
    datadir="%{buildroot}%{_datadir}" \
    includedir="%{buildroot}%{_includedir}" \
    libdir="%{buildroot}%{_libdir}" \
    libexecdir="%{buildroot}%{_libexecdir}" \
    localstatedir="%{buildroot}%{_localstatedir}" \
    sharedstatedir="%{buildroot}%{_sharedstatedir}" \
    mandir="%{buildroot}%{_mandir}"
%{__rm} -Rf %{buildroot}%{_datadir}/doc/moagg

%if %{?_without_freedesktop:1}0
        %{__install} -Dp -m0644 %{name}.desktop %{buildroot}%{_datadir}/applnk/Games/%{name}.desktop
%else
    %{__install} -d -m0755 %{buildroot}%{_datadir}/applications/
    desktop-file-install --vendor net                  \
        --add-category X-Red-Hat-Base              \
        --dir %{buildroot}%{_datadir}/applications \
        %{name}.desktop
%endif

%clean
%{__rm} -rf %{buildroot}

%files
%defattr(-, root, root, 0755)
%doc AUTHORS ChangeLog COPYING doc INSTALL moagg.dxy README TODO
%doc %{_mandir}/man6/moagg*
%{_bindir}/moagg
%{!?_without_freedesktop:%{_datadir}/applications/*.desktop}
%{?_without_freedesktop:%{_datadir}/applnk/Games/*.desktop}

%changelog
* Mon Apr 27 2009 Dag Wieers <dag@wieers.com> - 0.16-4
- Rebuild against SDL_gfx 2.0.19.

* Thu Dec 28 2006 Dag Wieers <dag@wieers.com> - 0.16-3
- Rebuild against SDL_gfx 2.0.15.

* Mon Dec 20 2004 Dries Verachtert <dries@ulyssis.org> 0.16-2
- Moved the data to a separate package.

* Tue Nov 23 2004 Dries Verachtert <dries@ulyssis.org> 0.16-1
- Update to version 0.16.

* Thu Nov 04 2004 Dries Verachtert <dries@ulyssis.org> 0.15-1
- Update to version 0.15.

* Wed Sep 01 2004 Dries Verachtert <dries@ulyssis.org> 0.14-1
- Update to version 0.14.

* Wed Jul 28 2004 Dries Verachtert <dries@ulyssis.org> 0.13-1
- Update to version 0.13.

* Mon Jul 12 2004 Dries Verachtert <dries@ulyssis.org> 0.12-1
- Update to version 0.12.

* Fri Jun 25 2004 Dries Verachtert <dries@ulyssis.org> 0.11-1
- Update to version 0.11.

* Fri Jun 4 2004 Dries Verachtert <dries@ulyssis.org> 0.10-1
- Update to version 0.10.

* Mon Apr 26 2004 Dries Verachtert <dries@ulyssis.org> 0.8-1
- Initial package.