1Summary: An addictive action-puzzle game involving bouncing penguins 2Name: icebreaker 3Version: 1.9.8 4Release: 1 5%define isprerelease 0 6# um, maybe there's a better way to do this. let me know. 7%define isdevelrelease %(echo $(($(echo %{version} | /bin/sed 's/.*\\.\\([0-9]\\)\\..*/\\1/') \& 1))) 8Epoch: 4 9Copyright: GPL 10Group: Amusements/Games 11 12%if %{isprerelease} 13Source: icebreaker-%{version}-%{release}.tgz 14%else 15Source: icebreaker-%{version}.tgz 16%endif 17 18URL: http://www.mattdm.org/icebreaker/ 19Prefix: %{_prefix} 20Vendor: Matthew Miller <mattdm@mattdm.org> 21Packager: Matthew Miller <mattdm@mattdm.org> 22BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-buildroot 23BuildRequires: SDL-devel, SDL_mixer-devel, /bin/awk, /bin/sed, /bin/grep 24 25%if %{isprerelease} 26%define extradescription *** Warning *** This is a prerelease build not meant for general public use. 27%elseif %{isdevelrelease} 28%define extradescription NOTE: This is a development release. Bug-testers only, please. 29%endif 30 31%description 32IceBreaker is an action-puzzle game in which you must capture penguins from 33an Antarctic iceberg so they can be shipped to Finland, where they are 34essential to a secret plot for world domination. To earn the highest Geek 35Cred, trap them in the smallest space in the shortest time while losing the 36fewest lives. IceBreaker was inspired by (but is far from an exact clone of) 37Jezzball by Dima Pavlovsky. 38%{extradescription} 39 40%prep 41%if %{isprerelease} 42%setup -q -n %{name}-%{version}-%{release} 43%else 44%setup -q 45%endif 46 47%build 48make OPTIMIZE="$RPM_OPT_FLAGS -finline-functions" highscoredir=/var/lib/games prefix=/usr 49 50%install 51make install highscoredir=${RPM_BUILD_ROOT}/var/lib/games prefix=${RPM_BUILD_ROOT}/usr 52 53mkdir -p ${RPM_BUILD_ROOT}/etc/X11/applnk/Games 54install -m 644 icebreaker.desktop ${RPM_BUILD_ROOT}/etc/X11/applnk/Games 55 56%post 57touch %{_var}/lib/games/icebreaker.scores 58chown games:games %{_var}/lib/games/icebreaker.scores 59chmod 0664 %{_var}/lib/games/icebreaker.scores 60 61%clean 62rm -rf $RPM_BUILD_ROOT 63 64%files 65%defattr (-,root,root) 66%doc README README.themes TODO LICENSE ChangeLog 67%attr(2755,root,games) %{_bindir}/icebreaker 68/etc/X11/applnk/Games/icebreaker.desktop 69%{_datadir}/icebreaker 70%{_mandir}/man6/* 71%attr(664,games,games) %ghost %{_var}/lib/games/icebreaker.scores 72 73%changelog 74* Fri May 31 2002 Matthew Miller <mattdm@mattdm.org> 75- 1.9.6 76 77* Mon May 27 2002 Matthew Miller <mattdm@mattdm.org> 78- 1.9.5 79 80* Thu May 23 2002 Matthew Miller <mattdm@mattdm.org> 81- more complex makefile allows simpler specfile 82 83* Tue May 21 2002 Matthew Miller <mattdm@mattdm.org> 84- added themes docs 85 86* Sun May 19 2002 Matthew Miller <mattdm@mattdm.org> 87- inserted some convenience stuff to enable "make rpm" magic to work 88- added "isprerelease" check. No one but me should care about this. 89 90* Sun May 19 2002 Matthew Miller <mattdm@mattdm.org> 91- 1.9.2 92 93* Fri May 17 2002 Matthew Miller <mattdm@mattdm.org> 94- REALLY add .ibt files for themes 95 96* Mon May 13 2002 Matthew Miller <mattdm@mattdm.org> 97- add .ibt files for themes 98 99* Wed May 08 2002 Matthew Miller <mattdm@mattdm.org> 100- 1.9.1 101 102* Wed Aug 01 2001 Matthew Miller <mattdm@mattdm.org> 103- 1.9.0 104 105* Mon Jul 30 2001 Matthew Miller <mattdm@mattdm.org> 106- 1.2.1 107 108* Sat Jul 28 2001 Matthew Miller <mattdm@mattdm.org> 109- 1.2 110 111* Tue Jul 24 2001 Matthew Miller <mattdm@mattdm.org> 112- move man page section 6 113 114* Sun Jul 22 2001 Matthew Miller <mattdm@mattdm.org> 115- 1.1 116 117* Fri Jul 20 2001 Matthew Miller <mattdm@mattdm.org> 118- borrowed idea of using post-script to create high score file 119 from Mandrake RPM. That way, it doesn't have to be marked as a config 120 file, and yet won't get zapped on upgrade. 121- also, modified Makefile to cope with RPM_OPT_FLAGS, again as per 122 Mandrake. 123 124* Thu Jul 19 2001 Matthew Miller <mattdm@mattdm.org> 125- added man page 126 127* Tue Jul 18 2001 Matthew Miller <mattdm@mattdm.org> 128- updated to 1.09 129 130* Thu Oct 5 2000 Matthew Miller <mattdm@mattdm.org> 131- looks good to me. one-point-oh 132 133* Tue Oct 3 2000 Matthew Miller <mattdm@mattdm.org> 134- updated to 0.995 135- better make process 136 137* Mon Oct 2 2000 Matthew Miller <mattdm@mattdm.org> 138- updated to 0.99 :) 139 140* Mon Oct 2 2000 Matthew Miller <mattdm@mattdm.org> 141- updated to 0.98 142 143* Fri Sep 15 2000 Matthew Miller <mattdm@mattdm.org> 144- first package 145