]>
Commit | Line | Data |
---|---|---|
a01f18c2 JK |
1 | Summary: Multiplayer roguelike game server. |
2 | Name: crossfire | |
3 | Version: 0.95.8 | |
4 | Release: 1 | |
5 | License: GPL | |
6 | Group: Applications/Games | |
7 | Source0: ftp://ftp.scruz.net/users/mwedel/public/%{name}-%{version}.tar.bz2 | |
8 | Source1: %{name}.init | |
9 | Source2: %{name}.sysconfig | |
87321fa5 | 10 | Source3: %{name}.logrotate |
a01f18c2 | 11 | Patch0: %{name}-DESTDIR.patch |
87321fa5 | 12 | Patch1: %{name}-directories.patch |
a01f18c2 JK |
13 | URL: http://crossfire.real-time.com |
14 | BuildRequires: XFree86-devel | |
15 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) | |
16 | ||
17 | %define _prefix /usr/X11R6 | |
18 | %define _localstatedir /var/lib | |
19 | ||
20 | %description | |
21 | This is a multiplayer graphical arcade and adventure game made for the | |
22 | X-Windows environment. There are also Windows and Java clients | |
23 | available. | |
24 | ||
25 | It has certain flavours from other games, especially Gauntlet (TM) and | |
26 | Nethack/Moria. | |
27 | ||
28 | Any number of players can move around in their own window, finding and | |
29 | sing items and battle monsters. They can choose to cooperate or | |
30 | compete in the same "world". | |
31 | ||
87321fa5 JK |
32 | %package editor |
33 | Summary: Crossfire map editor. | |
34 | Group: Applications/Games | |
35 | Group(de): Applikationen/Spiele | |
36 | Group(pl): Aplikacje/Gry | |
37 | ||
38 | %description editor | |
39 | Crossfire map editor. | |
40 | ||
a01f18c2 JK |
41 | %prep |
42 | %setup -q | |
43 | %patch0 -p1 | |
44 | %patch1 -p1 | |
45 | ||
46 | %build | |
47 | %configure | |
48 | %{__make} | |
49 | ||
50 | %install | |
51 | rm -rf $RPM_BUILD_ROOT | |
87321fa5 JK |
52 | install -d $RPM_BUILD_ROOT{/var/log,/etc/{sysconfig,%{name},logrotate.d},/etc/rc.d/init.d} |
53 | install -d $RPM_BUILD_ROOT%{_localstatedir}/%{name}/tmp | |
a01f18c2 | 54 | %{__make} install DESTDIR="$RPM_BUILD_ROOT" |
87321fa5 | 55 | mv $RPM_BUILD_ROOT%{_datadir}/%{name}/settings $RPM_BUILD_ROOT/etc/%{name} |
a01f18c2 JK |
56 | install %{SOURCE1} $RPM_BUILD_ROOT/etc/rc.d/init.d/%{name} |
57 | install %{SOURCE2} $RPM_BUILD_ROOT/etc/sysconfig/%{name} | |
87321fa5 JK |
58 | install %{SOURCE3} $RPM_BUILD_ROOT/etc/logrotate.d/%{name} |
59 | touch $RPM_BUILD_ROOT/var/log/crossfire | |
a01f18c2 JK |
60 | |
61 | %clean | |
62 | rm -rf $RPM_BUILD_ROOT | |
63 | ||
64 | %post | |
65 | /sbin/chkconfig --add crossfire | |
66 | if [ -r /var/lock/subsys/crossfire ]; then | |
67 | /etc/rc.d/init.d/crossfire restart >&2 | |
68 | else | |
69 | echo "Run \"/etc/rc.d/init.d/crossfire start\" to start Crossfire server." | |
70 | fi | |
71 | ||
72 | %preun | |
73 | if [ "$1" = "0" ]; then | |
74 | if [ -r /var/lock/subsys/crossfire ]; then | |
75 | /etc/rc.d/init.d/crossfire stop >&2 | |
76 | fi | |
77 | /sbin/chkconfig --del crossfire | |
78 | fi | |
79 | ||
80 | ||
81 | ||
82 | ||
83 | %files | |
84 | %defattr(644,root,root,755) | |
87321fa5 JK |
85 | %doc CHANGES CREDITS DEVELOPERS DONE README TODO |
86 | %doc doc/{PlayerStats,RunTimeCommands,SurvivalGuide,alchemy.doc,experience,multigod} | |
87 | %doc doc/{skills.doc,spell-paths,spellcasters_guide_to_runes,spells} | |
a01f18c2 JK |
88 | %attr(750,root,games) %{_bindir}/crossfire |
89 | %attr(750,root,games) %{_bindir}/random_map | |
a01f18c2 JK |
90 | %dir %attr(750,root,games) %{_datadir}/crossfire |
91 | %{_datadir}/crossfire/* | |
87321fa5 | 92 | %{_mandir}/man?/crossfire* |
a01f18c2 | 93 | %dir %attr(750,root,games) %{_localstatedir}/crossfire |
87321fa5 JK |
94 | %dir %attr(770,root,games) %{_localstatedir}/crossfire/players |
95 | %dir %attr(770,root,games) %{_localstatedir}/crossfire/unique-items | |
96 | %dir %attr(770,root,games) %{_localstatedir}/crossfire/tmp | |
97 | %attr(660,root,games) %config(noreplace) %verify(not size mtime md5) %{_localstatedir}/crossfire/bookarch | |
98 | %attr(660,root,games) %config(noreplace) %verify(not size mtime md5) %{_localstatedir}/crossfire/highscore | |
99 | %attr(660,root,games) %config(noreplace) %verify(not size mtime md5) %{_localstatedir}/crossfire/temp.maps | |
100 | %dir /etc/crossfire | |
101 | %config(noreplace) %verify(not size mtime md5) /etc/crossfire/* | |
a01f18c2 | 102 | %attr(754,root,root) /etc/rc.d/init.d/crossfire |
87321fa5 | 103 | %attr(660,root,root) /etc/logrotate.d/crossfire |
a01f18c2 | 104 | %attr(640,root,root) %config(noreplace) %verify(not size mtime md5) /etc/sysconfig/crossfire |
87321fa5 JK |
105 | %attr(660,root,games) %config(noreplace) %verify(not size mtime md5) /var/log/crossfire |
106 | ||
107 | %files editor | |
108 | %defattr(644,root,root,755) | |
109 | %doc doc/{Crossedit.doc,RandomMaps.doc,Styles.doc,mapguide,mapmakers_guide_to_runes,teleporter.doc} | |
110 | %attr(755,root,root) %{_bindir}/crossedit | |
111 | %{_mandir}/man?/crossedit* |