]> git.pld-linux.org Git - packages/crossfire.git/blame - crossfire.spec
- use macros in %{pre,post}{,un}
[packages/crossfire.git] / crossfire.spec
CommitLineData
a01f18c2
JK
1Summary: Multiplayer roguelike game server.
2Name: crossfire
2b165f74 3Version: 1.0.0
a01f18c2
JK
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
c5e04b97 13Patch2: %{name}-tmp_maps.patch
a01f18c2
JK
14URL: http://crossfire.real-time.com
15BuildRequires: XFree86-devel
16BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
17
18%define _prefix /usr/X11R6
19%define _localstatedir /var/lib
20
21%description
22This is a multiplayer graphical arcade and adventure game made for the
23X-Windows environment. There are also Windows and Java clients
24available.
25
26It has certain flavours from other games, especially Gauntlet (TM) and
27Nethack/Moria.
28
29Any number of players can move around in their own window, finding and
30sing items and battle monsters. They can choose to cooperate or
31compete in the same "world".
32
87321fa5
JK
33%package editor
34Summary: Crossfire map editor.
35Group: Applications/Games
36Group(de): Applikationen/Spiele
37Group(pl): Aplikacje/Gry
38
39%description editor
40Crossfire map editor.
41
a01f18c2
JK
42%prep
43%setup -q
44%patch0 -p1
45%patch1 -p1
c5e04b97 46%patch2 -p1
a01f18c2
JK
47
48%build
49%configure
50%{__make}
51
52%install
53rm -rf $RPM_BUILD_ROOT
87321fa5
JK
54install -d $RPM_BUILD_ROOT{/var/log,/etc/{sysconfig,%{name},logrotate.d},/etc/rc.d/init.d}
55install -d $RPM_BUILD_ROOT%{_localstatedir}/%{name}/tmp
a01f18c2 56%{__make} install DESTDIR="$RPM_BUILD_ROOT"
c5e04b97
JK
57mv $RPM_BUILD_ROOT%{_datadir}/%{name}/{ban_file,settings,dm_file,motd,forbid} \
58 $RPM_BUILD_ROOT/etc/%{name}
a01f18c2
JK
59install %{SOURCE1} $RPM_BUILD_ROOT/etc/rc.d/init.d/%{name}
60install %{SOURCE2} $RPM_BUILD_ROOT/etc/sysconfig/%{name}
87321fa5
JK
61install %{SOURCE3} $RPM_BUILD_ROOT/etc/logrotate.d/%{name}
62touch $RPM_BUILD_ROOT/var/log/crossfire
a01f18c2
JK
63
64%clean
65rm -rf $RPM_BUILD_ROOT
66
67%post
e7a1987f 68DESC="Crossfire server"; %chkconfig_add
a01f18c2
JK
69
70%preun
e7a1987f 71%chkconfig_del
a01f18c2
JK
72
73%files
74%defattr(644,root,root,755)
87321fa5
JK
75%doc CHANGES CREDITS DEVELOPERS DONE README TODO
76%doc doc/{PlayerStats,RunTimeCommands,SurvivalGuide,alchemy.doc,experience,multigod}
77%doc doc/{skills.doc,spell-paths,spellcasters_guide_to_runes,spells}
a01f18c2
JK
78%attr(750,root,games) %{_bindir}/crossfire
79%attr(750,root,games) %{_bindir}/random_map
a01f18c2
JK
80%dir %attr(750,root,games) %{_datadir}/crossfire
81%{_datadir}/crossfire/*
87321fa5 82%{_mandir}/man?/crossfire*
a01f18c2 83%dir %attr(750,root,games) %{_localstatedir}/crossfire
87321fa5
JK
84%dir %attr(770,root,games) %{_localstatedir}/crossfire/players
85%dir %attr(770,root,games) %{_localstatedir}/crossfire/unique-items
86%dir %attr(770,root,games) %{_localstatedir}/crossfire/tmp
87%attr(660,root,games) %config(noreplace) %verify(not size mtime md5) %{_localstatedir}/crossfire/bookarch
88%attr(660,root,games) %config(noreplace) %verify(not size mtime md5) %{_localstatedir}/crossfire/highscore
89%attr(660,root,games) %config(noreplace) %verify(not size mtime md5) %{_localstatedir}/crossfire/temp.maps
90%dir /etc/crossfire
91%config(noreplace) %verify(not size mtime md5) /etc/crossfire/*
a01f18c2 92%attr(754,root,root) /etc/rc.d/init.d/crossfire
87321fa5 93%attr(660,root,root) /etc/logrotate.d/crossfire
a01f18c2 94%attr(640,root,root) %config(noreplace) %verify(not size mtime md5) /etc/sysconfig/crossfire
87321fa5
JK
95%attr(660,root,games) %config(noreplace) %verify(not size mtime md5) /var/log/crossfire
96
97%files editor
98%defattr(644,root,root,755)
99%doc doc/{Crossedit.doc,RandomMaps.doc,Styles.doc,mapguide,mapmakers_guide_to_runes,teleporter.doc}
100%attr(755,root,root) %{_bindir}/crossedit
101%{_mandir}/man?/crossedit*
This page took 0.082405 seconds and 4 git commands to generate.