]> git.pld-linux.org Git - packages/crossfire.git/blob - crossfire.spec
- DESTDIR patch
[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 Patch0:         %{name}-DESTDIR.patch
11 Patch1:         %{name}-crossloop.patch
12 URL:            http://crossfire.real-time.com
13 BuildRequires:  XFree86-devel
14 BuildRoot:      %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
15
16 %define         _prefix /usr/X11R6
17 %define         _localstatedir /var/lib
18
19 %description 
20 This is a multiplayer graphical arcade and adventure game made for the
21 X-Windows environment. There are also Windows and Java clients
22 available.
23
24 It has certain flavours from other games, especially Gauntlet (TM) and
25 Nethack/Moria.
26
27 Any number of players can move around in their own window, finding and
28 sing items and battle monsters. They can choose to cooperate or
29 compete in the same "world".
30
31 %prep
32 %setup -q
33 %patch0 -p1
34 %patch1 -p1
35
36 %build
37 %configure
38 %{__make}
39
40 %install
41 rm -rf $RPM_BUILD_ROOT
42 install -d $RPM_BUILD_ROOT{/var/log/crossfire,/etc/sysconfig,/etc/rc.d/init.d}
43 %{__make} install DESTDIR="$RPM_BUILD_ROOT"
44 install %{SOURCE1} $RPM_BUILD_ROOT/etc/rc.d/init.d/%{name}
45 install %{SOURCE2} $RPM_BUILD_ROOT/etc/sysconfig/%{name}
46
47 %clean
48 rm -rf $RPM_BUILD_ROOT
49
50 %post
51 /sbin/chkconfig --add crossfire
52 if [ -r /var/lock/subsys/crossfire ]; then
53         /etc/rc.d/init.d/crossfire restart >&2
54 else
55         echo "Run \"/etc/rc.d/init.d/crossfire start\" to start Crossfire server."
56 fi
57
58 %preun
59 if [ "$1" = "0" ]; then
60         if [ -r /var/lock/subsys/crossfire ]; then
61                 /etc/rc.d/init.d/crossfire stop >&2
62         fi
63         /sbin/chkconfig --del crossfire
64 fi
65
66
67
68
69 %files
70 %defattr(644,root,root,755)
71 %doc CHANGES CREDITS DEVELOPERS DONE README TODO
72 %attr(750,root,games) %{_bindir}/crossfire
73 %attr(750,root,games) %{_bindir}/random_map
74 %attr(750,root,games) %{_bindir}/crossloop
75 %attr(755,root,root) %{_bindir}/crossedit
76 %dir %attr(750,root,games) %{_datadir}/crossfire
77 %{_datadir}/crossfire/*
78 %{_mandir}/man?/*
79 %dir %attr(750,root,games) %{_localstatedir}/crossfire
80 %attr(770,root,games) %{_localstatedir}/crossfire/players
81 %attr(770,root,games) %{_localstatedir}/crossfire/unique-items
82 %attr(660,root,games) %{_localstatedir}/crossfire/bookarch
83 %attr(660,root,games) %{_localstatedir}/crossfire/highscore
84 %attr(660,root,games) %{_localstatedir}/crossfire/temp.maps
85 %attr(770,root,games) /var/log/crossfire
86
87 %attr(754,root,root) /etc/rc.d/init.d/crossfire
88 %attr(640,root,root) %config(noreplace) %verify(not size mtime md5) /etc/sysconfig/crossfire
This page took 0.037567 seconds and 3 git commands to generate.