1# 2# $Id: cow.spec,v 1.9 2002/07/07 22:22:11 tanner Exp $ 3# 4# HOW TO COMPILE 5# 6# on redhat: --define "keydef path/to/key.def" 7# 8# rpm -ba --define "keydef /home/basic/.key.def" cow.spec 9# rpm --rebuild --define "keydef /home/basic/.key.def" cow-3.00_XXXX.src.rpm 10# 11# If you do not define a key.def file, I'll default to the sample_key.def 12# found in the cow source distribution. Please read the FAQ about blessed 13# clients if this does not make sense to you 14# <http://www.inl.org/netrek/netrekFAQ.html#10> 15# 16 17Summary: Netrek Client 18Name: cow 19Version: 3.3.2 20Release: realtime.1 21Copyright: BSD 22URL: http://cow.netrek.org/ 23Vendor: Real Time Enterprises, Inc. <support@real-time.com> 24Packager: Bob Tanner <basic@us.netrek.org> 25Distribution: Red Hat Linux 7.3 / i386 26Group: Amusements/Games 27Source0: %{name}-%{version}.tar.bz2 28Source3: pixmaps.tgz 29Source4: COW.3.00pl2.doc.tar.gz 30%define png $RPM_BUILD_DIR/%{name}-%{version}/cow.png 31%define desktop $RPM_BUILD_DIR/%{name}-%{version}/cow.desktop 32 33# 34# Sorry, I don't distribute my key with the source code, see the COW.DOC file 35# on generating your own key 36# 37#Source10: key.def 38# 39# You can get the tclug-menu at Twin Cities Linux Users Group official ftp 40# server <ftp://ftp.mn-linux.org/linux/apt/realtime/7.3/i386/RPMS.tclug/> 41# The tclug-menu package just setups up the appropriate menu entries for cow. 42# 43Requires: gmp, tclug-menu, SDL >= 1.2.4, SDL_mixer >= 1.2.4 44BuildRequires: gmp-devel, SDL-devel >= 1.2.4, SDL_mixer-devel >= 1.2.4 45BuildRoot: %{_tmppath}/%{name}-%{version}-root 46 47%description 48This is a client for the multi-player game of Netrek. 49 50Netrek is the probably the first video game which can accurately be described 51as a "sport." It has more in common with basketball than with arcade games or 52Quake. Its vast and expanding array of tactics and strategies allows for many 53different play styles; the best players are the ones who think fastest, not 54necessarily the ones who twitch most effectively. It can be enjoyed as a 55twitch game, since the dogfighting system is extremely robust, but the things 56that really set Netrek apart from other video games are the team and strategic 57aspects. Team play is dynamic and varied, with roles constantly changing as 58the game state changes. Strategic play is explored in organized league games; 59after 6+ years of league play, strategies are still being invented and refined. 60 61The game itself has existed for over 10 years, and has a solid playerbase, 62including some people who have been playing for nearly as long as the game has 63existed. 64 65All Netrek clients and servers are completely free of charge, although there 66are several people working on commercial netrek variants or derivatives. 67 68Netrek web site: <http://www.netrek.org/> 69Development web site: <http://cow.netrek.org/> 70 71To start the client program, run /usr/bin/netrek, and a list of servers should 72be displayed. 73 74%prep 75 76%setup -q -a 3 -a 4 77 78%build 79#%{__autoconf} 80%configure --enable-unstable 81# 82# If we find a keydef then use it, otherwise use the sample_key.def 83# 84%{__make} OPT="$RPM_OPT_FLAGS" %{?keydef:KEYDEF="%{keydef}"} %{?_smp_mflags} 85 86%install 87rm -rf %{buildroot} 88 89# 90# Redhat GNOME and Ximian GNOME desktop directories 91# 92%{__install} -m 755 -d %{buildroot}%{_sysconfdir}/X11/applnk/Games/Tclug 93%{__install} -m 755 -d %{buildroot}%{_datadir}/gnome/ximian/Programs/Games/Tclug 94%{__install} -m 755 -d %{buildroot}%{_datadir}/gnome/apps/Games/Tclug 95# 96# KDE desktop directory 97# 98%{__install} -m 755 -d %{buildroot}%{_datadir}/applnk/Games/Arcade 99%{__install} -m 755 -d %{buildroot}%{_datadir}/icons/hicolor/16x16/apps 100%{__install} -m 755 -d %{buildroot}%{_datadir}/icons/hicolor/32x32/apps 101%{__install} -m 755 -d %{buildroot}%{_datadir}/icons/hicolor/48x48/apps 102%{__install} -m 755 -d %{buildroot}%{_datadir}/icons/locolor/16x16/apps 103%{__install} -m 755 -d %{buildroot}%{_datadir}/icons/locolor/32x32/apps 104%{__install} -m 755 -d %{buildroot}%{_datadir}/icons/locolor/48x48/apps 105# 106# Common directories 107# 108%{__install} -m 755 -d %{buildroot}%{_datadir}/pixmaps 109%{__install} -m 755 -d %{buildroot}%{_bindir} 110 111%{__install} -m 755 -d %{buildroot}%{_datadir}/sounds/%{name} 112%{__install} -m 755 -d %{buildroot}%{_datadir}/pixmaps/%{name} 113# 114# Install desktop entries in GNOME areas 115# 116%{__install} %{desktop} %{buildroot}%{_sysconfdir}/X11/applnk/Games/Tclug 117%{__install} %{desktop} %{buildroot}%{_datadir}/gnome/ximian/Programs/Games/Tclug 118%{__install} %{desktop} %{buildroot}%{_datadir}/gnome/apps/Games/Tclug 119# 120# Install desktop entry into KDE areas 121# 122%{__install} %{desktop} %{buildroot}%{_datadir}/applnk/Games/Arcade 123%{__install} %{png} %{buildroot}%{_datadir}/icons/hicolor/16x16/apps 124%{__install} %{png} %{buildroot}%{_datadir}/icons/hicolor/32x32/apps 125%{__install} %{png} %{buildroot}%{_datadir}/icons/hicolor/48x48/apps 126%{__install} %{png} %{buildroot}%{_datadir}/icons/locolor/16x16/apps 127%{__install} %{png} %{buildroot}%{_datadir}/icons/locolor/32x32/apps 128%{__install} %{png} %{buildroot}%{_datadir}/icons/locolor/48x48/apps 129# 130# Common files 131# 132%{__install} %{png} %{buildroot}%{_datadir}/pixmaps 133%{__install} -m 755 -s netrek %{buildroot}%{_bindir}/cow 134 135# Using tar to keep symlinks 136(cd spike/cow-test/sounds/; tar -cf - .)|(cd %{buildroot}%{_datadir}/sounds/%{name}; tar -xf -) 137(cd pixmaps; tar -cp \ 138 --exclude readme.txt \ 139 --exclude rotate.bas \ 140 --exclude setarace.bat \ 141 --exclude setrace.bat \ 142 -f - .) | (cd %{buildroot}%{_datadir}/pixmaps/%{name}; tar -xpf -) 143 144%files 145%defattr(-,root,root) 146%doc %{name}-docs-3.00pl12/* 147%doc pixmaps/readme.txt 148%{_bindir}/%{name} 149%attr(0755,root,root) %dir %{_datadir}/sounds/%{name} 150%attr(-,root,root) %{_datadir}/sounds/%{name}/* 151%attr(0755,root,root) %dir %{_datadir}/pixmaps/%{name} 152%attr(-,root,root) %{_datadir}/pixmaps/%{name}/* 153%attr(0644,root,root)%{_sysconfdir}/X11/applnk/Games/Tclug/%{name}.desktop 154%attr(0644,root,root)%{_datadir}/gnome/apps/Games/Tclug/%{name}.desktop 155%attr(0644,root,root)%{_datadir}/gnome/ximian/Programs/Games/Tclug/%{name}.desktop 156%attr(0644,root,root)%{_datadir}/applnk/Games/Arcade/%{name}.desktop 157%attr(0644,root,root)%{_datadir}/icons/hicolor/16x16/apps/%{name}.png 158%attr(0644,root,root)%{_datadir}/icons/hicolor/32x32/apps/%{name}.png 159%attr(0644,root,root)%{_datadir}/icons/hicolor/16x16/apps/%{name}.png 160%attr(0644,root,root)%{_datadir}/icons/hicolor/32x32/apps/%{name}.png 161%attr(0644,root,root)%{_datadir}/icons/hicolor/48x48/apps/%{name}.png 162%attr(0644,root,root)%{_datadir}/icons/locolor/16x16/apps/%{name}.png 163%attr(0644,root,root)%{_datadir}/icons/locolor/32x32/apps/%{name}.png 164%attr(0644,root,root)%{_datadir}/icons/locolor/48x48/apps/%{name}.png 165%attr(0644,root,root)%{_datadir}/pixmaps/%{name}.png 166 167%clean 168rm -rf %{buildroot} 169 170%changelog 171* Sun Jul 07 2002 Bob Tanner <tanner@real-time.com> 172 + cow-3.01p-realtime.1 173 - rolled new RPM from HEAD of cow tree 174 175* Fri Jun 21 2002 Bob Tanner <tanner@real-time.com> 176 + cow-3.00p3-SDL-realtime.8 177 - rolled new RPM from HEAD of cow tree 178 179* Sat Jun 16 2002 Bob Tanner <tanner@real-time.com> 180 + cow-3.00_20020616-realtime.7 181 - first release of cow with SDL_mixer sound support 182 183* Sat May 06 2002 Bob Tanner <tanner@real-time.com> 184 + cow-3.00_20020504-realtime.6 185 - small patch to fix compilation under redhat 7.3 an kde3 186 187* Sat May 06 2002 Bob Tanner <tanner@real-time.com> 188 + cow-3.00_20020504-realtime.5 189 - patch [Bug #553113] to fix sound problems under 2.4.x kernels/redhat 7.2 190 191* Sat May 06 2002 Bob Tanner <tanner@real-time.com> 192 + cow-3.00_20020504-realtime.4 193 - submitted keys to metaserver, recompiled binaries for those keys 194 - added ability to pass into the rpm build process the location of keydef file 195 - fixed permission on pixmap directory 196 - patch [Bug #552772] to fix configure not detecting xpm under redhat 7.2 197 198* Sat May 04 2002 Bob Tanner <tanner@real-time.com> 199 + cow-3.00_20020504-realtime.2 200 - first attempt at building cow for source. previous rpm was binary only 201 - changed hard coded commands to rpm macros 202 - setup compile of bgsndplay 203 204* Tue Jul 24 2001 James Cameron <quozl@us.netrek.org> 205 + cow-3.00pl12-1 206 - intitial spec file 207 - this date is just a guess using rcs2log and looking for the first entry 208