35e577d
Name:           cdogs-sdl
35e577d
Version:        0.4
35e577d
Release:        1%{?dist}
35e577d
Summary:        C-Dogs is an arcade shoot-em-up
35e577d
Group:          Amusements/Games
35e577d
License:        GPL
35e577d
URL:            http://lumaki.com/code/cdogs/
35e577d
Source0:        http://icculus.org/%{name}/files/src/%{name}-%{version}.tar.bz2
35e577d
Source1:        %{name}.desktop
35e577d
Patch0:         cdogs-sdl-0.4-64bit.patch
35e577d
Patch1:         cdogs-sdl-0.4-default-cfg.patch
35e577d
BuildRoot:      %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
35e577d
BuildRequires:  SDL_mixer-devel desktop-file-utils
35e577d
Requires:       cdogs-data = 0.4
35e577d
35e577d
%description
35e577d
C-Dogs SDL is a port of the old DOS arcade game C-Dogs to modern operating
35e577d
systems utilising the SDL Media Libraries. C-Dogs is an arcade shoot-em-up
35e577d
which lets players work alone and cooperatively during missions or fight
35e577d
against each other in the “dogfight” deathmatch mode. The DOS version of
35e577d
C-Dogs came with several built in missions and dogfight maps. This version
35e577d
does too. The author of the DOS version of C-Dogs was Ronny Wester. We would
35e577d
like to thank Ronny for releasing the C-Dogs sources to the public.
35e577d
35e577d
35e577d
%prep
35e577d
%setup -q
35e577d
%patch0 -p1 -z .64bit
35e577d
%patch1 -p1 -z .cfg
35e577d
sed -i 's/\r//' doc/original_readme.txt
35e577d
# stop this from getting installed as %doc
35e577d
rm doc/INSTALL
35e577d
35e577d
35e577d
%build
35e577d
pushd src
35e577d
make %{?_smp_mflags} DATADIR=%{_datadir}/cdogs-data \
35e577d
  CFLAGS="$RPM_OPT_FLAGS -fsigned-char -lefence" I_AM_CONFIGURED=yes cdogs
35e577d
popd
35e577d
35e577d
35e577d
%install
35e577d
rm -rf $RPM_BUILD_ROOT
35e577d
# DIY, as make install wants to install the data too, and thats in another rpm
35e577d
mkdir -p $RPM_BUILD_ROOT%{_bindir}
35e577d
install -m 755 src/cdogs $RPM_BUILD_ROOT%{_bindir}
35e577d
35e577d
mkdir -p $RPM_BUILD_ROOT%{_datadir}/applications
35e577d
desktop-file-install --vendor fedora            \
35e577d
  --dir $RPM_BUILD_ROOT%{_datadir}/applications \
35e577d
   %{SOURCE1}
35e577d
35e577d
35e577d
%clean
35e577d
rm -rf $RPM_BUILD_ROOT
35e577d
35e577d
35e577d
%files
35e577d
%defattr(-,root,root,-)
35e577d
%doc doc/*
35e577d
%{_bindir}/cdogs
35e577d
%{_datadir}/applications/fedora-%{name}.desktop
35e577d
35e577d
35e577d
%changelog
35e577d
* Mon Jul 16 2007 Hans de Goede <j.w.r.degoede@hhs.nl> 0.4-1
35e577d
- Initial Fedora Extras package