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