| 1 |
%define name crossfire |
| 2 |
%define version 0.96.0 |
| 3 |
%define release 1 |
| 4 |
|
| 5 |
Name: %{name} |
| 6 |
Version: %{version} |
| 7 |
Release: %{release} |
| 8 |
Summary: Role-playing graphical adventure game. |
| 9 |
Group: Amusements/Games/Crossfire |
| 10 |
Copyright: GPL |
| 11 |
URL: http://crossfire.real-time.com |
| 12 |
Packager: Real Time Enterprises, Inc. <bugs@real-time.com> |
| 13 |
# This is the canonical source: |
| 14 |
Source0: ftp://ftp.scruz.net/users/mwedel/public/%{name}-%{version}.tar.gz |
| 15 |
Source1: ftp://ftp.scruz.net/users/mwedel/public/%{name}-%{version}.maps.tar.gz |
| 16 |
Source2: ftp://ftp.scruz.net/users/mwedel/public/%{name}-%{version}.arch.tar.gz |
| 17 |
Source3: crossfire.init |
| 18 |
Source4: crossfire.logrotate |
| 19 |
Prefix: /usr/games/crossfire |
| 20 |
BuildRoot: /var/tmp/%{name}-%{version}-%{release}-root |
| 21 |
Requires: crossfire-common crossfire-maps |
| 22 |
|
| 23 |
%description |
| 24 |
Crossfire is a highly graphical role-playing adventure game with |
| 25 |
characteristics reminiscent of rogue, nethack, omega, and gauntlet. It has |
| 26 |
multiplayer capability and presently runs under X11. |
| 27 |
|
| 28 |
# |
| 29 |
# crossfire-common |
| 30 |
# |
| 31 |
%package common |
| 32 |
Group: Amusements/Games/Crossfire |
| 33 |
Summary: Common files for all part of crossfire. |
| 34 |
|
| 35 |
%description common |
| 36 |
This package contains the files that are shared between crossfire-devel, |
| 37 |
crossfire-maps and the crossfire server pages. |
| 38 |
|
| 39 |
# |
| 40 |
# crossfire-devel |
| 41 |
# |
| 42 |
%package devel |
| 43 |
Group: Amusements/Games/Crossfire |
| 44 |
Summary: Zone building tools for crossfire |
| 45 |
Requires: crossfire-common crossfire-maps |
| 46 |
|
| 47 |
%description devel |
| 48 |
Tools and files needed to build zone for crossfire. |
| 49 |
|
| 50 |
# |
| 51 |
# crossfire-maps |
| 52 |
# |
| 53 |
%package maps |
| 54 |
Group: Amusements/Games/Crossfire |
| 55 |
Summary: Crossfire maps |
| 56 |
Requires: crossfire-common |
| 57 |
|
| 58 |
%description maps |
| 59 |
Zone files necessary for crossfire. |
| 60 |
|
| 61 |
# |
| 62 |
# crossfire-doc |
| 63 |
# |
| 64 |
%package doc |
| 65 |
Group: Amusements/Games/Crossfire |
| 66 |
Summary: Crossfire documentation. |
| 67 |
|
| 68 |
%description doc |
| 69 |
Crossfire documentation. |
| 70 |
|
| 71 |
%prep |
| 72 |
%setup |
| 73 |
|
| 74 |
%build |
| 75 |
chmod 755 configure |
| 76 |
CFLAGS="$RPM_OPT_FLAGS" \ |
| 77 |
./configure --prefix=%{prefix} \ |
| 78 |
--datadir=%{prefix}/share \ |
| 79 |
--localstatedir=%{prefix}/var \ |
| 80 |
--bindir=%{prefix}/bin \ |
| 81 |
--mandir=/usr/man \ |
| 82 |
--enable-old-layout=no |
| 83 |
|
| 84 |
make CFLAGS="$RPM_OPT_FLAGS" |
| 85 |
|
| 86 |
%install |
| 87 |
rm -rf $RPM_BUILD_ROOT |
| 88 |
|
| 89 |
install -d $RPM_BUILD_ROOT/etc/rc.d/init.d |
| 90 |
install -d $RPM_BUILD_ROOT/etc/logrotate.d |
| 91 |
install -d $RPM_BUILD_ROOT/usr/games/crossfire/bin |
| 92 |
install -d $RPM_BUILD_ROOT/usr/games/crossfire/share |
| 93 |
install -d $RPM_BUILD_ROOT/usr/games/crossfire/var/logs |
| 94 |
|
| 95 |
make install DESTDIR="$RPM_BUILD_ROOT" \ |
| 96 |
prefix="$RPM_BUILD_ROOT/%{prefix}" \ |
| 97 |
datadir="$RPM_BUILD_ROOT/%{prefix}/share" \ |
| 98 |
localdir="$RPM_BUILD_ROOT/%{prefix}/var" \ |
| 99 |
bindir="$RPM_BUILD_ROOT/%{prefix}/bin" \ |
| 100 |
mandir="$RPM_BUILD_ROOT/usr/man" |
| 101 |
|
| 102 |
|
| 103 |
install -c -m 755 %{SOURCE3} $RPM_BUILD_ROOT/etc/rc.d/init.d/crossfire |
| 104 |
install -c -m 644 %{SOURCE4} $RPM_BUILD_ROOT/etc/logrotate.d/crossfire |
| 105 |
touch $RPM_BUILD_ROOT/usr/games/crossfire/var/logs/crossfire.log |
| 106 |
|
| 107 |
#for i in `ls ${RPM_BUILD_DIR}/%{name}-%{version}/lib/*.pl`; do |
| 108 |
# install -c -m 755 $i $RPM_BUILD_ROOT/%{prefix}/bin |
| 109 |
#done |
| 110 |
|
| 111 |
(cd $RPM_BUILD_ROOT/%{prefix}/share; \ |
| 112 |
gzip -dc %{SOURCE1} | tar -xf - ; \ |
| 113 |
mv %{name}-%{version}.maps maps ) |
| 114 |
|
| 115 |
(cd $RPM_BUILD_ROOT/%{prefix}/share; \ |
| 116 |
gzip -dc %{SOURCE2} | tar -xf - ; \ |
| 117 |
mv %{name}-%{version}.arch arch ) |
| 118 |
|
| 119 |
find $RPM_BUILD_ROOT -name \*.orig -print0 | xargs -0 rm -f |
| 120 |
find doc -name \*.orig -print0 | xargs -0 rm -f |
| 121 |
|
| 122 |
(cd $RPM_BUILD_ROOT/%{prefix}/bin; strip crossedit crossfire random_map) |
| 123 |
|
| 124 |
cd $RPM_BUILD_ROOT/%{prefix} |
| 125 |
for a in `ls share/maps/world/connect.pl`; do |
| 126 |
|
| 127 |
cat $a | sed 's=/var/tmp/crossfire-0.95.8-1-root/==' > tmp.$$ ; \ |
| 128 |
mv tmp.$$ $a |
| 129 |
done |
| 130 |
|
| 131 |
%clean |
| 132 |
rm -rf $RPM_BUILD_ROOT |
| 133 |
|
| 134 |
%post devel |
| 135 |
ln -s /usr/games/crossfire/bin/crossedit /usr/X11R6/bin/crossedit |
| 136 |
|
| 137 |
%preun devel |
| 138 |
rm -f /usr/X11R6/bin/crossedit |
| 139 |
|
| 140 |
%post |
| 141 |
/sbin/chkconfig --add crossfire |
| 142 |
|
| 143 |
%preun |
| 144 |
if [ "$1" = 0 ] ; then |
| 145 |
if [ -f /var/lock/subsys/crossfire ]; then |
| 146 |
/etc/rc.d/init.d/crossfire stop |
| 147 |
fi |
| 148 |
/sbin/chkconfig --del crossfire |
| 149 |
fi |
| 150 |
|
| 151 |
%files common |
| 152 |
%defattr(-,games,games,0755) |
| 153 |
/usr/games/crossfire/share/animations |
| 154 |
/usr/games/crossfire/share/archetypes |
| 155 |
/usr/games/crossfire/share/artifacts |
| 156 |
/usr/games/crossfire/share/bmaps |
| 157 |
/usr/games/crossfire/share/bmaps.paths |
| 158 |
/usr/games/crossfire/share/crossfire.* |
| 159 |
/usr/games/crossfire/share/def_help |
| 160 |
/usr/games/crossfire/share/faces |
| 161 |
/usr/games/crossfire/share/formulae |
| 162 |
/usr/games/crossfire/share/help |
| 163 |
/usr/games/crossfire/share/messages |
| 164 |
/usr/games/crossfire/share/races |
| 165 |
/usr/games/crossfire/share/settings |
| 166 |
/usr/games/crossfire/share/skill_params |
| 167 |
/usr/games/crossfire/share/spell_params |
| 168 |
/usr/games/crossfire/share/treasures |
| 169 |
|
| 170 |
%files devel |
| 171 |
%defattr(-,games,games,0755) |
| 172 |
/usr/games/crossfire/bin/crossedit |
| 173 |
/usr/games/crossfire/bin/collect.pl |
| 174 |
/usr/games/crossfire/bin/xpmtopix.pl |
| 175 |
%attr(0644,games,games)/usr/games/crossfire/bin/util.pl |
| 176 |
/usr/man/man6/crossedit.6* |
| 177 |
/usr/games/crossfire/share/arch |
| 178 |
|
| 179 |
%files maps |
| 180 |
%defattr(0644,games,games,0755) |
| 181 |
/usr/games/crossfire/share/maps |
| 182 |
|
| 183 |
%files doc |
| 184 |
%defattr(0644,root,root,0755) |
| 185 |
%doc doc |
| 186 |
|
| 187 |
%files |
| 188 |
%defattr(644,games,games,755) |
| 189 |
%attr(-,root,root)%doc CHANGES CREDITS DEVELOPERS DONE INSTALL License README TODO |
| 190 |
%attr(6755,games,games) /usr/games/crossfire/bin/crossfire |
| 191 |
/usr/games/crossfire/bin/add_throw |
| 192 |
/usr/games/crossfire/bin/crossloop |
| 193 |
/usr/games/crossfire/bin/flushlocks |
| 194 |
/usr/games/crossfire/bin/mktable |
| 195 |
/usr/games/crossfire/bin/random_map |
| 196 |
/usr/man/man6/crossfire.6* |
| 197 |
/usr/games/crossfire/var/logs/crossfire.log |
| 198 |
|
| 199 |
%dir /usr/games/crossfire/var/players |
| 200 |
%dir /usr/games/crossfire/var/unique-items |
| 201 |
%config /usr/games/crossfire/var/bookarch |
| 202 |
%config /usr/games/crossfire/var/highscore |
| 203 |
/usr/games/crossfire/var/temp.maps |
| 204 |
|
| 205 |
%config /usr/games/crossfire/share/ban_file |
| 206 |
%config /usr/games/crossfire/share/dm_file |
| 207 |
%config /usr/games/crossfire/share/forbid |
| 208 |
%config /usr/games/crossfire/share/motd |
| 209 |
|
| 210 |
%attr(-,root,root) /etc/rc.d/init.d/crossfire |
| 211 |
|
| 212 |
%changelog |
| 213 |
* Mon Feb 12 2001 Bob Tanner <tanner@real-time.com> |
| 214 |
- Split the one rpm into several. Crossfire the server, Crossfire-devel for crossedit |
| 215 |
and associate tools, Crossfire-maps for the maps and Crossfire-doc for the |
| 216 |
documentation. |
| 217 |
- Had to split stuff into another package Crossfire-common for the stuff shared |
| 218 |
between all the other packages. |
| 219 |
* Tue Mar 16 1999 Toshio Kuratomi <badger@prtr-13.ucsc.edu> [0.95.2-5] |
| 220 |
- Edited the patch files to get rid of redundancies and excesses. |
| 221 |
- Moved files around to conform to the File Hierarchy Standard 2.0 |
| 222 |
- Changed portions of the spec to use configure to set up the directory |
| 223 |
structure rather than having to construct it manually. |
| 224 |
- No longer package crossloop.pl as it is outdated by the newer crossloop |
| 225 |
shell script. |
| 226 |
- Moved the tmp directory to be in /var/lib/games/crossfire/temp-maps... |
| 227 |
This way the temp maps are all in the var directory for reuse. |
| 228 |
I don't think crossfire keeps any other temp files around. |
| 229 |
- Remove crossserv as it isn't necessary to the operation of crossfire as a |
| 230 |
server. (Instead set crossfire setuid/gruid games. |
| 231 |
- Edit the crossfire.init script to reflect the absence of crossserv. |
| 232 |
- Add maps to the package. Will not run without this (but maybe it should be |
| 233 |
in a subpackage.) |
| 234 |
|
| 235 |
* Sun Jan 31 1999 Kjetil Wiekhorst Jørgensen <jorgens+rpm@pvv.org> [0.95.2-1] |
| 236 |
|
| 237 |
- upgraded to version 0.95.2 |
| 238 |
|
| 239 |
* Fri Sep 4 1998 Kjetil Wiekhorst Jørgensen <jorgens+rpm@pvv.org> [0.95.1-1] |
| 240 |
|
| 241 |
- upgraded to version 0.95.1 |
| 242 |
- fixed some minor bugs in the distribution |
| 243 |
- dead is no longer final due to a bug in that code |
| 244 |
|
| 245 |
* Fri Sep 4 1998 Kjetil Wiekhorst Jørgensen <jorgens+rpm@pvv.org> [0.94.3-1] |
| 246 |
|
| 247 |
- upgraded to version 0.94.3 |
| 248 |
- moved some files around (static files to /usr/lib/games/crossfire and |
| 249 |
dynamic files to /var/lib/games/crossfire) |
| 250 |
|
| 251 |
* Mon Jun 01 1998 Kjetil Wiekhorst Jørgensen <jorgens+rpm@pvv.org> |
| 252 |
|
| 253 |
- upgraded to 0.94.2. |
| 254 |
- removed the client stuff, since crossfire has become client/server based. |
| 255 |
|
| 256 |
* Sat Apr 25 1998 Kjetil Wiekhorst Jørgensen <jorgens+rpm@pvv.org> |
| 257 |
|
| 258 |
- upgraded to 0.94.1. |
| 259 |
|
| 260 |
* Sat Feb 08 1998 Kjetil Wiekhorst Jørgensen <jorgens+rpm@zarhan.pvv.org> |
| 261 |
|
| 262 |
- added the missing space between the number and the item name. |
| 263 |
- fixed a bug which will allow the code to compile even if the ERIC_SERVER |
| 264 |
isn't defined. |
| 265 |
|
| 266 |
|
| 267 |
* Sat Feb 08 1998 Kjetil Wiekhorst Jørgensen <jorgens+rpm@zarhan.pvv.org> |
| 268 |
|
| 269 |
- version 0.94.0 |
| 270 |
- minor bugfix in server code. |
| 271 |
|
| 272 |
* Sat Feb 08 1998 Kjetil Wiekhorst Jørgensen <jorgens+rpm@zarhan.pvv.org> |
| 273 |
|
| 274 |
- new specfile for crossfire. |