Jonathan Dieter d9c4a85
Name:           naev
Jonathan Dieter aac6b04
Version:        0.5.3
525ae7f
Release:        4%{?dist}
Jonathan Dieter d9c4a85
Summary:        2d action, RPG space game
Jonathan Dieter d9c4a85
License:        GPLv3
Jonathan Dieter d9c4a85
Group:          Amusements/Games
Jonathan Dieter d9c4a85
URL:            http://code.google.com/p/naev/
Jonathan Dieter d9c4a85
Source:         http://sourceforge.net/projects/naev/files/%{name}-%{version}/%{name}-%{version}.tar.bz2
Jonathan Dieter d9c4a85
BuildRequires:  SDL-devel
Jonathan Dieter d9c4a85
BuildRequires:  SDL_image-devel
Jonathan Dieter d9c4a85
BuildRequires:  libxml2-devel
Jonathan Dieter d9c4a85
BuildRequires:  freetype-devel
Jonathan Dieter d9c4a85
BuildRequires:  libpng-devel
Jonathan Dieter d9c4a85
BuildRequires:  libvorbis-devel
Jonathan Dieter d9c4a85
BuildRequires:  openal-soft-devel
Jonathan Dieter d9c4a85
BuildRequires:  desktop-file-utils
Jonathan Dieter d9c4a85
BuildRequires:  SDL_mixer-devel
Jonathan Dieter d9c4a85
BuildRequires:  lua-devel
Jonathan Dieter d9c4a85
BuildRequires:  readline-devel
Jonathan Dieter d9c4a85
BuildRequires:  suitesparse-devel
Jonathan Dieter d9c4a85
BuildRequires:  mesa-libGL-devel
Jonathan Dieter d9c4a85
BuildRequires:  mesa-libGLU-devel
Jonathan Dieter d9c4a85
Requires:       %{name}-data = %{version}
Jonathan Dieter d9c4a85
Jonathan Dieter d9c4a85
Jonathan Dieter d9c4a85
%description
Jonathan Dieter d9c4a85
NAEV is a 2D space trading and combat game, in a similar vein to Escape
Jonathan Dieter d9c4a85
Velocity.
Jonathan Dieter d9c4a85
Jonathan Dieter d9c4a85
NAEV is played from a top-down perspective, featuring fast-paced combat, many
Jonathan Dieter d9c4a85
ships, a large variety of equipment and a large galaxy to explore. The game is
Jonathan Dieter d9c4a85
highly open-ended, letting you proceed at your own pace.
Jonathan Dieter d9c4a85
Jonathan Dieter d9c4a85
%prep
Jonathan Dieter d9c4a85
%setup -q -n %{name}-%{version}
Jonathan Dieter d9c4a85
# Remove built-in libraries
Jonathan Dieter d9c4a85
rm -rf lib/lua lib/csparse
Jonathan Dieter d9c4a85
# Patch configure to use system cxsparse
Jonathan Dieter d9c4a85
sed -i s/"\$have_csparse_lib = yes -a \$have_cxsparse_lib = yes -a"/" \\\( \$have_csparse_lib = yes -o \$have_cxsparse_lib = yes \\\) -a"/g configure
Jonathan Dieter d9c4a85
sed -i s/"-lcsparse -lcxsparse"/"-lcxsparse"/g configure
Jonathan Dieter d9c4a85
Jonathan Dieter d9c4a85
%build
Jonathan Dieter d9c4a85
# note the ndata-path needs to point directly to the file
Jonathan Dieter d9c4a85
%configure --with-ndata-path=%{_datadir}/%{name}/ndata-%{version} --enable-lua=shared --disable-shave
Jonathan Dieter d9c4a85
make %{?_smp_mflags}
Jonathan Dieter d9c4a85
Jonathan Dieter d9c4a85
%install
Jonathan Dieter d9c4a85
make DESTDIR=%{buildroot} install
Jonathan Dieter d9c4a85
Jonathan Dieter d9c4a85
# Copy high quality 256x256 icon rather than default 32x32
Jonathan Dieter d9c4a85
rm -f %{buildroot}%{_datadir}/pixmaps/naev.png
Jonathan Dieter adb698a
install -m 644 extras/logos/naev.png %{buildroot}%{_datadir}/pixmaps/naev.png
Jonathan Dieter d9c4a85
Jonathan Dieter d9c4a85
# docs get installed to wrong location
Jonathan Dieter d9c4a85
rm -rf %{buildroot}%{_docdir}/naev
Jonathan Dieter d9c4a85
Jonathan Dieter d9c4a85
desktop-file-validate %{buildroot}%{_datadir}/applications/%{name}.desktop
Jonathan Dieter d9c4a85
Jonathan Dieter d9c4a85
%files
Jonathan Dieter d9c4a85
%doc AUTHORS LICENSE README TODO
Jonathan Dieter d9c4a85
%{_bindir}/%{name}
Jonathan Dieter d9c4a85
%{_datadir}/applications/*.desktop
Jonathan Dieter d9c4a85
%{_datadir}/pixmaps/*.png
Jonathan Dieter adb698a
%{_datadir}/naev/naev-confupdate.sh
Jonathan Dieter d9c4a85
%{_mandir}/man6/*
Jonathan Dieter d9c4a85
Jonathan Dieter d9c4a85
%changelog
525ae7f
* Thu Feb 14 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.5.3-4
525ae7f
- Rebuilt for https://fedoraproject.org/wiki/Fedora_19_Mass_Rebuild
525ae7f
aa69832
* Fri Nov 30 2012 Tom Callaway <spot@fedoraproject.org> - 0.5.3-3
aa69832
- rebuild for new suitesparse
aa69832
67267b6
* Fri Jul 20 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.5.3-2
67267b6
- Rebuilt for https://fedoraproject.org/wiki/Fedora_18_Mass_Rebuild
67267b6
Jonathan Dieter aac6b04
* Thu Jun 28 2012 Jonathan Dieter <jdieter@lesbg.com> - 0.5.3-1
Jonathan Dieter aac6b04
- Update to 0.5.3 - with new missions and bugfixes
Jonathan Dieter aac6b04
Jonathan Dieter adb698a
* Fri Mar  2 2012 Jonathan Dieter <jdieter@lesbg.com> - 0.5.1-1
Jonathan Dieter 2fdaddd
- Test FTBFS failure
Jonathan Dieter adb698a
- Update to 0.5.1 - with new missions, a new faction and other improvements
Jonathan Dieter 2fdaddd
70822c8
* Fri Jan 13 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.5.0-5
70822c8
- Rebuilt for https://fedoraproject.org/wiki/Fedora_17_Mass_Rebuild
70822c8
b2527ef
* Tue Dec 06 2011 Adam Jackson <ajax@redhat.com> - 0.5.0-4
b2527ef
- Rebuild for new libpng
b2527ef
Jonathan Dieter d9c4a85
* Tue Jun 28 2011 Jonathan Dieter <jdieter@lesbg.com> - 0.5.0-3
Jonathan Dieter d9c4a85
- Remove unneeded defattr
Jonathan Dieter d9c4a85
Jonathan Dieter d9c4a85
* Mon Jun 27 2011 Jonathan Dieter <jdieter@lesbg.com> - 0.5.0-2
Jonathan Dieter d9c4a85
- Clean up spec
Jonathan Dieter d9c4a85
Jonathan Dieter d9c4a85
* Sun Jun  5 2011 Jonathan Dieter <jdieter@lesbg.com> - 0.5.0-1
Jonathan Dieter d9c4a85
- Convert openSUSE Build Service RPM to Fedora RPM
Jonathan Dieter d9c4a85
- Split data into separate source rpm
Jonathan Dieter d9c4a85
Jonathan Dieter d9c4a85
* Wed Jun  9 2010 dbuck <noone@example.com> - 0.4.2-1
Jonathan Dieter d9c4a85
- initial build