03a8bd
Name:           vegastrike
41a5d1
Version:        0.5.1
6723b9
Release:        36.r1%{?dist}
03a8bd
Summary:        3D OpenGL spaceflight simulator
fda1ae
License:        GPLv2+
03a8bd
URL:            http://vegastrike.sourceforge.net/
a66dfc
#Source0:        http://downloads.sourceforge.net/%{name}/%{name}-src-%{version}.tar.bz2
8b0958
Source0:        http://downloads.sourceforge.net/%{name}/%{name}-src-%{version}.r1.tar.bz2
cf4872
# Found in the mandriva srpm, origin Debian ?
03a8bd
Source1:        %{name}-manpages.tar.bz2
cf4872
Source2:        %{name}-wrapper.sh
03a8bd
Source3:        %{name}.desktop
73c54e
Source4:        %{name}.appdata.xml
a5b0dc
Patch0:         vegastrike-0.5.1-char-fix.patch
beb8e1
Patch1:         vegastrike-0.5.1-paths-fix.patch
cf4872
Patch2:         vegastrike-0.4.2-posh-fix.patch
cf4872
Patch3:         vegastrike-0.4.2-vssetup-fix.patch
cf4872
Patch4:         vegastrike-0.4.3-64-bit.patch
73d524
Patch5:         vegastrike-0.5.1-openal.patch
88ea0c
Patch6:         vegastrike-0.5.1-sys-python.patch
7bbb68
Patch8:         vegastrike-0.5.1-gcc44.patch
5fb32f
Patch9:         vegastrike-0.5.0-glext.patch
bef59a
Patch14:        vegastrike-0.5.1-gcc47.patch
c4610d
Patch15:        vegastrike-0.5.1-music.patch
93b19d
Patch16:        vegastrike-0.5.1-gcc48.patch
220ff6
Patch17:        vegastrike-0.5.1-boost154.patch
Marcin Juszkiewicz 219fc9
Patch18:        vegastrike-aarch64.patch
73c54e
Patch19:        vegastrike-0.5.1-gcc6.patch
ba88af
# https://sourceforge.net/p/vegastrike/patches/70/
ba88af
Patch20:        vegastrike-0.5.1-gcc7.patch
ff1a5a
BuildRequires:  gcc-c++
03a8bd
BuildRequires:  libGLU-devel freeglut-devel libXi-devel libXmu-devel gtk2-devel
03a8bd
BuildRequires:  libjpeg-devel libpng-devel boost-devel expat-devel python-devel
27b955
BuildRequires:  boost-python2-devel
ac80a4
BuildRequires:  SDL_mixer-devel openal-soft-devel freealut-devel
ac80a4
BuildRequires:  libvorbis-devel ogre-devel cegui-devel desktop-file-utils
73c54e
BuildRequires:  libappstream-glib
73c54e
Requires:       %{name}-data = %{version}, xdg-utils, opengl-games-utils
03a8bd
03a8bd
%description
03a8bd
Vega Strike is a GPL 3D OpenGL Action RPG space sim that allows a player to
03a8bd
trade and bounty hunt. You start in an old beat up Wayfarer cargo ship, with
03a8bd
endless possibility before you and just enough cash to scrape together a life.
03a8bd
Yet danger lurks in the space beyond.
03a8bd
03a8bd
03a8bd
%prep
aaff35
%setup -q -a 1 -n %{name}-src-%{version}.r1
a5b0dc
%patch0 -p0
beb8e1
%patch1 -p0
cf4872
%patch2 -p1
cf4872
%patch3 -p1
cf4872
%patch4 -p1
73d524
%patch5 -p0
88ea0c
%patch6 -p0
7bbb68
%patch8 -p0
5fb32f
%patch9 -p1
bef59a
%patch14 -p1
08a8be
%patch15 -p3
93b19d
%patch16 -p0
220ff6
%patch17 -p1
Marcin Juszkiewicz 219fc9
%patch18 -p1
73c54e
%patch19 -p1
ba88af
%patch20 -p1
cf4872
iconv -f ISO-8859-1 -t UTF-8 README > README.tmp
cf4872
touch -r README README.tmp
cf4872
mv README.tmp README
d0df92
sed -i 's/-lboost_python/-lboost_python%{python2_version_nodots}/g' Makefile.in
2a892e
# we want to use the system version of expat.h
2a892e
rm objconv/mesher/expat.h
03a8bd
03a8bd
03a8bd
%build
a46341
export CXXFLAGS="$RPM_OPT_FLAGS -fsigned-char"
cf4872
%configure --with-data-dir=%{_datadir}/%{name} --with-boost=system \
a46341
  --enable-release --enable-flags="-DBOOST_PYTHON_NO_PY_SIGNATURES $RPM_OPT_FLAGS -fsigned-char" --disable-ffmpeg \
