Andy Southgate 045b7d9
Summary:        Action game in four spatial dimensions
Andy Southgate 045b7d9
Name:           adanaxisgpl
Andy Southgate 48a949e
Version:        1.2.5
1841626
Release:        11%{?dist}
Andy Southgate 045b7d9
License:        GPLv2
Andy Southgate 045b7d9
Group:          Amusements/Games
Andy Southgate 045b7d9
URL:            http://www.mushware.com/
Andy Southgate 48a949e
Source0:        http://www.mushware.com/files/%{name}-1.2.5.tar.gz
1ada623
Patch0:         adanaxisgpl-1.2.5-const.patch
6a4a992
Patch1:         adanaxisgpl-1.2.5-gcc47.patch
6a4a992
BuildRequires:  desktop-file-utils
6a4a992
BuildRequires:  freeglut-devel
6a4a992
BuildRequires:  expat-devel
6a4a992
BuildRequires:  libjpeg-devel
6a4a992
BuildRequires:  libtiff-devel
6a4a992
BuildRequires:  libvorbis-devel
6a4a992
BuildRequires:  pcre-devel
6a4a992
BuildRequires:  SDL_mixer-devel
1ada623
Andy Southgate 045b7d9
%description
Andy Southgate 045b7d9
Adanaxis is a fast-moving first person shooter set in deep space, where the
Andy Southgate 045b7d9
fundamentals of space itself are changed.  By adding another dimension to
Andy Southgate 045b7d9
space this game provides an environment with movement in four directions
Andy Southgate 045b7d9
and six planes of rotation.  Initially the game explains the 4D control
Andy Southgate 045b7d9
system via a graphical sequence, before moving on to 30 levels of gameplay
Andy Southgate 045b7d9
with numerous enemy, ally, weapon and mission types.  Features include
Andy Southgate 045b7d9
simulated 4D texturing, mouse and joystick control, and original music.
Andy Southgate 045b7d9
Screenshots, movies and further information are available at
Andy Southgate 045b7d9
http://www.mushware.com/.
Andy Southgate 045b7d9
Andy Southgate 045b7d9
Hardware-accelerated 3D is recommended, ideally with support for OpenGL
Andy Southgate 045b7d9
Shading Language.
Andy Southgate 045b7d9
6a4a992
Andy Southgate 045b7d9
%prep
Andy Southgate 045b7d9
%setup -q
6a4a992
%patch0 -p1
6a4a992
%patch1 -p1
6a4a992
Andy Southgate 045b7d9
Andy Southgate 045b7d9
%build
Andy Southgate 045b7d9
%configure
Andy Southgate 045b7d9
make %{?_smp_mflags}
Andy Southgate 045b7d9
Andy Southgate 045b7d9
# Build .desktop files
Andy Southgate 045b7d9
cat > %{name}.desktop <
Andy Southgate 045b7d9
[Desktop Entry]
Andy Southgate 045b7d9
Encoding=UTF-8
6a4a992
Name=Adanaxis GPL
6a4a992
Comment=An action game in four spatial dimensions
Andy Southgate 045b7d9
Exec=%{_bindir}/%{name} 
Andy Southgate 045b7d9
Icon=%{name}
Andy Southgate 045b7d9
Terminal=false
Andy Southgate 045b7d9
Type=Application
Andy Southgate 045b7d9
StartupNotify=false
Andy Southgate 045b7d9
Categories=Game;ActionGame;
Andy Southgate 045b7d9
EOF
Andy Southgate 045b7d9
Andy Southgate 045b7d9
cat > %{name}-recover.desktop <
Andy Southgate 045b7d9
[Desktop Entry]
6a4a992
Name=Adanaxis GPL (Recovery Mode)
6a4a992
Comment=An action game in four spatial dimensions (Launch in Recovery Mode)
Andy Southgate 045b7d9
Exec=%{_bindir}/%{name} --recover
Andy Southgate 045b7d9
Icon=%{name}
Andy Southgate 045b7d9
Terminal=false
Andy Southgate 045b7d9
Type=Application
Andy Southgate 045b7d9
StartupNotify=false
Andy Southgate 045b7d9
Categories=Game;ActionGame;
Andy Southgate 045b7d9
EOF
Andy Southgate 045b7d9
Andy Southgate 045b7d9
6a4a992
%install
6a4a992
make DESTDIR=%{buildroot} INSTALL="install -p" CPPROG="cp -p" install
6a4a992
6a4a992
# Install desktop files
Andy Southgate 045b7d9
mkdir -p %{buildroot}%{_datadir}/applications
Andy Southgate 045b7d9
desktop-file-install --vendor=mushware         \
Andy Southgate 045b7d9
  --dir %{buildroot}%{_datadir}/applications   \
Andy Southgate 045b7d9
  %{name}.desktop
Andy Southgate 045b7d9
desktop-file-install --vendor=mushware         \
Andy Southgate 045b7d9
  --dir %{buildroot}%{_datadir}/applications   \
Andy Southgate 045b7d9
  %{name}-recover.desktop
