Jonathan Dieter d9c4a85
Name:           naev
Jonathan Dieter jdieter@lesbg.com 6d2b0ca
Version:        0.7.0
Jonathan Dieter jdieter@lesbg.com 6d2b0ca
Release:        1%{?dist}
Jonathan Dieter d9c4a85
Summary:        2d action, RPG space game
Jonathan Dieter d9c4a85
License:        GPLv3
Jonathan Dieter d9c4a85
Group:          Amusements/Games
Jonathan Dieter e024133
URL:            http://naev.org
Jonathan Dieter jdieter@lesbg.com 6d2b0ca
Source:     	http://sourceforge.net/projects/naev/files/%{name}-%{version}/%{name}-%{version}.tar.bz2
Jonathan Dieter dbad658
BuildRequires:  SDL2-devel
Jonathan Dieter dbad658
BuildRequires:  SDL2_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 dbad658
BuildRequires:  SDL2_mixer-devel
e863070
BuildRequires:  compat-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 dbad658
BuildRequires:  libzip-devel
Jonathan Dieter dbad658
BuildRequires:  libappstream-glib
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 dbad658
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 dbad658
sed -i "s/\"\$have_csparse_lib\" = \"yes\" -a \"\$have_cxsparse_lib\" = \"yes\"/\"\$have_csparse_lib\" = \"yes\" -o \"\$have_cxsparse_lib\" = \"yes\""/g configure
Jonathan Dieter d9c4a85
sed -i s/"-lcsparse -lcxsparse"/"-lcxsparse"/g configure
e863070
# Patch configure for Fedora compat-lua
e863070
sed -i 's/lua5\.1/lua-5.1/g' configure
e863070
# Fix undefined reference to symbol 'vorbis_comment_query'
e863070
sed -i 's/vorbisfile/& vorbis/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 e024133
%configure --with-ndata-path=%{_datadir}/%{name}/ndata-%{version}.zip --enable-lua=shared --disable-shave --enable-debug=no
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 dbad658
appstream-util validate-relax --nonet %{buildroot}/%{_datadir}/appdata/*.appdata.xml
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 dbad658
%{_datadir}/appdata/*.appdata.xml
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
Jonathan Dieter jdieter@lesbg.com 6d2b0ca
* Sat Jul 15 2017 Jonathan Dieter <jdieter@lesbg.com> - 0.7.0-1
Jonathan Dieter jdieter@lesbg.com 6d2b0ca
- New release with new missions
Jonathan Dieter jdieter@lesbg.com 6d2b0ca
1d5c318
* Tue Feb 28 2017 Remi Collet <remi@fedoraproject.org> - 0.6.1-4
1d5c318
- rebuild for new libzip
1d5c318
2a7cff8
* Fri Feb 10 2017 Fedora Release Engineering <releng@fedoraproject.org> - 0.6.1-3
2a7cff8
- Rebuilt for https://fedoraproject.org/wiki/Fedora_26_Mass_Rebuild
2a7cff8
d0f5fc7
* Thu Feb 04 2016 Fedora Release Engineering <releng@fedoraproject.org> - 0.6.1-2
d0f5fc7
- Rebuilt for https://fedoraproject.org/wiki/Fedora_24_Mass_Rebuild
d0f5fc7
Jonathan Dieter d9b7558
* Sat Nov 14 2015 Jonathan Dieter <jdieter@lesbg.com> - 0.6.1-1
Jonathan Dieter d9b7558
- Update to 0.6.1 with improved AI and new missions
Jonathan Dieter d9b7558
b2f3644
* Wed Jun 17 2015 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.6.0-5
b2f3644
- Rebuilt for https://fedoraproject.org/wiki/Fedora_23_Mass_Rebuild
b2f3644
a5bffb0
* Thu Jun 11 2015 Nils Philippsen <nils@redhat.com> - 0.6.0-4
a5bffb0
- rebuild for suitesparse-4.4.4
a5bffb0
fbefc7e
* Wed May 06 2015 Remi Collet <remi@fedoraproject.org> - 0.6.0-3
fbefc7e
- rebuild for new libzip
fbefc7e
Jonathan Dieter e024133
* Sat Mar 21 2015 Jonathan Dieter <jdieter@lesbg.com> - 0.6.0-2
Jonathan Dieter e024133
- Remove debug logs in stdout
Jonathan Dieter e024133
Jonathan Dieter dbad658
* Wed Mar 18 2015 Jonathan Dieter <jdieter@lesbg.com> - 0.6.0-1
Jonathan Dieter e024133
- Update to 0.6.0 which includes:
Jonathan Dieter e024133
  + Greatly expanded galaxy
Jonathan Dieter e024133
  + New missions
Jonathan Dieter e024133
  + Hidden jumps
Jonathan Dieter dbad658
80b2b13
* Sun Aug 17 2014 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.5.3-9
80b2b13
- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_22_Mass_Rebuild
80b2b13
e863070
* Thu Aug 07 2014 Yaakov Selkowitz <yselkowi@redhat.com> - 0.5.3-8
e863070
- Build with compat-lua (#992318, #1106264)
e863070
- Fix missing reference to libvorbis
e863070
a213f2e
* Sat Jun 07 2014 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.5.3-7
a213f2e
- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_Mass_Rebuild
a213f2e
b797065
* Fri Dec 06 2013 Nils Philippsen <nils@redhat.com> - 0.5.3-6
b797065
- rebuild (suitesparse)
b797065
36cbe76
* Sat Aug 03 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.5.3-5
36cbe76
- Rebuilt for https://fedoraproject.org/wiki/Fedora_20_Mass_Rebuild
36cbe76
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