File astromenace.spec of Package astromenace
# norootforbuild
Name: astromenace
Version: 1.2
Release: 1
Summary: Hardcore 3D space shooter with spaceship upgrade possibilities
Group: Amusements/Games/Action/Shoot
License: GPLv3
URL: http://www.viewizard.com/
Source0: AstroMenaceSourceCode_080519-clean.tar.xz
Source1: astromenace.desktop
Source2: astromenace.png
Patch0: astromenace-langvfs.patch
Patch1: astromenace-640x480.patch
Patch2: astromenace-programmdir.patch
Patch3: astromenace-system-glext.patch
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root
BuildRequires: cmake libSDL-devel openal-devel freealut-devel libogg-devel gcc-c++
BuildRequires: libvorbis-devel libjpeg62-devel xz update-desktop-files
Requires: %{name}-data = %{version}, opengl-games-utils
%description
Space is a vast area, an unbounded territory where it seems there is a
room for everybody, but reversal of fortune put things differently. The
hordes of hostile creatures crawled out from the dark corners of the
universe, craving to conquer your homeland. Their force is compelling,
their legions are interminable. However, humans didn't give up without
a final showdown and put their best pilot to fight back. These malicious
invaders chose the wrong galaxy to conquer and you are to prove it!
Go ahead and make alien aggressors regret their insolence.
%prep
%setup -qn AstroMenaceSourceCode
sed -i 's/\r//' License.txt
sed -i 's/\r//' gpl-3.0.txt
chmod -x License.txt
chmod -x ReadMe.txt
chmod -x gpl-3.0.txt
%patch0 -p0
%patch1 -p1
%patch2 -p0
%patch3 -p1
%build
cmake .
make CFLAGS="$RPM_OPT_FLAGS"
%install
mkdir -p %{buildroot}%{_bindir}
install -m 755 AstroMenace %{buildroot}%{_bindir}/astromenace
%suse_update_desktop_file -i astromenace Game ActionGame
ln -s opengl-game-wrapper.sh $RPM_BUILD_ROOT%{_bindir}/astromenace-wrapper
%clean
rm -rf %{buildroot}
%files
%defattr(-,root,root,-)
%{_bindir}/astromenace
%{_bindir}/astromenace-wrapper
%doc ReadMe.txt License.txt gpl-3.0.txt
%{_datadir}/applications/astromenace.desktop
%{_datadir}/pixmaps/astromenace.png
%changelog