]> git.pld-linux.org Git - packages/crossfire.git/blame - crossfire.spec
- DESTDIR patch
[packages/crossfire.git] / crossfire.spec
CommitLineData
a01f18c2
JK
1Summary: Multiplayer roguelike game server.
2Name: crossfire
3Version: 0.95.8
4Release: 1
5License: GPL
6Group: Applications/Games
7Source0: ftp://ftp.scruz.net/users/mwedel/public/%{name}-%{version}.tar.bz2
8Source1: %{name}.init
9Source2: %{name}.sysconfig
10Patch0: %{name}-DESTDIR.patch
11Patch1: %{name}-crossloop.patch
12URL: http://crossfire.real-time.com
13BuildRequires: XFree86-devel
14BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
15
16%define _prefix /usr/X11R6
17%define _localstatedir /var/lib
18
19%description
20This is a multiplayer graphical arcade and adventure game made for the
21X-Windows environment. There are also Windows and Java clients
22available.
23
24It has certain flavours from other games, especially Gauntlet (TM) and
25Nethack/Moria.
26
27Any number of players can move around in their own window, finding and
28sing items and battle monsters. They can choose to cooperate or
29compete 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
41rm -rf $RPM_BUILD_ROOT
42install -d $RPM_BUILD_ROOT{/var/log/crossfire,/etc/sysconfig,/etc/rc.d/init.d}
43%{__make} install DESTDIR="$RPM_BUILD_ROOT"
44install %{SOURCE1} $RPM_BUILD_ROOT/etc/rc.d/init.d/%{name}
45install %{SOURCE2} $RPM_BUILD_ROOT/etc/sysconfig/%{name}
46
47%clean
48rm -rf $RPM_BUILD_ROOT
49
50%post
51/sbin/chkconfig --add crossfire
52if [ -r /var/lock/subsys/crossfire ]; then
53 /etc/rc.d/init.d/crossfire restart >&2
54else
55 echo "Run \"/etc/rc.d/init.d/crossfire start\" to start Crossfire server."
56fi
57
58%preun
59if [ "$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
64fi
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.111401 seconds and 4 git commands to generate.