Sophie

Sophie

distrib > Mandriva > cooker > x86_64 > by-pkgid > 8a49beec87ceef59a336a669971d8e9f > files > 11

holotz-castle-1.3.14-2mdv2011.0.src.rpm

Name:			holotz-castle
Version:		1.3.14
Release:		%mkrel 2

Summary:	Holotz's Castle - A strategy platform scroller
License:	GPLv2+
Group:		Games/Arcade
URL:		http://www.mainreactor.net/holotzcastle/en/index_en.html
Source0:	http://www.mainreactor.net/holotzcastle/download/%{name}-%{version}-src.tar.gz
Source10:	hc-48x48.png
Source11:	hc-32x32.png
Source12:	hc-16x16.png
Source20:	holotz-castle-editor-48x48.png
Source21:	holotz-castle-editor-32x32.png
Source22:	holotz-castle-editor-16x16.png
Patch0:		holotz-castle-1.3.6-install.patch
Patch1:		holotz-castle-1.3.11-compile-fixes.patch
Patch2:		holotz-castle-1.3.14-compile-fixes.patch

BuildRequires:	SDL-devel
BuildRequires:	SDL_mixer-devel
BuildRequires:	SDL_image-devel
BuildRequires:	SDL_ttf-devel
BuildRequires:  MesaGLU-devel
BuildRoot:	%{_tmppath}/%{name}-%{version}

%package -n %{name}-editor
License:	GPLv2+
Group:		Games/Arcade
Summary:	Holotz's Castle level editor
Requires:	%{name} == %{version}

%description
A great mystery is hidden beyond the walls of Holotz's Castle. Will you be
able to help Ybelle and Ludar to escape alive from the castle?

Test your dexterity with this tremendously exciting platform game!

%description -n %{name}-editor
This package contains a level editor for Holotz's Castle.

%prep
%setup -q -n %{name}-%{version}-src
%patch0 -p0
%patch1 -p1
%patch2 -p1
perl -pi -e s"|\r\n|\n|g" res/playlist.txt
rm -f res/savedata/empty.txt

%build
make

%install
rm -rf %{buildroot}
%makeinstall INSTALL_ROOT=%{buildroot}

install -d -m 755 %{buildroot}%{_mandir}/man6/
install -m 644 man/%{name}.6 %{buildroot}%{_mandir}/man6/
install -d -m 755 %{buildroot}%{_liconsdir}
install -d -m 755 %{buildroot}%{_miconsdir}
install -m 644 %{_sourcedir}/hc-48x48.png -D %{buildroot}%{_liconsdir}/%{name}.png
install -m 644 %{_sourcedir}/hc-32x32.png -D %{buildroot}%{_iconsdir}/%{name}.png
install -m 644 %{_sourcedir}/hc-16x16.png -D %{buildroot}%{_miconsdir}/%{name}.png
#game

#game, xdg
mkdir -p %{buildroot}%{_datadir}/applications
cat > %{buildroot}%{_datadir}/applications/mandriva-%{name}.desktop << EOF
[Desktop Entry]
Name=Holotz's Castle
Comment=%{summary}
Exec=%{_gamesbindir}/%{name}
Icon=%{name}
Terminal=false
Type=Application
Categories=Game;ArcadeGame;
EOF

#editor
install -m 644 man/%{name}-editor.6 %{buildroot}%{_mandir}/man6/
install -m 644 %{_sourcedir}/holotz-castle-editor-48x48.png -D %{buildroot}%{_liconsdir}/%{name}-editor.png
install -m 644 %{_sourcedir}/holotz-castle-editor-32x32.png -D %{buildroot}%{_iconsdir}/%{name}-editor.png
install -m 644 %{_sourcedir}/holotz-castle-editor-16x16.png -D %{buildroot}%{_miconsdir}/%{name}-editor.png

#editor, xdg
mkdir -p %{buildroot}%{_datadir}/applications
cat > %{buildroot}%{_datadir}/applications/mandriva-%{name}-editor.desktop << EOF
[Desktop Entry]
Name=Holotz's Castle Editor
Comment=Level editor for Holotz's Castle
Exec=%{_gamesbindir}/%{name}-editor
Icon=%{name}-editor
Terminal=false
Type=Application
Categories=X-MandrivaLinux-MoreApplications-Games-Arcade;Game;ArcadeGame;
EOF

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

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