Andy Southgate 045b7d9
Andy Southgate 045b7d9
# Icons
Andy Southgate 045b7d9
mkdir -p -m 755 %{buildroot}%{_datadir}/icons/hicolor/16x16/apps
Andy Southgate 045b7d9
mkdir -p -m 755 %{buildroot}%{_datadir}/icons/hicolor/32x32/apps
Andy Southgate 045b7d9
mkdir -p -m 755 %{buildroot}%{_datadir}/icons/hicolor/48x48/apps
Andy Southgate 045b7d9
install -p -m 644 x11/icons/%{name}-16.png %{buildroot}%{_datadir}/icons/hicolor/16x16/apps/%{name}.png
Andy Southgate 045b7d9
install -p -m 644 x11/icons/%{name}-32.png %{buildroot}%{_datadir}/icons/hicolor/32x32/apps/%{name}.png
Andy Southgate 045b7d9
install -p -m 644 x11/icons/%{name}-48.png %{buildroot}%{_datadir}/icons/hicolor/48x48/apps/%{name}.png
Andy Southgate 045b7d9
6a4a992
Andy Southgate 045b7d9
%post
6a4a992
touch --no-create %{_datadir}/icons/hicolor &>/dev/null || :
Andy Southgate 045b7d9
Andy Southgate 045b7d9
%postun
6a4a992
if [ $1 -eq 0 ] ; then
6a4a992
    touch --no-create %{_datadir}/icons/hicolor &>/dev/null
6a4a992
    gtk-update-icon-cache %{_datadir}/icons/hicolor &>/dev/null || :
Andy Southgate 045b7d9
fi
Andy Southgate 045b7d9
6a4a992
%posttrans
6a4a992
gtk-update-icon-cache %{_datadir}/icons/hicolor &>/dev/null || :
6a4a992
Andy Southgate 045b7d9
Andy Southgate 045b7d9
%files
6a4a992
%doc COPYING README ChangeLog AUTHORS
6a4a992
%{_bindir}/*
6a4a992
%{_datadir}/%{name}
Andy Southgate 045b7d9
%{_datadir}/applications/*
Andy Southgate 045b7d9
%{_datadir}/icons/hicolor/16x16/apps/%{name}.png
Andy Southgate 045b7d9
%{_datadir}/icons/hicolor/32x32/apps/%{name}.png
Andy Southgate 045b7d9
%{_datadir}/icons/hicolor/48x48/apps/%{name}.png
6a4a992
%{_mandir}/man6/%{name}*.6*
6a4a992
Andy Southgate 045b7d9
Andy Southgate 045b7d9
%changelog
1841626
* Wed Jul 18 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.2.5-11
1841626
- Rebuilt for https://fedoraproject.org/wiki/Fedora_18_Mass_Rebuild
1841626
aefc4fa
* Fri Feb 10 2012 Petr Pisar <ppisar@redhat.com> - 1.2.5-10
aefc4fa
- Rebuild against PCRE 8.30
aefc4fa
584a57c
* Fri Feb 10 2012 Petr Pisar <ppisar@redhat.com> - 1.2.5-9
584a57c
- Rebuild against PCRE 8.30
584a57c
6a4a992
* Thu Jan 12 2012 Hans de Goede <hdegoede@redhat.com> - 1.2.5-8
6a4a992
- Various specfile cleanups
6a4a992
- Fix building with gcc-4.7
6a4a992
8445d15
* Thu Jan 12 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.2.5-7
8445d15
- Rebuilt for https://fedoraproject.org/wiki/Fedora_17_Mass_Rebuild
8445d15
787c208
* Mon Feb 07 2011 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.2.5-6
787c208
- Rebuilt for https://fedoraproject.org/wiki/Fedora_15_Mass_Rebuild
787c208
dde9b1e
* Fri Jul 24 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.2.5-5
dde9b1e
- Rebuilt for https://fedoraproject.org/wiki/Fedora_12_Mass_Rebuild
dde9b1e
1ada623
* Mon Mar 02 2009 Caolán McNamara <caolanm@redhat.com> - 1.2.5-4
1ada623
- constify strchr
1ada623
4275c75
* Mon Feb 23 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.2.5-3
4275c75
- Rebuilt for https://fedoraproject.org/wiki/Fedora_11_Mass_Rebuild
4275c75
2cf281a
* Tue Feb 19 2008 Fedora Release Engineering <rel-eng@fedoraproject.org> - 1.2.5-2
2cf281a
- Autorebuild for GCC 4.3
2cf281a
Andy Southgate 48a949e
* Sun Feb 17 2008 Andy Southgate <andy.southgate@mushware.com> 1.2.5-1
Andy Southgate 48a949e
- Sync to upstream to pick up gcc 4.3 compatibility fixes
Andy Southgate 48a949e
Andy Southgate 045b7d9
* Thu Oct 25 2007 Andy Southgate <andy.southgate@mushware.com> 1.2.4-1
Andy Southgate 045b7d9
- Updates following further review (bugzilla #309061)
Andy Southgate 045b7d9
Andy Southgate 045b7d9
* Wed Oct 17 2007 Andy Southgate <andy.southgate@mushware.com> 1.2.3-1
Andy Southgate 045b7d9
- Updates following review (bugzilla #309061)
Andy Southgate 045b7d9
Andy Southgate 045b7d9
* Thu Sep 27 2007 Andy Southgate <andy.southgate@mushware.com> 1.2.1-1
Andy Southgate 045b7d9
- Created from Mandriva .spec