]>
Commit | Line | Data |
---|---|---|
e279ea73 | 1 | Summary: Multiplayer roguelike game server |
085236e3 | 2 | Summary(pl.UTF-8): Serwer gry roguelike dla wielu graczy |
a01f18c2 | 3 | Name: crossfire |
0c5e711f | 4 | Version: 1.75.0 |
b7fd360a | 5 | Release: 1 |
a21c60d7 | 6 | License: GPL v2+ |
a19f68da | 7 | Group: X11/Applications/Games |
a21c60d7 | 8 | Source0: https://downloads.sourceforge.net/crossfire/%{name}-%{version}.tar.gz |
0c5e711f | 9 | # Source0-md5: 7d2e39294056ad521f603dfc31c2cf7f |
a01f18c2 JK |
10 | Source1: %{name}.init |
11 | Source2: %{name}.sysconfig | |
87321fa5 | 12 | Source3: %{name}.logrotate |
0c5e711f | 13 | Patch0: python3.patch |
a21c60d7 JB |
14 | URL: https://crossfire.real-time.com/ |
15 | BuildRequires: autoconf >= 2.50 | |
fb32db14 | 16 | BuildRequires: automake |
294b83f5 | 17 | BuildRequires: check |
68b41324 | 18 | BuildRequires: cproto |
df4f5f42 | 19 | BuildRequires: libtool |
0c5e711f | 20 | BuildRequires: python3-devel |
bdf99590 | 21 | BuildRequires: rpmbuild(macros) >= 1.268 |
294b83f5 | 22 | BuildRequires: xorg-lib-libX11-devel |
23 | BuildRequires: xorg-lib-libXaw-devel | |
24 | BuildRequires: xorg-lib-libXmu-devel | |
a21c60d7 | 25 | BuildRequires: xorg-lib-libXt-devel |
d1f7a031 | 26 | Requires(post,preun): /sbin/chkconfig |
0c5e711f | 27 | %pyrequires_eq python3 |
ebccff01 | 28 | Requires: crossfire-maps |
bdf99590 | 29 | Requires: rc-scripts |
07f1a1ed | 30 | Conflicts: logrotate < 3.8.0 |
0c5e711f | 31 | Obsoletes: crossfire-editor < 1.75.0 |
18cb0b6e | 32 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) |
a01f18c2 | 33 | |
18cb0b6e | 34 | %define _localstatedir /var/lib |
a01f18c2 | 35 | |
99e41279 | 36 | %description |
a01f18c2 | 37 | This is a multiplayer graphical arcade and adventure game made for the |
dd3d7f1d | 38 | X-Window environment. There are also Windows and Java clients |
a01f18c2 JK |
39 | available. |
40 | ||
41 | It has certain flavours from other games, especially Gauntlet (TM) and | |
42 | Nethack/Moria. | |
43 | ||
44 | Any number of players can move around in their own window, finding and | |
45 | sing items and battle monsters. They can choose to cooperate or | |
46 | compete in the same "world". | |
47 | ||
68b41324 AF |
48 | %description -l pl.UTF-8 |
49 | To jest graficzna gra przygodowa dla środowiska X-Window. Są także | |
50 | dostępni klienci pod Windows i w Javie. | |
e279ea73 | 51 | |
87321fa5 | 52 | %package editor |
e279ea73 | 53 | Summary: Crossfire map editor |
085236e3 | 54 | Summary(pl.UTF-8): Edytor map Crossfire |
a19f68da | 55 | Group: X11/Applications/Games |
87321fa5 JK |
56 | |
57 | %description editor | |
58 | Crossfire map editor. | |
59 | ||
68b41324 | 60 | %description editor -l pl.UTF-8 |
8a824313 | 61 | Edytor map Crossfire. |
e279ea73 | 62 | |
4869ddf7 JK |
63 | %package doc |
64 | Summary: Crossfire game documentation | |
085236e3 | 65 | Summary(pl.UTF-8): Dokumentacja gry Crossfire |
0264e2e6 | 66 | Group: Documentation |
4869ddf7 JK |
67 | |
68 | %description doc | |
69 | Crossfire documentation for players. Includes handbook and spoiler. | |
70 | ||
68b41324 AF |
71 | %description doc -l pl.UTF-8 |
72 | Dokumentacja dla graczy Crossfire. Zawiera podręcznik oraz spoiler. | |
4869ddf7 | 73 | |
ea9f0991 | 74 | %package plugin-python |
8a824313 | 75 | Summary: Python plugin for Crossfire server |
085236e3 | 76 | Summary(pl.UTF-8): Wtyczka Pythona dla serwera Crossfire |
a19f68da | 77 | Group: X11/Applications/Games |
df4f5f42 | 78 | Requires: %{name} = %{version}-%{release} |
ea9f0991 JK |
79 | |
80 | %description plugin-python | |
8a824313 | 81 | Python plugin for Crossfire server. |
82 | ||
68b41324 | 83 | %description plugin-python -l pl.UTF-8 |
8a824313 | 84 | Wtyczka Pythona dla serwera Crossfire. |
ea9f0991 | 85 | |
68b41324 AF |
86 | %package plugin-anim |
87 | Summary: Animation plugin for Crossfire server | |
085236e3 | 88 | Summary(pl.UTF-8): Wtyczka animacji dla serwera Crossfire |
a19f68da | 89 | Group: X11/Applications/Games |
68b41324 AF |
90 | Requires: %{name} = %{version}-%{release} |
91 | ||
92 | %description plugin-anim | |
93 | Animation plugin for Crossfire server. | |
94 | ||
95 | %description plugin-anim -l pl.UTF-8 | |
96 | Wtyczka animacji dla serwera Crossfire. | |
97 | ||
a01f18c2 JK |
98 | %prep |
99 | %setup -q | |
0ab97031 | 100 | %patch0 -p1 |
0c5e711f JR |
101 | |
102 | %{__sed} -E -i -e '1s,#!\s*/usr/bin/env\s+python3(\s|$),#!%{__python3}\1,' \ | |
103 | utils/cfdb_convert | |
a01f18c2 JK |
104 | |
105 | %build | |
a21c60d7 | 106 | %configure \ |
0c5e711f JR |
107 | PYTHON=%{__python3} \ |
108 | PYTHON_LIBS="`python3-config --libs --embed`" \ | |
a21c60d7 JB |
109 | --disable-static |
110 | ||
0c5e711f | 111 | %{__make} V=1 |
a01f18c2 JK |
112 | |
113 | %install | |
114 | rm -rf $RPM_BUILD_ROOT | |
18cb0b6e | 115 | install -d $RPM_BUILD_ROOT{/var/log,/etc/{sysconfig,%{name},logrotate.d},/etc/rc.d/init.d} \ |
116 | $RPM_BUILD_ROOT%{_localstatedir}/%{name}/{tmp,maps} | |
117 | ||
e94b95ef PG |
118 | %{__make} install \ |
119 | DESTDIR=$RPM_BUILD_ROOT | |
120 | ||
a21c60d7 JB |
121 | %{__rm} $RPM_BUILD_ROOT%{_libdir}/crossfire/plugins/*.la |
122 | %{__rm} $RPM_BUILD_ROOT%{_bindir}/crossloop* | |
123 | %{__rm} $RPM_BUILD_ROOT%{_mandir}/man6/crossloop*.6* | |
124 | %{__rm} $RPM_BUILD_ROOT%{_bindir}/player_dl.pl | |
a01f18c2 | 125 | install %{SOURCE1} $RPM_BUILD_ROOT/etc/rc.d/init.d/%{name} |
a21c60d7 JB |
126 | cp -p %{SOURCE2} $RPM_BUILD_ROOT/etc/sysconfig/%{name} |
127 | cp -p %{SOURCE3} $RPM_BUILD_ROOT/etc/logrotate.d/%{name} | |
ea9f0991 | 128 | touch $RPM_BUILD_ROOT/var/log/crossfire |
99e41279 | 129 | |
a01f18c2 JK |
130 | %clean |
131 | rm -rf $RPM_BUILD_ROOT | |
132 | ||
133 | %post | |
8deaf1db | 134 | /sbin/chkconfig --add crossfire |
bdf99590 | 135 | %service crossfire restart "Crossfire server" |
a01f18c2 JK |
136 | |
137 | %preun | |
8deaf1db | 138 | if [ "$1" = "0" ]; then |
bdf99590 | 139 | %service crossfire stop |
8deaf1db | 140 | /sbin/chkconfig --del crossfire |
141 | fi | |
142 | ||
a01f18c2 JK |
143 | %files |
144 | %defattr(644,root,root,755) | |
0c5e711f JR |
145 | %doc AUTHORS README.rst ChangeLog |
146 | %attr(750,root,games) %{_bindir}/crossfire-server | |
147 | %attr(755,root,games) %{_bindir}/cfdb_convert | |
a01f18c2 JK |
148 | %dir %attr(750,root,games) %{_datadir}/crossfire |
149 | %{_datadir}/crossfire/* | |
0c5e711f | 150 | %{_mandir}/man6/crossfire-server.6* |
fb32db14 | 151 | %dir %attr(770,root,games) %{_localstatedir}/crossfire |
87321fa5 JK |
152 | %dir %attr(770,root,games) %{_localstatedir}/crossfire/players |
153 | %dir %attr(770,root,games) %{_localstatedir}/crossfire/unique-items | |
154 | %dir %attr(770,root,games) %{_localstatedir}/crossfire/tmp | |
35d8672c | 155 | %dir %attr(770,root,games) %{_localstatedir}/crossfire/maps |
0d315b34 ER |
156 | %attr(660,root,games) %config(noreplace) %verify(not md5 mtime size) %{_localstatedir}/crossfire/bookarch |
157 | %attr(660,root,games) %config(noreplace) %verify(not md5 mtime size) %{_localstatedir}/crossfire/highscore | |
158 | %attr(660,root,games) %config(noreplace) %verify(not md5 mtime size) %{_localstatedir}/crossfire/temp.maps | |
159 | %attr(660,root,games) %config(noreplace) %verify(not md5 mtime size) %{_localstatedir}/crossfire/clockdata | |
160 | %attr(660,root,games) %config(noreplace) %verify(not md5 mtime size) %{_localstatedir}/crossfire/banish_file | |
161 | %dir %{_sysconfdir}/crossfire | |
162 | %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/crossfire/* | |
a01f18c2 | 163 | %attr(754,root,root) /etc/rc.d/init.d/crossfire |
0d315b34 ER |
164 | %attr(640,root,root) %config(noreplace) %verify(not md5 mtime size) /etc/logrotate.d/crossfire |
165 | %attr(640,root,root) %config(noreplace) %verify(not md5 mtime size) /etc/sysconfig/crossfire | |
166 | %attr(660,root,games) %config(noreplace) %verify(not md5 mtime size) /var/log/crossfire | |
ea9f0991 JK |
167 | %dir %{_libdir}/crossfire |
168 | %dir %{_libdir}/crossfire/plugins | |
0c5e711f JR |
169 | %attr(755,root,root) %{_libdir}/crossfire/plugins/cfcitybell.so |
170 | %attr(755,root,root) %{_libdir}/crossfire/plugins/citylife.so | |
8d846867 JB |
171 | %if "%{_libexecdir}" != "%{_libdir}" |
172 | %dir %{_libexecdir}/crossfire | |
173 | %endif | |
8d846867 | 174 | %attr(755,root,root) %{_libexecdir}/crossfire/random_map |
99e41279 | 175 | |
4869ddf7 | 176 | %files doc |
35d8672c | 177 | %defattr(644,root,root,755) |
4869ddf7 | 178 | %doc doc/{handbook.ps,spoiler.ps} |
0c5e711f JR |
179 | %doc doc/{stats.txt,commands.txt,survival-guide.txt} |
180 | %doc doc/{skills.txt,runes-guide.txt} | |
ea9f0991 JK |
181 | |
182 | %files plugin-python | |
183 | %defattr(644,root,root,755) | |
a21c60d7 | 184 | %attr(755,root,root) %{_libdir}/crossfire/plugins/cfpython.so |
68b41324 AF |
185 | |
186 | %files plugin-anim | |
187 | %defattr(644,root,root,755) | |
a21c60d7 | 188 | %attr(755,root,root) %{_libdir}/crossfire/plugins/cfanim.so |