%if %mdkversion < 200900
%post -n %{name}-editor
%update_menus
%endif

%if %mdkversion < 200900
%postun -n %{name}-editor
%clean_menus
%endif

%clean
rm -rf %{buildroot}

%files
%defattr(644,root,games,755)
%doc LICENSE.txt doc/*.txt
%attr(0755,root,games) %{_gamesbindir}/%{name}
%dir %{_gamesdatadir}/%{name}
%{_gamesdatadir}/%{name}/game
%{_mandir}/man6/%{name}.6*
%{_liconsdir}/%{name}.png
%{_iconsdir}/%{name}.png
%{_miconsdir}/%{name}.png
%{_datadir}/applications/mandriva-%{name}.desktop

%files -n %{name}-editor
%defattr(644,root,games,755)
%doc LICENSE.txt
%attr(0755,root,games) %{_gamesbindir}/%{name}-editor
%{_gamesdatadir}/%{name}/editor
%{_mandir}/man6/%{name}-editor.6*
%{_liconsdir}/%{name}-editor.png
%{_iconsdir}/%{name}-editor.png
%{_miconsdir}/%{name}-editor.png
%{_datadir}/applications/mandriva-%{name}-editor.desktop



%changelog
* Sun Dec 05 2010 Oden Eriksson <oeriksson@mandriva.com> 1.3.14-2mdv2011.0
+ Revision: 611097
- rebuild

* Sat May 01 2010 Funda Wang <fwang@mandriva.org> 1.3.14-1mdv2010.1
+ Revision: 541471
- fix desktop file

* Tue Sep 08 2009 Guillaume Bedot <littletux@mandriva.org> 1.3.14-1mdv2010.0
+ Revision: 433549
- New release 1.3.14

* Mon Jan 12 2009 Guillaume Bedot <littletux@mandriva.org> 1.3.13-1mdv2009.1
+ Revision: 328582
- Release 1.3.13

* Mon Sep 08 2008 Guillaume Bedot <littletux@mandriva.org> 1.3.12-1mdv2009.0
+ Revision: 282547
- Release 1.3.12 (with additional levels already included)
- Rediffed patch1
- Dropped unneeded buildrequires
- Fixed license, and some more cleanup

  + Thierry Vignaud <tv@mandriva.org>
    - 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 Jan 11 2008 Thierry Vignaud <tv@mandriva.org> 1.3.10-1mdv2008.1
+ Revision: 148217
- drop old menu
- kill re-definition of %%buildroot on Pixel's request
- kill desktop-file-validate's 'warning: key "Encoding" in group "Desktop Entry" is deprecated'

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

* Fri Aug 10 2007 Guillaume Bedot <littletux@mandriva.org> 1.3.10-1mdv2008.0
+ Revision: 61436
- Release 1.3.10

* Wed Apr 18 2007 Guillaume Bedot <littletux@mandriva.org> 1.3.9-1mdv2008.0
+ Revision: 14714
- New release 1.3.9


* Tue Aug 01 2006 Guillaume Bedot <littletux@mandriva.org> 1.3.8-3mdv2007.0
- patch from debian fixing warnings instead of ignoring them and endianess
 (trying to fix bug #24005)

* Mon Jul 31 2006 Guillaume Bedot <littletux@mandriva.org> 1.3.8-2mdv2007.0
- fix menu + xdg

* Wed Mar 15 2006 Guillaume Bedot <littletux@mandriva.org> 1.3.8-1mdk
- 1.3.8

* Sun Jan 22 2006 Nicolas Lécureuil <neoclust@mandriva.org> 1.3.7-2mdk
- Add BuildRequires: MesaGLU-devel

* Mon Nov 28 2005 Guillaume Bedot <littletux@mandriva.org> 1.3.7-1mdk
- New release

* Wed May 18 2005 Guillaume Bedot <littletux@mandriva.org> 1.3.6-2mdk
- Well, a package from David Black aka dblackia already existed in the club...
 the best of both is now kept in this new release, i hope.
- New descriptions, summary, and a additional icon, used for the editor 
 new menu entry.
- And finally, the package is split into game and editor packages.

* Tue May 17 2005 Guillaume Bedot <littletux@mandriva.org> 1.3.6-1mdk
- first package for Holotz Castle.