Blob Blame History Raw
Name:           vegastrike
Version:        0.5.0
Release:        1%{?dist}
Summary:        3D OpenGL spaceflight simulator
Group:          Amusements/Games
License:        GPLv2+
# Found in the mandriva srpm, origin Debian ?
Source1:        %{name}-manpages.tar.bz2
Source2:        %{name}
Source3:        %{name}.desktop
Patch0:         vegastrike-0.4.2-char-fix.patch
Patch1:         vegastrike-0.4.2-paths-fix.patch
Patch2:         vegastrike-0.4.2-posh-fix.patch
Patch3:         vegastrike-0.4.2-vssetup-fix.patch
Patch4:         vegastrike-0.4.3-64-bit.patch
Patch5:         vegastrike-0.4.3-openal.patch
Patch6:         vegastrike-0.4.3-sys-python.patch
BuildRoot:      %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
BuildRequires:  libGLU-devel freeglut-devel libXi-devel libXmu-devel gtk2-devel
BuildRequires:  libjpeg-devel libpng-devel boost-devel expat-devel python-devel
BuildRequires:  SDL_mixer-devel openal-devel freealut-devel libvorbis-devel
BuildRequires:  ogre-devel cegui-devel desktop-file-utils
Requires:       %{name}-data = %{version}, hicolor-icon-theme, xdg-utils
Requires:       opengl-games-utils

Vega Strike is a GPL 3D OpenGL Action RPG space sim that allows a player to
trade and bounty hunt. You start in an old beat up Wayfarer cargo ship, with
endless possibility before you and just enough cash to scrape together a life.
Yet danger lurks in the space beyond.

%setup -q -a 1 -n %{name}-source-%{version}
%patch0 -p1
%patch1 -p1
%patch2 -p1
%patch3 -p1
%patch4 -p1
%patch5 -p1
%patch6 -p1
iconv -f ISO-8859-1 -t UTF-8 README > README.tmp
touch -r README README.tmp
sed -i 's/-lboost_python-st/-lboost_python/g'
# we want to use the system version of expat.h
rm objconv/mesher/expat.h

%configure --with-data-dir=%{_datadir}/%{name} --with-boost=system \
  --enable-release --enable-flags="$RPM_OPT_FLAGS" --disable-ffmpeg \
make %{?_smp_mflags}

#make install PREFIX=$RPM_BUILD_ROOT doesn't work
install -p -m 755 %{SOURCE2} $RPM_BUILD_ROOT%{_bindir}

mkdir -p $RPM_BUILD_ROOT%{_libexecdir}/%{name}
chmod +x $RPM_BUILD_ROOT%{_prefix}/objconv/*
mv $RPM_BUILD_ROOT%{_prefix}/objconv/* \
for i in asteroidgen base_maker mesh_xml mesher replace tempgen trisort \
         vsrextract vsrmake; do
  mv $RPM_BUILD_ROOT%{_bindir}/$i $RPM_BUILD_ROOT%{_libexecdir}/%{name}

mkdir -p $RPM_BUILD_ROOT%{_mandir}/man6
install -p -m 644 *.6 $RPM_BUILD_ROOT%{_mandir}/man6

# below is the desktop file and icon stuff.
mkdir -p $RPM_BUILD_ROOT%{_datadir}/applications
desktop-file-install --vendor fedora            \
  --dir $RPM_BUILD_ROOT%{_datadir}/applications \



* Sat May  3 2008 Hans de Goede <> 0.5.0-1
- New upstream release 0.5.0

* Sun Apr 13 2008 Hans de Goede <> 0.4.3-9
- Use xdg-open instead of gedit to show the user the readme (bz 442063)

* Thu Feb 14 2008 Hans de Goede <> 0.4.3-8
- Fix building with gcc 4.3
- Rebuild for gcc 4.3

* Mon Sep 24 2007 Hans de Goede <> 0.4.3-7
- Use opengl-games-utils wrapper to show error dialog when DRI is missing

* Tue Aug 28 2007 Hans de Goede <> 0.4.3-6
- Rebuild for new expat 2.0

* Wed Aug 22 2007 Hans de Goede <> 0.4.3-5
- Rebuild for buildId

* Fri Aug  3 2007 Hans de Goede <> 0.4.3-4
- Update License tag for new Licensing Guidelines compliance
- Rebuild against new boost

* Wed May  9 2007 Hans de Goede <> 0.4.3-3
- Add some missing files including COPYING to %%doc
- Fix PPC compilation

* Mon Apr 23 2007 Hans de Goede <> 0.4.3-2
- Add some missing BuildRequires
- Keep system python paths in python path

* Fri Mar 23 2007 Hans de Goede <> 0.4.3-1
- Initial Fedora Extras package, partially based on Mandriva contrib SRPM