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