Sophie

Sophie

distrib > Mandriva > current > i586 > media > contrib-release-src > by-pkgid > 8b74791b629a862f2d85957ca5664248 > files > 2

nuclearchess-1.0.0-1mdv2010.0.src.rpm

%define version 1.0.0
%define release %mkrel 1

%define summary Chess variant that cause surronding pieces to disappear
Summary:	%{summary}
Name:		nuclearchess
Version:	%{version}
Release:	%{release}
License:	GPLv2
Source:		http://user.cs.tu-berlin.de/~karlb//%{name}/%{name}-%{version}.tar.gz
Group:		Games/Boards
URL:		http://www.linux-games.com/nuclearchess/
Buildroot:	%{_tmppath}/%{name}-%{version}-buildroot
BuildRequires:	libSDL_image-devel

%description
NuclearChess is a chess variant. Whenever a piece is captured, both
pieces and all pieces on neighbour fields die.

%prep
%setup -q

%build
%configure2_5x --datadir=%{_gamesdatadir} --bindir=%{_gamesbindir}
%make

%install
rm -rf %{buildroot}
%makeinstall_std

mkdir -p $RPM_BUILD_ROOT%{_datadir}/applications/
cat << EOF > %buildroot%{_datadir}/applications/mandriva-%{name}.desktop
[Desktop Entry]
Type=Application
Exec=%{_gamesbindir}/%{name}
Icon=boards_section
Comment=%{summary}
Categories=BoardGame;
Name=Nuclear Chess
EOF

%clean
rm -rf %{buildroot}

%if %mdkversion < 200900
%post
%update_menus
%endif

%if %mdkversion < 200900
%postun
%clean_menus
%endif

%files
%defattr(-, root, root)
%doc AUTHORS ChangeLog COPYING README
%{_gamesbindir}/*
%{_gamesdatadir}/%{name}
%{_datadir}/applications/mandriva-%{name}.desktop



%changelog
* Tue May 19 2009 Jérôme Brenier <incubusss@mandriva.org> 1.0.0-1mdv2010.0
+ Revision: 377684
- update to new version 1.0.0
- fix BR
- fix desktop file
- fix license (GPLv2)
- fix source url

  + Thierry Vignaud <tvignaud@mandriva.com>
    - 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

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

* Wed Dec 19 2007 Thierry Vignaud <tvignaud@mandriva.com> 0.9.2-3mdv2008.1
+ Revision: 133912
- auto-convert XDG menu entry
- kill re-definition of %%buildroot on Pixel's request
- use %%mkrel
- import nuclearchess


* Sun Nov 21 2004 Abel Cheung <deaddog@deaddog.org> 0.9.2-3mdk
- Rebuild

* Wed Oct 08 2003 Abel Cheung <deaddog@deaddog.org> 0.9.2-2mdk
- move data files and binary to appropriate games dirs

* Tue Sep 23 2003 Abel Cheung <deaddog@deaddog.org> 0.9.2-1mdk
- First Mandrake package