Sophie

Sophie

distrib > Mandriva > 2011.0 > x86_64 > by-pkgid > f7d2c0d3d6ed78112e499918ef6a8c8b > files > 5

enemylines4-1.0-9mdv2011.0.src.rpm

Name:		enemylines4
Summary:	A simple futuristic racing game
Version:	1.0
Release:	%mkrel 9
Source0:	http://proj.phk.at/el/4/%{name}-%{version}.tar.bz2
Source10:	%{name}.png
# include assert.h in track.cc to fix build failure - AdamW 2008/02
Patch0:		enemylines4-assert.patch
Patch1:		enemylines4-1.0-mdv-fix-gcc-4.3.patch
URL:		http://proj.phk.at/el/4/
Group:		Games/Arcade
BuildRoot:	%{_tmppath}/%{name}-%{version}-%{release}-buildroot
License:	GPL+
BuildRequires:	SDL_image-devel SDL-devel mesaglut-devel
BuildRequires:  imagemagick

%description
A simple futuristic racing game. Urgent deliveries - Reach goal before
time runs out. Times aren't what they used to be though.
Road conditions are horrible and traffic safety and control systems
have been offline for months.

%prep
%setup -q
%patch0 -p1 -b .assert
%patch1 -p1 -b .gcc43

%build
%make

%install
rm -rf %{buildroot}
mkdir -p %{buildroot}%{_datadir}/%{name}/
cp ./data/* %{buildroot}%{_datadir}/%{name}/
install -m755 %{name} -D %{buildroot}%{_gamesbindir}/%{name}

mkdir -p %{buildroot}/%{_iconsdir}/hicolor/{16x16,32x32,48x48}/apps
install -m644 %{SOURCE10} %{buildroot}%{_iconsdir}/hicolor/48x48/apps/%{name}.png
convert -scale 32x32 %{SOURCE10} %{buildroot}%{_iconsdir}/hicolor/32x32/apps/%{name}.png
convert -scale 16x16 %{SOURCE10} %{buildroot}%{_iconsdir}/hicolor/16x16/apps/%{name}.png

mkdir -p %{buildroot}%{_datadir}/applications
cat << EOF > %{buildroot}%{_datadir}/applications/mandriva-%{name}.desktop
[Desktop Entry]
Type=Application
Exec=%{_gamesbindir}/%{name}
Icon=%{name}
Categories=Game;ArcadeGame;
Name=Enemy Lines 4
Comment=A simple futuristic racing game
EOF

%post
%if %mdkversion < 200900
%{update_menus}
%endif
%{update_icon_cache}

%postun
%if %mdkversion < 200900
%{clean_menus}
%endif
%{clean_icon_cache}

%clean 
rm -rf %{buildroot} 

%files 
%defattr(-,root,root)
%doc README
%{_datadir}/%{name}
%{_gamesbindir}/%{name}
%{_iconsdir}/hicolor/*/apps/%{name}.png
%{_datadir}/applications/mandriva-%{name}.desktop


%changelog
* Sun Dec 05 2010 Oden Eriksson <oeriksson@mandriva.com> 1.0-9mdv2011.0
+ Revision: 610375
- rebuild

* Sat Dec 12 2009 Jérôme Brenier <incubusss@mandriva.org> 1.0-8mdv2010.1
+ Revision: 477903
- fix build with gcc 4.3

  + Thierry Vignaud <tv@mandriva.org>
    - rebuild
    - rebuild

  + Pixel <pixel@mandriva.com>
    - rpm filetriggers deprecates update_menus/update_scrollkeeper/update_mime_database/update_icon_cache/update_desktop_database/post_install_gconf_schemas

* Fri Feb 15 2008 Adam Williamson <awilliamson@mandriva.org> 1.0-4mdv2008.1
+ Revision: 168762
- add assert.patch to fix build failure with modern gcc
- update br
- fd.o icons
- new license policy
- spec clean

  + Thierry Vignaud <tv@mandriva.org>
    - auto convert menu to XDG
    - fix mesaglut-devel BR
    - kill re-definition of %%buildroot on Pixel's request

  + Olivier Blin <oblin@mandriva.com>
    - restore BuildRoot

  + Eskild Hustvedt <eskild@mandriva.org>
    - Rebuild
    - Import enemylines4



* Thu Dec 22 2005 Nicolas Lécureuil <neoclust@mandriva.org> 1.0-2mdk
- Fix BuildRequires: ImageMagick

* Wed Dec 14 2005 Eskild Hustvedt <eskild@mandrake.org> 1.0-1mdk
- Initial Mandriva Linux package