]> git.pld-linux.org Git - packages/crossfire.git/blame - crossfire.spec
- use "crossfire -detach" instead of crossloop
[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
87321fa5 10Source3: %{name}.logrotate
a01f18c2 11Patch0: %{name}-DESTDIR.patch
87321fa5 12Patch1: %{name}-directories.patch
a01f18c2
JK
13URL: http://crossfire.real-time.com
14BuildRequires: XFree86-devel
15BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
16
17%define _prefix /usr/X11R6
18%define _localstatedir /var/lib
19
20%description
21This is a multiplayer graphical arcade and adventure game made for the
22X-Windows environment. There are also Windows and Java clients
23available.
24
25It has certain flavours from other games, especially Gauntlet (TM) and
26Nethack/Moria.
27
28Any number of players can move around in their own window, finding and
29sing items and battle monsters. They can choose to cooperate or
30compete in the same "world".
31
87321fa5
JK
32%package editor
33Summary: Crossfire map editor.
34Group: Applications/Games
35Group(de): Applikationen/Spiele
36Group(pl): Aplikacje/Gry
37
38%description editor
39Crossfire 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
51rm -rf $RPM_BUILD_ROOT
87321fa5
JK
52install -d $RPM_BUILD_ROOT{/var/log,/etc/{sysconfig,%{name},logrotate.d},/etc/rc.d/init.d}
53install -d $RPM_BUILD_ROOT%{_localstatedir}/%{name}/tmp
a01f18c2 54%{__make} install DESTDIR="$RPM_BUILD_ROOT"
87321fa5 55mv $RPM_BUILD_ROOT%{_datadir}/%{name}/settings $RPM_BUILD_ROOT/etc/%{name}
a01f18c2
JK
56install %{SOURCE1} $RPM_BUILD_ROOT/etc/rc.d/init.d/%{name}
57install %{SOURCE2} $RPM_BUILD_ROOT/etc/sysconfig/%{name}
87321fa5
JK
58install %{SOURCE3} $RPM_BUILD_ROOT/etc/logrotate.d/%{name}
59touch $RPM_BUILD_ROOT/var/log/crossfire
a01f18c2
JK
60
61%clean
62rm -rf $RPM_BUILD_ROOT
63
64%post
65/sbin/chkconfig --add crossfire
66if [ -r /var/lock/subsys/crossfire ]; then
67 /etc/rc.d/init.d/crossfire restart >&2
68else
69 echo "Run \"/etc/rc.d/init.d/crossfire start\" to start Crossfire server."
70fi
71
72%preun
73if [ "$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
78fi
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*
This page took 0.112506 seconds and 4 git commands to generate.