%define srcname stone_soup Name: crawl Version: 0.11.1 Release: %mkrel 2 Summary: Dungeon Crawl Stone Soup, a roguelike RPG License: GPLv2+ Group: Games/Adventure Url: http://crawl.develz.org/ Source0: http://downloads.sourceforge.net/projects/crawl-ref/Stone%20Soup/%{version}/%{srcname}-%{version}-nodeps.tar.xz Patch0: %{name}-0.11.1-mga-fixinstall.patch BuildRequires: libncursesw-devel BuildRequires: lua5.1-devel BuildRequires: sqlite3-devel BuildRequires: flex BuildRequires: bison BuildRequires: pkgconfig(freetype2) BuildRequires: SDL_image-devel BuildRequires: ImageMagick BuildRequires: fonts-ttf-dejavu %description Dungeon Crawl Stone Soup is a free roguelike game of exploration and treasure-hunting in dungeons filled with dangerous and unfriendly monsters in a quest for the mystifyingly fabulous Orb of Zot. The game has diverse species and many different character backgrounds to choose from, deep tactical game-play, sophisticated magic, religion and skill systems, and a grand variety of monsters to fight and run from, making each game unique and challenging. %package common-data Summary: Common data for both game versions Group: Games/Adventure BuildArch: noarch %description common-data This package contains common data used by the console and the tiles version of the game. %package console Summary: Console version of Dungeon Crawl Stone Soup, a roguelike RPG Group: Games/Adventure Requires: %{name}-common-data = %{version} %description console Dungeon Crawl Stone Soup is a free roguelike game of exploration and treasure-hunting in dungeons filled with dangerous and unfriendly monsters in a quest for the mystifyingly fabulous Orb of Zot. The game has diverse species and many different character backgrounds to choose from, deep tactical game-play, sophisticated magic, religion and skill systems, and a grand variety of monsters to fight and run from, making each game unique and challenging. This package contains the console version of Dungeon Crawl Stone Soup (with ASCII characters). You can find a graphical version with tiles in the package crawl-tiles. %package tiles Summary: Tiles version of Dungeon Crawl Stone Soup, a roguelike RPG Group: Games/Adventure Requires: %{name}-common-data = %{version} %description tiles Dungeon Crawl Stone Soup is a free roguelike game of exploration and treasure-hunting in dungeons filled with dangerous and unfriendly monsters in a quest for the mystifyingly fabulous Orb of Zot. The game has diverse species and many different character backgrounds to choose from, deep tactical game-play, sophisticated magic, religion and skill systems, and a grand variety of monsters to fight and run from, making each game unique and challenging. This package contains the tiles version of Dungeon Crawl Stone Soup. You can find a console version with ASCII characters in the package crawl-console. %prep %setup -q -n %{srcname}-%{version} %patch0 -p0 %build cd source/ %make prefix=%{_prefix} DATADIR=%{_gamesdatadir}/%{name} BINDIR=%{_gamesbindir} DOCDIR=%{_docdir}/%{name} DISPLAYTYPE=console mv %{name} ../%{name}-console %make prefix=%{_prefix} DATADIR=%{_gamesdatadir}/%{name} BINDIR=%{_gamesbindir} DOCDIR=%{_docdir}/%{name} DISPLAYTYPE=tiles TILES=y %install cd source/ %makeinstall_std prefix=%{_prefix} DATADIR=%{_gamesdatadir}/%{name} BINDIR=%{_gamesbindir} DOCDIR=%{_docdir}/%{name} DISPLAYTYPE=tiles TILES=y cd .. install -m0755 %{name}-console %{buildroot}%{_gamesbindir} convert source/util/%{name}.ico %{name}.png mkdir -p %{buildroot}%{_miconsdir} cp %{name}-9.png %{buildroot}%{_miconsdir}/%{name}.png mkdir -p %{buildroot}%{_liconsdir} cp %{name}-7.png %{buildroot}%{_liconsdir}/%{name}.png mkdir -p %{buildroot}%{_iconsdir} cp %{name}-8.png %{buildroot}%{_iconsdir}/%{name}.png # Menu entry mkdir -p %{buildroot}%{_datadir}/applications/ %{__cat} > %{buildroot}%{_datadir}/applications/%{_real_vendor}-%{name}.desktop << EOF [Desktop Entry] Name=Dungeon Crawl Stone Soup Comment=Roguelike game with 2D graphics Exec=crawl-tiles Icon=%{name} Terminal=false Type=Application StartupNotify=true Categories=Game;AdventureGame; EOF %files common-data %defattr(-,root,root) %doc %{_docdir}/%{name}/ %{_gamesdatadir}/%{name}/dat/clua/* %{_gamesdatadir}/%{name}/dat/database/* %{_gamesdatadir}/%{name}/dat/defaults/* %{_gamesdatadir}/%{name}/dat/des/* %{_gamesdatadir}/%{name}/dat/descript/* %{_gamesdatadir}/%{name}/dat/dlua/* %{_gamesdatadir}/%{name}/dat/lua/* %{_gamesdatadir}/%{name}/settings/* %files console %defattr(-,root,root) %{_gamesbindir}/%{name}-console %files tiles %defattr(-,root,root) %{_gamesbindir}/%{name}-tiles %{_gamesdatadir}/%{name}/dat/tiles/* %{_datadir}/applications/%{_real_vendor}-%{name}.desktop %{_iconsdir}/* %changelog * Fri Jan 11 2013 umeabot <umeabot> 0.11.1-2.mga3 + Revision: 348295 - Mass Rebuild - https://wiki.mageia.org/en/Feature:Mageia3MassRebuild * Tue Jan 08 2013 akien <akien> 0.11.1-1.mga3 + Revision: 343052 - Added BuildRequires on fonts-ttf-dejavu, necessary for crawl-tiles. - Moved the tiles from the package crawl-common-data to the package crawl-tiles. - Updated the %%files section. - Changed BuildArch to noarch for data package. - Update to version 0.11.1. No other packaging changes. * Mon Jul 23 2012 obgr_seneca <obgr_seneca> 0.10.3-2.mga3 + Revision: 273682 - Removed second menu subcategory * Thu Jul 19 2012 akien <akien> 0.10.3-1.mga3 + Revision: 272531 - Update of crawl from version 0.10.0 to 0.10.3. Several important fixes in the SPEC file (see bug #6519) + obgr_seneca <obgr_seneca> - added missing br for imagemagick * Tue Mar 06 2012 akien <akien> 0.10.0-1.mga2 + Revision: 220420 - Update of crawl to version 0.10.0 * Tue Nov 29 2011 akien <akien> 0.9.1-1.mga2 + Revision: 174314 - Addition of missing BuildRequires: SDL_image-devel, pkgsubmit(freetype) - Added a missing build dependency: zlib-devel - removed sound enabling since there are no official nor redistributable sound files - imported package crawl