Andy Southgate 045b7d9
# Spec file for Mandriva Linux
dde9b1e
# $Id: adanaxisgpl.spec,v 1.6 2009/07/24 16:34:49 jkeating Exp $
Andy Southgate 045b7d9
# $Log: adanaxisgpl.spec,v $
dde9b1e
# Revision 1.6  2009/07/24 16:34:49  jkeating
dde9b1e
# - Rebuilt for https://fedoraproject.org/wiki/Fedora_12_Mass_Rebuild
Andy Southgate 045b7d9
#
Andy Southgate 045b7d9
# Revision 1.4  2007/10/18 00:04:13  southa
Andy Southgate 045b7d9
# Fedora packaging review comments
Andy Southgate 045b7d9
#
Andy Southgate 045b7d9
# Revision 1.3  2007/10/17 23:44:50  southa
Andy Southgate 045b7d9
# Fedora packaging review comments
Andy Southgate 045b7d9
#
Andy Southgate 045b7d9
# Revision 1.2  2007/09/27 12:10:09  southa
Andy Southgate 045b7d9
# Fixed changelog
Andy Southgate 045b7d9
#
Andy Southgate 045b7d9
# Revision 1.1  2007/09/27 11:52:44  southa
Andy Southgate 045b7d9
# Fedora release
Andy Southgate 045b7d9
#
Andy Southgate 045b7d9
# Revision 1.1  2007/06/30 16:02:14  southa
Andy Southgate 045b7d9
# Generic packaging
Andy Southgate 045b7d9
#
Andy Southgate 045b7d9
# Revision 1.3  2007/06/29 16:48:30  southa
Andy Southgate 045b7d9
# Mandriva build
Andy Southgate 045b7d9
#
Andy Southgate 045b7d9
# Revision 1.2  2007/06/29 14:41:54  southa
Andy Southgate 045b7d9
# Mandriva release
Andy Southgate 045b7d9
#
Andy Southgate 045b7d9
# Revision 1.1  2007/06/29 12:05:04  southa
Andy Southgate 045b7d9
# Mandriva packaging
Andy Southgate 045b7d9
#
Andy Southgate 045b7d9
Andy Southgate 045b7d9
%define title     Adanaxis GPL
Andy Southgate 045b7d9
%define longtitle Adanaxis GPL - an action game in four spatial dimensions
Andy Southgate 045b7d9
Andy Southgate 045b7d9
Summary:        Action game in four spatial dimensions
Andy Southgate 045b7d9
Name:           adanaxisgpl
Andy Southgate 48a949e
Version:        1.2.5
dde9b1e
Release:        5%{?dist}
Andy Southgate 045b7d9
License:        GPLv2
Andy Southgate 045b7d9
Group:          Amusements/Games
Andy Southgate 045b7d9
URL:            http://www.mushware.com/
Andy Southgate 045b7d9
Andy Southgate 48a949e
Source0:        http://www.mushware.com/files/%{name}-1.2.5.tar.gz
Andy Southgate 045b7d9
Andy Southgate 045b7d9
BuildRoot:      %(mktemp -ud %{_tmppath}/%{name}-%{version}-%{release}-XXXXXX)
Andy Southgate 045b7d9
Andy Southgate 045b7d9
BuildRequires:       desktop-file-utils
Andy Southgate 045b7d9
BuildRequires:       freeglut-devel
Andy Southgate 045b7d9
BuildRequires:       expat-devel
Andy Southgate 045b7d9
BuildRequires:       libjpeg-devel
Andy Southgate 045b7d9
BuildRequires:       libtiff-devel
Andy Southgate 045b7d9
BuildRequires:       libvorbis-devel
Andy Southgate 045b7d9
BuildRequires:       pcre-devel
Andy Southgate 045b7d9
BuildRequires:       SDL_mixer-devel
Andy Southgate 045b7d9
1ada623
Patch0:         adanaxisgpl-1.2.5-const.patch
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
Andy Southgate 045b7d9
%prep
Andy Southgate 045b7d9
%setup -q
1ada623
%patch0 -p1 -b .const
Andy Southgate 045b7d9
Andy Southgate 045b7d9
%build
Andy Southgate 045b7d9
%configure
Andy Southgate 045b7d9
make %{?_smp_mflags}
Andy Southgate 045b7d9
Andy Southgate 045b7d9
%install
Andy Southgate 045b7d9
rm -rf %{buildroot}
Andy Southgate 045b7d9
make DESTDIR=%{buildroot} INSTALL="install -p" CPPROG="cp -p" install
Andy Southgate 045b7d9
Andy Southgate 045b7d9
# Build .desktop files
Andy Southgate 045b7d9
Andy Southgate 045b7d9
cat > %{name}.desktop <
Andy Southgate 045b7d9
[Desktop Entry]
Andy Southgate 045b7d9
Encoding=UTF-8
Andy Southgate 045b7d9
Name=%{title}
Andy Southgate 045b7d9
Comment=%{longtitle}
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]
Andy Southgate 045b7d9
Encoding=UTF-8
Andy Southgate 045b7d9
Name=%{title} (Recovery Mode)
Andy Southgate 045b7d9
Comment=%{longtitle} (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
# Install desktop files
Andy Southgate 045b7d9
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
Andy Southgate 045b7d9
%post
Andy Southgate 045b7d9
touch --no-create %{_datadir}/icons/hicolor
Andy Southgate 045b7d9
if [ -x %{_bindir}/gtk-update-icon-cache ]; then
Andy Southgate 045b7d9
  %{_bindir}/gtk-update-icon-cache --quiet %{_datadir}/icons/hicolor || :
Andy Southgate 045b7d9
fi
Andy Southgate 045b7d9
Andy Southgate 045b7d9
%postun
Andy Southgate 045b7d9
touch --no-create %{_datadir}/icons/hicolor
Andy Southgate 045b7d9
if [ -x %{_bindir}/gtk-update-icon-cache ]; then
Andy Southgate 045b7d9
  %{_bindir}/gtk-update-icon-cache --quiet %{_datadir}/icons/hicolor || :
Andy Southgate 045b7d9
fi
Andy Southgate 045b7d9
Andy Southgate 045b7d9
%clean
Andy Southgate 045b7d9
rm -rf %{buildroot}
Andy Southgate 045b7d9
Andy Southgate 045b7d9
%files
Andy Southgate 045b7d9
%defattr(0755,root,root,0755)
Andy Southgate 045b7d9
%_bindir/*
Andy Southgate 045b7d9
%defattr(0644,root,root,0755)
Andy Southgate 045b7d9
%doc COPYING README INSTALL ChangeLog AUTHORS
Andy Southgate 045b7d9
%dir %{_datadir}/%{name}
Andy Southgate 045b7d9
%{_datadir}/applications/*
Andy Southgate 045b7d9
%{_datadir}/%{name}/*
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
Andy Southgate 045b7d9
%_mandir/man6/%{name}*.6*
Andy Southgate 045b7d9
Andy Southgate 045b7d9
%changelog
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