LogoopenSUSE Build Service > Projects
Sign Up | Log In

View File orbital_eunuchs_sniper.spec of Package orbital_eunuchs_sniper (Project home:damianator:fedora)

Name:			orbital_eunuchs_sniper
Version:		1.30
Release:		2%{?dist}
Summary:		An anti-terrorist pro-Eunuchs satellite sniping game
Group:			Amusements/Games
License:		GPLv2+
URL:			http://icculus.org/oes/
Source0:		http://icculus.org/oes/%{name}-%{version}.tar.gz
Patch0:			oes-gcc43.patch
BuildRoot:		%{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
BuildRequires:		SDL-devel 
BuildRequires:		SDL_mixer-devel
BuildRequires:		SDL_image-devel
BuildRequires:		desktop-file-utils
BuildRequires:		gcc-c++

%description
Orbital Eunuchs Sniper is an overhead shooting game. You (the Eunuch on the
orbital laser platform) are tasked with protecting the VIPs (blue) from the
terrorists (red)!

%prep
%setup -q
%patch0 -p0 -b .gcc43

%build
%configure --with-games-dir=%{_datadir}
make %{?_smp_mflags}

%install
rm -rf %{buildroot}
make install DESTDIR=%{buildroot}

cat << EOF > %{name}.desktop
[Desktop Entry] 
Encoding=UTF-8
Name=Orbital Eunuchs Sniper
GenericName=Orbital Eunuchs Sniper
Comment=%{summary}
Exec=snipe2d
Icon=
Terminal=false
Type=Application
Categories=Game;
EOF

desktop-file-install --dir=%{buildroot}%{_datadir}/applications/ %{name}.desktop

desktop-file-validate %{buildroot}%{_datadir}/applications/%{name}.desktop

%clean
rm -rf %{buildroot}

%files
%defattr(-,root,root,-)
%doc AUTHORS COPYING README *.txt TODO
%{_bindir}/snipe2d
%{_datadir}/%{name}
%{_datadir}/applications/%{name}.desktop

%changelog
* Sat Apr 10 2010 Damian Ivanov <info@damianator.no-ip.org> - 1.0.3-1
- initial release