177 lines
6.2 KiB
RPMSpec
177 lines
6.2 KiB
RPMSpec
Summary: Action game in four spatial dimensions
|
|
Name: adanaxisgpl
|
|
Version: 1.2.5
|
|
Release: 19%{?dist}
|
|
License: GPLv2
|
|
Group: Amusements/Games
|
|
URL: http://www.mushware.com/
|
|
Source0: http://www.mushware.com/files/%{name}-1.2.5.tar.gz
|
|
Patch0: adanaxisgpl-1.2.5-const.patch
|
|
Patch1: adanaxisgpl-1.2.5-gcc47.patch
|
|
Patch2: adanaxisgpl-1.2.5-xdg-open.patch
|
|
BuildRequires: desktop-file-utils
|
|
BuildRequires: freeglut-devel
|
|
BuildRequires: expat-devel
|
|
BuildRequires: libjpeg-devel
|
|
BuildRequires: libtiff-devel
|
|
BuildRequires: libvorbis-devel
|
|
BuildRequires: pcre-devel
|
|
BuildRequires: SDL_mixer-devel
|
|
|
|
%description
|
|
Adanaxis is a fast-moving first person shooter set in deep space, where the
|
|
fundamentals of space itself are changed. By adding another dimension to
|
|
space this game provides an environment with movement in four directions
|
|
and six planes of rotation. Initially the game explains the 4D control
|
|
system via a graphical sequence, before moving on to 30 levels of gameplay
|
|
with numerous enemy, ally, weapon and mission types. Features include
|
|
simulated 4D texturing, mouse and joystick control, and original music.
|
|
Screenshots, movies and further information are available at
|
|
http://www.mushware.com/.
|
|
|
|
Hardware-accelerated 3D is recommended, ideally with support for OpenGL
|
|
Shading Language.
|
|
|
|
|
|
%prep
|
|
%setup -q
|
|
%patch0 -p1
|
|
%patch1 -p1
|
|
%patch2 -p1
|
|
|
|
|
|
%build
|
|
%configure
|
|
make %{?_smp_mflags}
|
|
|
|
# Build .desktop files
|
|
cat > %{name}.desktop <<EOF
|
|
[Desktop Entry]
|
|
Name=Adanaxis GPL
|
|
Comment=An action game in four spatial dimensions
|
|
Exec=%{name}
|
|
Icon=%{name}
|
|
Terminal=false
|
|
Type=Application
|
|
StartupNotify=false
|
|
Categories=Game;ActionGame;
|
|
EOF
|
|
|
|
|
|
%install
|
|
%make_install INSTALL="install -p" CPPROG="cp -p"
|
|
|
|
# Install desktop files
|
|
mkdir -p %{buildroot}%{_datadir}/applications
|
|
desktop-file-install \
|
|
--dir %{buildroot}%{_datadir}/applications \
|
|
%if 0%{?fedora} && 0%{?fedora} < 19
|
|
--vendor=mushware \
|
|
%endif
|
|
%{name}.desktop
|
|
|
|
# Icons
|
|
mkdir -p -m 755 %{buildroot}%{_datadir}/icons/hicolor/16x16/apps
|
|
mkdir -p -m 755 %{buildroot}%{_datadir}/icons/hicolor/32x32/apps
|
|
mkdir -p -m 755 %{buildroot}%{_datadir}/icons/hicolor/48x48/apps
|
|
install -p -m 644 x11/icons/%{name}-16.png %{buildroot}%{_datadir}/icons/hicolor/16x16/apps/%{name}.png
|
|
install -p -m 644 x11/icons/%{name}-32.png %{buildroot}%{_datadir}/icons/hicolor/32x32/apps/%{name}.png
|
|
install -p -m 644 x11/icons/%{name}-48.png %{buildroot}%{_datadir}/icons/hicolor/48x48/apps/%{name}.png
|
|
|
|
|
|
%post
|
|
touch --no-create %{_datadir}/icons/hicolor &>/dev/null || :
|
|
|
|
%postun
|
|
if [ $1 -eq 0 ] ; then
|
|
touch --no-create %{_datadir}/icons/hicolor &>/dev/null
|
|
gtk-update-icon-cache %{_datadir}/icons/hicolor &>/dev/null || :
|
|
fi
|
|
|
|
%posttrans
|
|
gtk-update-icon-cache %{_datadir}/icons/hicolor &>/dev/null || :
|
|
|
|
|
|
%files
|
|
%doc COPYING README ChangeLog AUTHORS
|
|
%{_bindir}/%{name}
|
|
%{_datadir}/%{name}
|
|
%{_datadir}/applications/*%{name}.desktop
|
|
%{_datadir}/icons/hicolor/16x16/apps/%{name}.png
|
|
%{_datadir}/icons/hicolor/32x32/apps/%{name}.png
|
|
%{_datadir}/icons/hicolor/48x48/apps/%{name}.png
|
|
%{_mandir}/man6/%{name}*.6*
|
|
|
|
|
|
%changelog
|
|
* Fri Aug 15 2014 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.2.5-19
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_22_Mass_Rebuild
|
|
|
|
* Sat Jun 07 2014 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.2.5-18
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_Mass_Rebuild
|
|
|
|
* Sat Aug 03 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.2.5-17
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_20_Mass_Rebuild
|
|
|
|
* Fri May 10 2013 Hans de Goede <hdegoede@redhat.com> - 1.2.5-16
|
|
- Remove no longer needed autoreconf call, %%configure from redhat-rpm-config
|
|
>= 9.1.0-42 updates config.guess and config.sub for new architecture support
|
|
- Remove vendor prefix from desktop files in F19+
|
|
- Drop recovery .desktop file, this just clutters the menu, and can be done
|
|
from the cmdline if needed
|
|
|
|
* Mon Apr 29 2013 Hans de Goede <hdegoede@redhat.com> - 1.2.5-15
|
|
- Run autoreconf for aarch64 support (rhbz#924970)
|
|
- Use xdg-open to open game manual
|
|
|
|
* Wed Feb 13 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.2.5-14
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_19_Mass_Rebuild
|
|
|
|
* Fri Jan 18 2013 Adam Tkac <atkac redhat com> - 1.2.5-13
|
|
- rebuild due to "jpeg8-ABI" feature drop
|
|
|
|
* Fri Dec 21 2012 Adam Tkac <atkac redhat com> - 1.2.5-12
|
|
- rebuild against new libjpeg
|
|
|
|
* Wed Jul 18 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.2.5-11
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_18_Mass_Rebuild
|
|
|
|
* Fri Feb 10 2012 Petr Pisar <ppisar@redhat.com> - 1.2.5-10
|
|
- Rebuild against PCRE 8.30
|
|
|
|
* Fri Feb 10 2012 Petr Pisar <ppisar@redhat.com> - 1.2.5-9
|
|
- Rebuild against PCRE 8.30
|
|
|
|
* Thu Jan 12 2012 Hans de Goede <hdegoede@redhat.com> - 1.2.5-8
|
|
- Various specfile cleanups
|
|
- Fix building with gcc-4.7
|
|
|
|
* Thu Jan 12 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.2.5-7
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_17_Mass_Rebuild
|
|
|
|
* Mon Feb 07 2011 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.2.5-6
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_15_Mass_Rebuild
|
|
|
|
* Fri Jul 24 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.2.5-5
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_12_Mass_Rebuild
|
|
|
|
* Mon Mar 02 2009 Caolán McNamara <caolanm@redhat.com> - 1.2.5-4
|
|
- constify strchr
|
|
|
|
* Mon Feb 23 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.2.5-3
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_11_Mass_Rebuild
|
|
|
|
* Tue Feb 19 2008 Fedora Release Engineering <rel-eng@fedoraproject.org> - 1.2.5-2
|
|
- Autorebuild for GCC 4.3
|
|
|
|
* Sun Feb 17 2008 Andy Southgate <andy.southgate@mushware.com> 1.2.5-1
|
|
- Sync to upstream to pick up gcc 4.3 compatibility fixes
|
|
|
|
* Thu Oct 25 2007 Andy Southgate <andy.southgate@mushware.com> 1.2.4-1
|
|
- Updates following further review (bugzilla #309061)
|
|
|
|
* Wed Oct 17 2007 Andy Southgate <andy.southgate@mushware.com> 1.2.3-1
|
|
- Updates following review (bugzilla #309061)
|
|
|
|
* Thu Sep 27 2007 Andy Southgate <andy.southgate@mushware.com> 1.2.1-1
|
|
- Created from Mandriva .spec
|