Package lightyears: Specfile
Name: lightyears Version: 1.3a Release: alt1 License: GPL Summary: A steampunk-themed strategy game where you have to manage a steam supply network Source: http://www.jwhitham.org.uk/20kly/%name-%version.tar.gz Patch: %name-1.3-NoneChan.patch Group: Games/Puzzles URL: http://www.jwhitham.org.uk/20kly Packager: Fr. Br. George <george@altlinux.ru> BuildArch: noarch %ifarch i586 Requires: python-module-psyco %endif BuildRequires: ImageMagick-tools %description 20,000 Light Years Into Space is a steampunk-themed strategy game where you have to manage a steam supply network. It is written in Python and runs on Windows and Linux. It was first released in 2006, and won second prize in the Pyweek game programming competition. It is free software, licensed under the GNU GPL version 2. It is now being distributed with the Debian and Ubuntu operating systems, and you can download it here too. There is a story for the game. Light Years includes an interactive tutorial; you can also read the instructions and a bit of history about Light Years. %prep %setup %patch %build for n in 72 64 48 32 ; do convert data/city1.png -trim -resize ${n}x$n -background transparent -gravity Center -extent ${n}x$n! $n.png; done cat > %name.desktop <<@@@ [Desktop Entry] Comment=%summary Name=20,000 Light Years Into Space GenericName=Simple strategy game Type=Application Exec=%name Icon=%name Terminal=false Categories=Game;StrategyGame; @@@ %install mkdir -p %buildroot%_gamesdatadir cp -rp . %buildroot%_gamesdatadir/%name install -D %name %buildroot%_gamesbindir/%name install -D %name.desktop %buildroot%_desktopdir/%name.desktop for n in 72 64 48 32; do install -D $n.png %buildroot%_iconsdir/hicolor/${n}x$n/apps/%name.png; done %files %doc README.txt manual %_gamesdatadir/%name %_gamesbindir/%name %_desktopdir/* %_iconsdir/hicolor/*/apps/* %changelog * Mon Jun 29 2009 Fr. Br. George <george@altlinux.ru> 1.3a-alt1 - Initial build from scratch |