]> git.pld-linux.org Git - packages/crossfire.git/blob - crossfire.spec
- do not use crossloop to start server (crossloop patch not needed anymore)
[packages/crossfire.git] / crossfire.spec
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
10 Source3:        %{name}.logrotate
11 Patch0:         %{name}-DESTDIR.patch
12 Patch1:         %{name}-directories.patch
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
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
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
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
54 %{__make} install DESTDIR="$RPM_BUILD_ROOT"
55 mv $RPM_BUILD_ROOT%{_datadir}/%{name}/settings $RPM_BUILD_ROOT/etc/%{name}
56 install %{SOURCE1} $RPM_BUILD_ROOT/etc/rc.d/init.d/%{name}
57 install %{SOURCE2} $RPM_BUILD_ROOT/etc/sysconfig/%{name}
58 install %{SOURCE3} $RPM_BUILD_ROOT/etc/logrotate.d/%{name}
59 touch $RPM_BUILD_ROOT/var/log/crossfire
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)
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}
88 %attr(750,root,games) %{_bindir}/crossfire
89 %attr(750,root,games) %{_bindir}/random_map
90 %dir %attr(750,root,games) %{_datadir}/crossfire
91 %{_datadir}/crossfire/*
92 %{_mandir}/man?/crossfire*
93 %dir %attr(750,root,games) %{_localstatedir}/crossfire
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/*
102 %attr(754,root,root) /etc/rc.d/init.d/crossfire
103 %attr(660,root,root) /etc/logrotate.d/crossfire
104 %attr(640,root,root) %config(noreplace) %verify(not size mtime md5) /etc/sysconfig/crossfire
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*
This page took 0.039645 seconds and 3 git commands to generate.