fix detecting shared libpython
[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
44 %description editor
45 Crossfire map editor.
46
47 %description editor -l pl
48 Edytor map crossfire.
49
50 %prep
51 %setup -q
52 %patch0 -p1
53 %patch1 -p1
54 %patch2 -p1
55
56 %build
57 %configure
58 %{__make}
59
60 %install
61 rm -rf $RPM_BUILD_ROOT
62 install -d $RPM_BUILD_ROOT{/var/log,/etc/{sysconfig,%{name},logrotate.d},/etc/rc.d/init.d}
63 install -d $RPM_BUILD_ROOT%{_localstatedir}/%{name}/tmp
64 %{__make} install DESTDIR="$RPM_BUILD_ROOT"
65 mv -f $RPM_BUILD_ROOT%{_datadir}/%{name}/{ban_file,settings,dm_file,motd,forbid} \
66         $RPM_BUILD_ROOT/etc/%{name}
67 install %{SOURCE1} $RPM_BUILD_ROOT/etc/rc.d/init.d/%{name}
68 install %{SOURCE2} $RPM_BUILD_ROOT/etc/sysconfig/%{name}
69 install %{SOURCE3} $RPM_BUILD_ROOT/etc/logrotate.d/%{name}
70 touch $RPM_BUILD_ROOT/var/log/crossfire
71
72 %clean
73 rm -rf $RPM_BUILD_ROOT
74
75 %post
76 /sbin/chkconfig --add crossfire
77 if [ -r /var/lock/subsys/crossfire ]; then
78         /etc/rc.d/init.d/crossfire restart >&2
79 else
80         echo "Run \"/etc/rc.d/init.d/crossfire start\" to start Crossfire server."
81 fi
82
83 %preun
84 if [ "$1" = "0" ]; then
85         if [ -r /var/lock/subsys/crossfire ]; then
86                 /etc/rc.d/init.d/crossfire stop >&2
87         fi
88         /sbin/chkconfig --del crossfire
89 fi
90
91 %files
92 %defattr(644,root,root,755)
93 %doc CHANGES CREDITS DEVELOPERS DONE README TODO 
94 %doc doc/{PlayerStats,RunTimeCommands,SurvivalGuide,alchemy.doc,experience,multigod}
95 %doc doc/{skills.doc,spell-paths,spellcasters_guide_to_runes,spells}
96 %attr(750,root,games) %{_bindir}/crossfire
97 %attr(750,root,games) %{_bindir}/random_map
98 %dir %attr(750,root,games) %{_datadir}/crossfire
99 %{_datadir}/crossfire/*
100 %{_mandir}/man?/crossfire*
101 %dir %attr(750,root,games) %{_localstatedir}/crossfire
102 %dir %attr(770,root,games) %{_localstatedir}/crossfire/players
103 %dir %attr(770,root,games) %{_localstatedir}/crossfire/unique-items
104 %dir %attr(770,root,games) %{_localstatedir}/crossfire/tmp
105 %attr(660,root,games) %config(noreplace) %verify(not size mtime md5) %{_localstatedir}/crossfire/bookarch
106 %attr(660,root,games) %config(noreplace) %verify(not size mtime md5) %{_localstatedir}/crossfire/highscore
107 %attr(660,root,games) %config(noreplace) %verify(not size mtime md5) %{_localstatedir}/crossfire/temp.maps
108 %dir /etc/crossfire
109 %config(noreplace) %verify(not size mtime md5) /etc/crossfire/*
110 %attr(754,root,root) /etc/rc.d/init.d/crossfire
111 %attr(660,root,root) /etc/logrotate.d/crossfire
112 %attr(640,root,root) %config(noreplace) %verify(not size mtime md5) /etc/sysconfig/crossfire
113 %attr(660,root,games) %config(noreplace) %verify(not size mtime md5) /var/log/crossfire
114
115 %files editor
116 %defattr(644,root,root,755)
117 %doc doc/{Crossedit.doc,RandomMaps.doc,Styles.doc,mapguide,mapmakers_guide_to_runes,teleporter.doc}
118 %attr(755,root,root) %{_bindir}/crossedit
119 %{_mandir}/man?/crossedit*
This page took 0.046276 seconds and 3 git commands to generate.