]> git.pld-linux.org Git - packages/crossfire.git/blob - crossfire.spec
- Prereq: /sbin/chkconfig
[packages/crossfire.git] / crossfire.spec
1 Summary:        Multiplayer roguelike game server
2 Summary(pl):    Serwer gry roguelike dla wielu graczy
3 Name:           crossfire
4 Version:        1.0.0
5 Release:        1
6 License:        GPL
7 Group:          Applications/Games
8 Source0:        ftp://ftp.scruz.net/users/mwedel/public/%{name}-%{version}.tar.bz2
9 Source1:        %{name}.init
10 Source2:        %{name}.sysconfig
11 Source3:        %{name}.logrotate
12 Patch0:         %{name}-DESTDIR.patch
13 Patch1:         %{name}-directories.patch
14 Patch2:         %{name}-tmp_maps.patch
15 URL:            http://crossfire.real-time.com
16 BuildRequires:  XFree86-devel
17 BuildRoot:      %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
18 Prereq:         /sbin/chkconfig
19
20 %define         _prefix /usr/X11R6
21 %define         _localstatedir /var/lib
22
23 %description 
24 This is a multiplayer graphical arcade and adventure game made for the
25 X-Window environment. There are also Windows and Java clients
26 available.
27
28 It has certain flavours from other games, especially Gauntlet (TM) and
29 Nethack/Moria.
30
31 Any number of players can move around in their own window, finding and
32 sing items and battle monsters. They can choose to cooperate or
33 compete in the same "world".
34
35 %description -l pl
36 To jest graficzna gra przygodowa dla ¶rodowiska X-Window. S± tak¿e
37 dostêpni klienci pod Windows i w Javie.
38
39 %package editor
40 Summary:        Crossfire map editor
41 Summary(pl):    Edytor map crossfire
42 Group:          Applications/Games
43 Group(de):      Applikationen/Spiele
44 Group(pl):      Aplikacje/Gry
45
46 %description editor
47 Crossfire map editor.
48
49 %description editor -l pl
50 Edytor map crossfire.
51
52 %prep
53 %setup -q
54 %patch0 -p1
55 %patch1 -p1
56 %patch2 -p1
57
58 %build
59 %configure
60 %{__make}
61
62 %install
63 rm -rf $RPM_BUILD_ROOT
64 install -d $RPM_BUILD_ROOT{/var/log,/etc/{sysconfig,%{name},logrotate.d},/etc/rc.d/init.d}
65 install -d $RPM_BUILD_ROOT%{_localstatedir}/%{name}/tmp
66 %{__make} install DESTDIR="$RPM_BUILD_ROOT"
67 mv -f $RPM_BUILD_ROOT%{_datadir}/%{name}/{ban_file,settings,dm_file,motd,forbid} \
68         $RPM_BUILD_ROOT/etc/%{name}
69 install %{SOURCE1} $RPM_BUILD_ROOT/etc/rc.d/init.d/%{name}
70 install %{SOURCE2} $RPM_BUILD_ROOT/etc/sysconfig/%{name}
71 install %{SOURCE3} $RPM_BUILD_ROOT/etc/logrotate.d/%{name}
72 touch $RPM_BUILD_ROOT/var/log/crossfire
73
74 %clean
75 rm -rf $RPM_BUILD_ROOT
76
77 %post
78 /sbin/chkconfig --add crossfire
79 if [ -r /var/lock/subsys/crossfire ]; then
80         /etc/rc.d/init.d/crossfire restart >&2
81 else
82         echo "Run \"/etc/rc.d/init.d/crossfire start\" to start Crossfire server."
83 fi
84
85 %preun
86 if [ "$1" = "0" ]; then
87         if [ -r /var/lock/subsys/crossfire ]; then
88                 /etc/rc.d/init.d/crossfire stop >&2
89         fi
90         /sbin/chkconfig --del crossfire
91 fi
92
93 %files
94 %defattr(644,root,root,755)
95 %doc CHANGES CREDITS DEVELOPERS DONE README TODO 
96 %doc doc/{PlayerStats,RunTimeCommands,SurvivalGuide,alchemy.doc,experience,multigod}
97 %doc doc/{skills.doc,spell-paths,spellcasters_guide_to_runes,spells}
98 %attr(750,root,games) %{_bindir}/crossfire
99 %attr(750,root,games) %{_bindir}/random_map
100 %dir %attr(750,root,games) %{_datadir}/crossfire
101 %{_datadir}/crossfire/*
102 %{_mandir}/man?/crossfire*
103 %dir %attr(750,root,games) %{_localstatedir}/crossfire
104 %dir %attr(770,root,games) %{_localstatedir}/crossfire/players
105 %dir %attr(770,root,games) %{_localstatedir}/crossfire/unique-items
106 %dir %attr(770,root,games) %{_localstatedir}/crossfire/tmp
107 %attr(660,root,games) %config(noreplace) %verify(not size mtime md5) %{_localstatedir}/crossfire/bookarch
108 %attr(660,root,games) %config(noreplace) %verify(not size mtime md5) %{_localstatedir}/crossfire/highscore
109 %attr(660,root,games) %config(noreplace) %verify(not size mtime md5) %{_localstatedir}/crossfire/temp.maps
110 %dir /etc/crossfire
111 %config(noreplace) %verify(not size mtime md5) /etc/crossfire/*
112 %attr(754,root,root) /etc/rc.d/init.d/crossfire
113 %attr(660,root,root) /etc/logrotate.d/crossfire
114 %attr(640,root,root) %config(noreplace) %verify(not size mtime md5) /etc/sysconfig/crossfire
115 %attr(660,root,games) %config(noreplace) %verify(not size mtime md5) /var/log/crossfire
116
117 %files editor
118 %defattr(644,root,root,755)
119 %doc doc/{Crossedit.doc,RandomMaps.doc,Styles.doc,mapguide,mapmakers_guide_to_runes,teleporter.doc}
120 %attr(755,root,root) %{_bindir}/crossedit
121 %{_mandir}/man?/crossedit*
This page took 0.044433 seconds and 4 git commands to generate.