]> git.pld-linux.org Git - packages/crossfire.git/blame - crossfire.spec
- up to 1.75.0
[packages/crossfire.git] / crossfire.spec
CommitLineData
e279ea73 1Summary: Multiplayer roguelike game server
085236e3 2Summary(pl.UTF-8): Serwer gry roguelike dla wielu graczy
a01f18c2 3Name: crossfire
0c5e711f 4Version: 1.75.0
b7fd360a 5Release: 1
a21c60d7 6License: GPL v2+
a19f68da 7Group: X11/Applications/Games
a21c60d7 8Source0: https://downloads.sourceforge.net/crossfire/%{name}-%{version}.tar.gz
0c5e711f 9# Source0-md5: 7d2e39294056ad521f603dfc31c2cf7f
a01f18c2
JK
10Source1: %{name}.init
11Source2: %{name}.sysconfig
87321fa5 12Source3: %{name}.logrotate
0c5e711f 13Patch0: python3.patch
a21c60d7
JB
14URL: https://crossfire.real-time.com/
15BuildRequires: autoconf >= 2.50
fb32db14 16BuildRequires: automake
294b83f5 17BuildRequires: check
68b41324 18BuildRequires: cproto
df4f5f42 19BuildRequires: libtool
0c5e711f 20BuildRequires: python3-devel
bdf99590 21BuildRequires: rpmbuild(macros) >= 1.268
294b83f5 22BuildRequires: xorg-lib-libX11-devel
23BuildRequires: xorg-lib-libXaw-devel
24BuildRequires: xorg-lib-libXmu-devel
a21c60d7 25BuildRequires: xorg-lib-libXt-devel
d1f7a031 26Requires(post,preun): /sbin/chkconfig
0c5e711f 27%pyrequires_eq python3
ebccff01 28Requires: crossfire-maps
bdf99590 29Requires: rc-scripts
07f1a1ed 30Conflicts: logrotate < 3.8.0
0c5e711f 31Obsoletes: crossfire-editor < 1.75.0
18cb0b6e 32BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
a01f18c2 33
18cb0b6e 34%define _localstatedir /var/lib
a01f18c2 35
99e41279 36%description
a01f18c2 37This is a multiplayer graphical arcade and adventure game made for the
dd3d7f1d 38X-Window environment. There are also Windows and Java clients
a01f18c2
JK
39available.
40
41It has certain flavours from other games, especially Gauntlet (TM) and
42Nethack/Moria.
43
44Any number of players can move around in their own window, finding and
45sing items and battle monsters. They can choose to cooperate or
46compete in the same "world".
47
68b41324
AF
48%description -l pl.UTF-8
49To jest graficzna gra przygodowa dla środowiska X-Window. Są także
50dostępni klienci pod Windows i w Javie.
e279ea73 51
87321fa5 52%package editor
e279ea73 53Summary: Crossfire map editor
085236e3 54Summary(pl.UTF-8): Edytor map Crossfire
a19f68da 55Group: X11/Applications/Games
87321fa5
JK
56
57%description editor
58Crossfire map editor.
59
68b41324 60%description editor -l pl.UTF-8
8a824313 61Edytor map Crossfire.
e279ea73 62
4869ddf7
JK
63%package doc
64Summary: Crossfire game documentation
085236e3 65Summary(pl.UTF-8): Dokumentacja gry Crossfire
0264e2e6 66Group: Documentation
4869ddf7
JK
67
68%description doc
69Crossfire documentation for players. Includes handbook and spoiler.
70
68b41324
AF
71%description doc -l pl.UTF-8
72Dokumentacja dla graczy Crossfire. Zawiera podręcznik oraz spoiler.
4869ddf7 73
ea9f0991 74%package plugin-python
8a824313 75Summary: Python plugin for Crossfire server
085236e3 76Summary(pl.UTF-8): Wtyczka Pythona dla serwera Crossfire
a19f68da 77Group: X11/Applications/Games
df4f5f42 78Requires: %{name} = %{version}-%{release}
ea9f0991
JK
79
80%description plugin-python
8a824313 81Python plugin for Crossfire server.
82
68b41324 83%description plugin-python -l pl.UTF-8
8a824313 84Wtyczka Pythona dla serwera Crossfire.
ea9f0991 85
68b41324
AF
86%package plugin-anim
87Summary: Animation plugin for Crossfire server
085236e3 88Summary(pl.UTF-8): Wtyczka animacji dla serwera Crossfire
a19f68da 89Group: X11/Applications/Games
68b41324
AF
90Requires: %{name} = %{version}-%{release}
91
92%description plugin-anim
93Animation plugin for Crossfire server.
94
95%description plugin-anim -l pl.UTF-8
96Wtyczka 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
114rm -rf $RPM_BUILD_ROOT
18cb0b6e 115install -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 125install %{SOURCE1} $RPM_BUILD_ROOT/etc/rc.d/init.d/%{name}
a21c60d7
JB
126cp -p %{SOURCE2} $RPM_BUILD_ROOT/etc/sysconfig/%{name}
127cp -p %{SOURCE3} $RPM_BUILD_ROOT/etc/logrotate.d/%{name}
ea9f0991 128touch $RPM_BUILD_ROOT/var/log/crossfire
99e41279 129
a01f18c2
JK
130%clean
131rm -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 138if [ "$1" = "0" ]; then
bdf99590 139 %service crossfire stop
8deaf1db 140 /sbin/chkconfig --del crossfire
141fi
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
This page took 0.233338 seconds and 5 git commands to generate.