cf4872
  --enable-stencil-buffer
03a8bd
make %{?_smp_mflags}
03a8bd
03a8bd
03a8bd
%install
cf4872
#make install PREFIX=$RPM_BUILD_ROOT doesn't work
03a8bd
%makeinstall
cf4872
install -p -m 755 %{SOURCE2} $RPM_BUILD_ROOT%{_bindir}
03a8bd
03a8bd
mkdir -p $RPM_BUILD_ROOT%{_libexecdir}/%{name}
cf4872
chmod +x $RPM_BUILD_ROOT%{_prefix}/objconv/*
cf4872
mv $RPM_BUILD_ROOT%{_prefix}/objconv/* \
cf4872
  $RPM_BUILD_ROOT%{_libexecdir}/%{name}
cf4872
for i in asteroidgen base_maker mesh_xml mesher replace tempgen trisort \
cf4872
         vsrextract vsrmake; do
03a8bd
  mv $RPM_BUILD_ROOT%{_bindir}/$i $RPM_BUILD_ROOT%{_libexecdir}/%{name}
03a8bd
done
03a8bd
03a8bd
mkdir -p $RPM_BUILD_ROOT%{_mandir}/man6
03a8bd
install -p -m 644 *.6 $RPM_BUILD_ROOT%{_mandir}/man6
03a8bd
03a8bd
# below is the desktop file and icon stuff.
03a8bd
mkdir -p $RPM_BUILD_ROOT%{_datadir}/applications
73c54e
desktop-file-install --dir $RPM_BUILD_ROOT%{_datadir}/applications %{SOURCE3}
73c54e
mkdir -p $RPM_BUILD_ROOT%{_datadir}/appdata
73c54e
install -p -m 644 %{SOURCE4} $RPM_BUILD_ROOT%{_datadir}/appdata
73c54e
appstream-util validate-relax --nonet \
73c54e
  $RPM_BUILD_ROOT%{_datadir}/appdata/%{name}.appdata.xml
03a8bd
03a8bd
03a8bd
%files
73c54e
%doc AUTHORS DOCUMENTATION README ToDo.txt
73c54e
%license COPYING
cf4872
%{_bindir}/vega*
03a8bd
%{_bindir}/vs*
03a8bd
%{_libexecdir}/%{name}
03a8bd
%{_mandir}/man6/*
73c54e
%{_datadir}/appdata/%{name}.appdata.xml
Parag Nemade eb7c31
%{_datadir}/applications/%{name}.desktop
03a8bd
03a8bd
03a8bd
%changelog
6723b9
* Sun Feb 03 2019 Fedora Release Engineering <releng@fedoraproject.org> - 0.5.1-36.r1
6723b9
- Rebuilt for https://fedoraproject.org/wiki/Fedora_30_Mass_Rebuild
6723b9
d0df92
* Wed Jan 30 2019 Jonathan Wakely <jwakely@redhat.com> - 0.5.1-35.r1
d0df92
- Use %%{python2_version_nodots} for Boost.Python library name
d0df92
9b7a41
* Tue Jan 29 2019 Jonathan Wakely <jwakely@redhat.com> - 0.5.1-35.r1
9b7a41
- Change library name for Boost.Python in Boost 1.69
9b7a41
b1f491
* Fri Jan 25 2019 Jonathan Wakely <jwakely@redhat.com> - 0.5.1-35.r1
b1f491
- Rebuilt for Boost 1.69
b1f491
622c32
* Sat Jul 14 2018 Fedora Release Engineering <releng@fedoraproject.org> - 0.5.1-34.r1
622c32
- Rebuilt for https://fedoraproject.org/wiki/Fedora_29_Mass_Rebuild
622c32
27b955
* Tue May 01 2018 Jonathan Wakely <jwakely@redhat.com> - 0.5.1-33.r1
27b955
- Add BuildRequires: boost-python2-devel to fix build with boost-1.66.0-7.fc29
27b955
3f0e32
* Wed Feb 07 2018 Hans de Goede <hdegoede@redhat.com> - 0.5.1-32.r1
3f0e32
- Rebuilt for new Boost
3f0e32
606ce5
* Thu Aug 03 2017 Fedora Release Engineering <releng@fedoraproject.org> - 0.5.1-31.r1
606ce5
- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Binutils_Mass_Rebuild
606ce5
e244a1
* Thu Jul 27 2017 Fedora Release Engineering <releng@fedoraproject.org> - 0.5.1-30.r1
e244a1
- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Mass_Rebuild
e244a1
1bab88
* Fri Jul 21 2017 Kalev Lember <klember@redhat.com> - 0.5.1-29.r1
1bab88
- Rebuilt for Boost 1.64
1bab88
ba88af
* Fri Feb 17 2017 Jonathan Wakely <jwakely@redhat.com> - 0.5.1-28.r1
ba88af
- Fix build failure with GCC 7
ba88af
838293
* Sat Feb 11 2017 Fedora Release Engineering <releng@fedoraproject.org> - 0.5.1-28.r1
838293
- Rebuilt for https://fedoraproject.org/wiki/Fedora_26_Mass_Rebuild
838293
73c54e
* Mon Feb 22 2016 Hans de Goede <hdegoede@redhat.com> - 0.5.1-27.r1
73c54e
- Fix FTBFS (rhbz#1308225)
73c54e
- Add appdata
73c54e
61a02c
* Fri Feb 05 2016 Fedora Release Engineering <releng@fedoraproject.org> - 0.5.1-26.r1
61a02c
- Rebuilt for https://fedoraproject.org/wiki/Fedora_24_Mass_Rebuild
61a02c
caf734
* Fri Aug 28 2015 Jonathan Wakely <jwakely@redhat.com> - 0.5.1-25.r1
caf734
- Rebuilt for Boost 1.59
caf734
94f3a7
* Wed Jul 29 2015 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.5.1-24.r1
94f3a7
- Rebuilt for https://fedoraproject.org/wiki/Changes/F23Boost159
94f3a7
ce876b
* Wed Jul 22 2015 David Tardon <dtardon@redhat.com> - 0.5.1-23.r1
ce876b
- rebuild for Boost 1.58
ce876b
0494f6
* Fri Jun 19 2015 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.5.1-22.r1
0494f6
- Rebuilt for https://fedoraproject.org/wiki/Fedora_23_Mass_Rebuild
0494f6
8f0d54
* Sat May 02 2015 Kalev Lember <kalevlember@gmail.com> - 0.5.1-21.r1
8f0d54
- Rebuilt for GCC 5 C++11 ABI change
8f0d54
Petr Machata 679181
* Thu Jan 29 2015 Petr Machata <pmachata@redhat.com> - 0.5.1-20.r1
Petr Machata 679181
- Rebuild for boost 1.57.0
Petr Machata 679181
619770
* Mon Aug 18 2014 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.5.1-19.r1
619770
- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_22_Mass_Rebuild
619770
Marcin Juszkiewicz 219fc9
* Tue Jun 24 2014 Marcin Juszkiewicz <mjuszkiewicz@redhat.com> - 0.5.1-18.r1
Marcin Juszkiewicz 219fc9
- Added AArch64 definitions
Marcin Juszkiewicz 219fc9
0b53bd
* Sun Jun 08 2014 Hans de Goede <hdegoede@redhat.com> - 0.5.1-17.r1
0b53bd
- Rebuild for ogre-1.9
0b53bd
89e5c3
* Sun Jun 08 2014 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.5.1-16.r1
89e5c3
- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_Mass_Rebuild
89e5c3
Petr Machata 751309
* Sun May 25 2014 Petr Machata <pmachata@redhat.com> - 0.5.1-15.r1
Petr Machata 751309
- Rebuild for boost 1.55.0
Petr Machata 751309
efcfb1
* Fri May 23 2014 David Tardon <dtardon@redhat.com> - 0.5.1-14.r1
efcfb1
- rebuild for boost 1.55.0
efcfb1
220ff6
* Mon Aug 05 2013 Hans de Goede <hdegoede@redhat.com> - 0.5.1-13.r1
220ff6
- Fix building with boost 1.54
220ff6
d0d37f
* Sun Aug 04 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.5.1-12.r1
d0d37f
- Rebuilt for https://fedoraproject.org/wiki/Fedora_20_Mass_Rebuild
d0d37f
Petr Machata db70e8
* Mon Jul 29 2013 Petr Machata <pmachata@redhat.com> - 0.5.1-11.r1
Petr Machata db70e8
- Rebuild for boost 1.54.0
Petr Machata db70e8
93b19d
* Sun Feb 24 2013 Bruno Wolff III <bruno@wolff.to> - 0.5.1-10.r1
93b19d
- Fix incorrect use of 0 as an int as opposed to (char *)
93b19d
88fc4d
* Sun Feb 10 2013 Denis Arnaud <denis.arnaud_fedora@m4x.org> - 0.5.1-9.r1
88fc4d
- Rebuild for Boost-1.53.0
88fc4d
3e5a7f
* Sat Feb 09 2013 Denis Arnaud <denis.arnaud_fedora@m4x.org> - 0.5.1-8.r1
3e5a7f
- Rebuild for Boost-1.53.0
3e5a7f
Parag Nemade eb7c31
* Sat Feb 09 2013 Parag Nemade <paragn at="" fedoraproject="" dot="" org=""> - 0.5.1-7.r1
Parag Nemade eb7c31
- Remove vendor tag from desktop file as per https://fedorahosted.org/fesco/ticket/1077
Parag Nemade eb7c31
- Cleanup spec as per recently changed packaging guidelines
Parag Nemade eb7c31
Adam Tkac 7bc611
* Mon Jan 21 2013 Adam Tkac <atkac redhat="" com=""> - 0.5.1-6.r1
Adam Tkac 7bc611
- rebuild due to "jpeg8-ABI" feature drop
Adam Tkac 7bc611
f918dd
* Sun Dec 09 2012 Bruno Wolff III <bruno@wolff.to> - 0.5.1-4.r1
f918dd
- Rebuild for ogre 1.8.1
f918dd
6cde00
* Sun Aug 12 2012 Bruno Wolff III <bruno@wolff.to> - 0.5.1-3.r1
6cde00
- Rebuild for boost 1.50
6cde00
fa31ea
* Sun Jul 22 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.5.1-3.r1
fa31ea
- Rebuilt for https://fedoraproject.org/wiki/Fedora_18_Mass_Rebuild
fa31ea
0643ff
* Sun Apr 29 2012 Bruno Wolff III <bruno@wolff.to> - 0.5.1-2.r1
0643ff
- Apply upstream patch to fix music issue
0643ff
aaff35
* Wed Apr 04 2012 Bruno Wolff III <bruno@wolff.to> - 0.5.1-1.r1
aaff35
- Update to 0.5.1 release
aaff35
d5eb10
* Sun Apr 01 2012 Bruno Wolff III <bruno@wolff.to> - 0.5.1-0.8.beta1.2
d5eb10
- Rebuild for ogre 1.7.4
d5eb10
6921cf
* Tue Feb 28 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.5.1-0.7.beta1.2
6921cf
- Rebuilt for c++ ABI breakage
6921cf
bef59a
* Tue Jan 17 2012 Hans de Goede <hdegoede@redhat.com> - 0.5.1-0.6.beta1.2
bef59a
- Fix building with gcc-4.7
bef59a
aa5038
* Sat Jan 14 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.5.1-0.5.beta1.2
aa5038
- Rebuilt for https://fedoraproject.org/wiki/Fedora_17_Mass_Rebuild
aa5038
3c807c
* Sun Nov 20 2011 Bruno Wolff III <bruno@wolff.to> - 0.5.1-0.4.beta1.2
3c807c
- Rebuild for boost soname bump
3c807c
3c807c
* Sun Nov 06 2011 Bruno Wolff III <bruno@wolff.to> - 0.5.1-0.3.beta1.2
df3b7d
- Change direct png struct reference to use an accessor for linpng 1.5
10c93c
3c807c
* Fri Jul 22 2011 Bruno Wolff III <bruno@wolff.to> - 0.5.1-0.2.beta1.2
e885b4
- Rebuild for boost 1.47
e885b4
Parag Nemade cfb863
* Sat Jul 09 2011 Bruno Wolff III <bruno@wolff.to> - 0.5.1-0.1.beta1.2
41a5d1
- Update to upstream 0.5.1.beta1-2
af27ed
- Adjust existing patches for the update
af27ed
- Handle the boost_thread to boost_thread_mt change.
41a5d1
eba3ef
* Tue May 17 2011 Bruno Wolff III <bruno@wolff.to> - 0.5.0-23
eba3ef
- Rebuild for ogre 1.7.3
eba3ef
2a2870
* Thu Apr 07 2011 Hans de Goede <hdegoede@redhat.com> - 0.5.0-22
2a2870
- Rebuild for new boost
2a2870
e1d5b2
* Thu Feb 10 2011 Hans de Goede <hdegoede@redhat.com> - 0.5.0-21
e1d5b2
- Rebuild for new boost
e1d5b2
- Fix building with gcc-4.6
e1d5b2
f98069
* Mon Feb 07 2011 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.5.0-20
f98069
- Rebuilt for https://fedoraproject.org/wiki/Fedora_15_Mass_Rebuild
f98069
21be7c
* Mon Jan  3 2011 Hans de Goede <hdegoede@redhat.com> 0.5.0-19
21be7c
- Rebuild for new ogre
21be7c
cb5716
* Sat Jul 31 2010 Hans de Goede <hdegoede@redhat.com> 0.5.0-18
cb5716
- Fix building with gcc-4.5
cb5716
cee74c
* Tue Jul 27 2010 David Malcolm <dmalcolm@redhat.com> - 0.5.0-17
cee74c
- Rebuilt for https://fedoraproject.org/wiki/Features/Python_2.7/MassRebuild
cee74c
38bb20
* Fri Jan 22 2010 Rahul Sundaram <sundaram@fedoraproject.org> - 0.5.0-16
38bb20
- Rebuild for Boost soname bump
38bb20
0688f2
* Thu Dec 10 2009 Hans de Goede <hdegoede@redhat.com> 0.5.0-15
0688f2
- Rebuild for silent boost-python ABI breakage (#540277)
0688f2
Alexey Torkhov 80bf58
* Mon Sep 28 2009 Alexey Torkhov <atorkhov@gmail.com> - 0.5.0-14
Alexey Torkhov 80bf58
- Rebuild for new ogre
Alexey Torkhov 80bf58
ac80a4
* Sun Aug 16 2009 Hans de Goede <hdegoede@redhat.com> 0.5.0-13
ac80a4
- Switch to openal-soft
ac80a4
5fb32f
* Mon Aug  3 2009 Hans de Goede <hdegoede@redhat.com> 0.5.0-12
5fb32f
- Fix building with latest OpenGL headers
5fb32f
b31716
* Sun Jul 26 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.5.0-11
b31716
- Rebuilt for https://fedoraproject.org/wiki/Fedora_12_Mass_Rebuild
b31716
3caf26
* Sat May 23 2009 Hans de Goede <hdegoede@redhat.com> 0.5.0-10
3caf26
- Rebuild for new boost and new ogre
3caf26
Alexey Torkhov 0d19e4
* Tue Mar 03 2009 Alexey Torkhov <atorkhov@gmail.com> - 0.5.0-9
Alexey Torkhov 0d19e4
- Rebuild for new ogre
Alexey Torkhov 0d19e4
c75ce1
* Wed Feb 25 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.5.0-8
c75ce1
- Rebuilt for https://fedoraproject.org/wiki/Fedora_11_Mass_Rebuild
c75ce1
d97bb4
* Fri Dec 19 2008 Benjamin Kosnik  <bkoz@redhat.com> - 0.5.0-7
d97bb4
- Add boost-make_shared.patch
d97bb4
- Use -DBOOST_PYTHON_NO_PY_SIGNATURES.
d97bb4
- Rebuild for boost-1.37.0.
d97bb4
9e1983
* Sun Nov 30 2008 Ignacio Vazquez-Abrams <ivazqueznet+rpm@gmail.com> - 0.5.0-6
9e1983
- Rebuild for Python 2.6
9e1983
Alexey Torkhov f64f69
* Thu Oct  2 2008 Alexey Torkhov <atorkhov@gmail.com> 0.5.0-5
Alexey Torkhov f64f69
- Rebuild for new ogre
Alexey Torkhov f64f69
c78170
* Sun Sep  7 2008 Hans de Goede <hdegoede@redhat.com> 0.5.0-4
c78170
- Fix patch fuzz build failure
c78170
608da6
* Wed Jul  2 2008 Hans de Goede <j.w.r.degoede@hhs.nl> 0.5.0-3
608da6
- Rebuild for new ogre
608da6
7c474c
* Tue May 13 2008 Hans de Goede <j.w.r.degoede@hhs.nl> 0.5.0-2
7c474c
- Rebuild for new ogre
7c474c
cf4872
* Sat May  3 2008 Hans de Goede <j.w.r.degoede@hhs.nl> 0.5.0-1
cf4872
- New upstream release 0.5.0
cf4872
01279e
* Sun Apr 13 2008 Hans de Goede <j.w.r.degoede@hhs.nl> 0.4.3-9
01279e
- Use xdg-open instead of gedit to show the user the readme (bz 442063)
01279e
049d12
* Thu Feb 14 2008 Hans de Goede <j.w.r.degoede@hhs.nl> 0.4.3-8
049d12
- Fix building with gcc 4.3
049d12
- Rebuild for gcc 4.3
049d12
3e011f
* Mon Sep 24 2007 Hans de Goede <j.w.r.degoede@hhs.nl> 0.4.3-7
3e011f
- Use opengl-games-utils wrapper to show error dialog when DRI is missing
3e011f
2a892e
* Tue Aug 28 2007 Hans de Goede <j.w.r.degoede@hhs.nl> 0.4.3-6
2a892e
- Rebuild for new expat 2.0
2a892e
e68818
* Wed Aug 22 2007 Hans de Goede <j.w.r.degoede@hhs.nl> 0.4.3-5
e68818
- Rebuild for buildId
e68818
fda1ae
* Fri Aug  3 2007 Hans de Goede <j.w.r.degoede@hhs.nl> 0.4.3-4
fda1ae
- Update License tag for new Licensing Guidelines compliance
fda1ae
- Rebuild against new boost
fda1ae
03a8bd
* Wed May  9 2007 Hans de Goede <j.w.r.degoede@hhs.nl> 0.4.3-3
03a8bd
- Add some missing files including COPYING to %%doc
fe6d19
- Fix PPC compilation
03a8bd
03a8bd
* Mon Apr 23 2007 Hans de Goede <j.w.r.degoede@hhs.nl> 0.4.3-2
03a8bd
- Add some missing BuildRequires
03a8bd
- Keep system python paths in python path
03a8bd
03a8bd
* Fri Mar 23 2007 Hans de Goede <j.w.r.degoede@hhs.nl> 0.4.3-1
03a8bd
- Initial Fedora Extras package, partially based on Mandriva contrib SRPM