]> git.pld-linux.org Git - packages/crossfire.git/blame - crossfire.spec
- fix build against automake-1.11.2
[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
68b41324 4Version: 1.9.1
7d202db8 5Release: 12
ea9f0991 6License: GPL
a19f68da 7Group: X11/Applications/Games
ebccff01 8Source0: http://dl.sourceforge.net/crossfire/%{name}-%{version}.tar.gz
68b41324 9# Source0-md5: 9444daefe1a457b4a18101c255be6cdc
a01f18c2
JK
10Source1: %{name}.init
11Source2: %{name}.sysconfig
87321fa5 12Source3: %{name}.logrotate
68b41324
AF
13Patch0: %{name}-ac260.patch
14Patch1: %{name}-check.patch
15Patch2: %{name}-daemon.patch
ae447a11 16Patch3: %{name}-python.patch
7d202db8
AG
17Patch4: %{name}-am.patch
18Patch5: %{name}-libpng15.patch
f42965cc 19URL: http://crossfire.real-time.com/
d1f7a031 20BuildRequires: autoconf
fb32db14 21BuildRequires: automake
294b83f5 22BuildRequires: check
68b41324 23BuildRequires: cproto
df4f5f42 24BuildRequires: libtool
e53e42ce 25BuildRequires: python-devel >= 1:2.3
bdf99590 26BuildRequires: rpmbuild(macros) >= 1.268
294b83f5 27BuildRequires: xorg-lib-libX11-devel
28BuildRequires: xorg-lib-libXaw-devel
29BuildRequires: xorg-lib-libXmu-devel
d1f7a031 30Requires(post,preun): /sbin/chkconfig
9a408f5d 31%pyrequires_eq python
ebccff01 32Requires: crossfire-maps
bdf99590 33Requires: rc-scripts
07f1a1ed 34Conflicts: logrotate < 3.8.0
18cb0b6e 35BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
a01f18c2 36
18cb0b6e 37%define _localstatedir /var/lib
a01f18c2 38
99e41279 39%description
a01f18c2 40This is a multiplayer graphical arcade and adventure game made for the
dd3d7f1d 41X-Window environment. There are also Windows and Java clients
a01f18c2
JK
42available.
43
44It has certain flavours from other games, especially Gauntlet (TM) and
45Nethack/Moria.
46
47Any number of players can move around in their own window, finding and
48sing items and battle monsters. They can choose to cooperate or
49compete in the same "world".
50
68b41324
AF
51%description -l pl.UTF-8
52To jest graficzna gra przygodowa dla środowiska X-Window. Są także
53dostępni klienci pod Windows i w Javie.
e279ea73 54
87321fa5 55%package editor
e279ea73 56Summary: Crossfire map editor
085236e3 57Summary(pl.UTF-8): Edytor map Crossfire
a19f68da 58Group: X11/Applications/Games
87321fa5
JK
59
60%description editor
61Crossfire map editor.
62
68b41324 63%description editor -l pl.UTF-8
8a824313 64Edytor map Crossfire.
e279ea73 65
4869ddf7
JK
66%package doc
67Summary: Crossfire game documentation
085236e3 68Summary(pl.UTF-8): Dokumentacja gry Crossfire
0264e2e6 69Group: Documentation
4869ddf7
JK
70
71%description doc
72Crossfire documentation for players. Includes handbook and spoiler.
73
68b41324
AF
74%description doc -l pl.UTF-8
75Dokumentacja dla graczy Crossfire. Zawiera podręcznik oraz spoiler.
4869ddf7 76
ea9f0991 77%package plugin-python
8a824313 78Summary: Python plugin for Crossfire server
085236e3 79Summary(pl.UTF-8): Wtyczka Pythona dla serwera Crossfire
a19f68da 80Group: X11/Applications/Games
df4f5f42 81Requires: %{name} = %{version}-%{release}
ea9f0991
JK
82
83%description plugin-python
8a824313 84Python plugin for Crossfire server.
85
68b41324 86%description plugin-python -l pl.UTF-8
8a824313 87Wtyczka Pythona dla serwera Crossfire.
ea9f0991 88
68b41324
AF
89%package plugin-anim
90Summary: Animation plugin for Crossfire server
085236e3 91Summary(pl.UTF-8): Wtyczka animacji dla serwera Crossfire
a19f68da 92Group: X11/Applications/Games
68b41324
AF
93Requires: %{name} = %{version}-%{release}
94
95%description plugin-anim
96Animation plugin for Crossfire server.
97
98%description plugin-anim -l pl.UTF-8
99Wtyczka animacji dla serwera Crossfire.
100
a01f18c2
JK
101%prep
102%setup -q
0ab97031
AF
103%patch0 -p1
104%patch1 -p1
105%patch2 -p1
ae447a11 106%patch3 -p1
7d202db8
AG
107%patch4 -p1
108%patch5 -p1
a01f18c2
JK
109
110%build
fb32db14
JK
111%{__libtoolize}
112%{__aclocal}
ebccff01 113%{__autoconf}
fb32db14 114%{__automake}
68b41324 115touch include/autoconf.h{,.in}
a01f18c2 116%configure
68b41324
AF
117install -d test/include
118%{__make} -C test/toolkit proto
a01f18c2
JK
119%{__make}
120
121%install
122rm -rf $RPM_BUILD_ROOT
18cb0b6e 123install -d $RPM_BUILD_ROOT{/var/log,/etc/{sysconfig,%{name},logrotate.d},/etc/rc.d/init.d} \
124 $RPM_BUILD_ROOT%{_localstatedir}/%{name}/{tmp,maps}
125
e94b95ef
PG
126%{__make} install \
127 DESTDIR=$RPM_BUILD_ROOT
128
68b41324 129rm $RPM_BUILD_ROOT%{_libdir}/crossfire/plugins/*.a
ea9f0991 130rm $RPM_BUILD_ROOT%{_bindir}/crossloop*
fb32db14 131rm $RPM_BUILD_ROOT%{_mandir}/*/crossloop*
0d315b34 132rm $RPM_BUILD_ROOT%{_bindir}/player_dl.pl
a01f18c2
JK
133install %{SOURCE1} $RPM_BUILD_ROOT/etc/rc.d/init.d/%{name}
134install %{SOURCE2} $RPM_BUILD_ROOT/etc/sysconfig/%{name}
87321fa5 135install %{SOURCE3} $RPM_BUILD_ROOT/etc/logrotate.d/%{name}
ea9f0991 136touch $RPM_BUILD_ROOT/var/log/crossfire
99e41279 137
a01f18c2
JK
138%clean
139rm -rf $RPM_BUILD_ROOT
140
141%post
8deaf1db 142/sbin/chkconfig --add crossfire
bdf99590 143%service crossfire restart "Crossfire server"
a01f18c2
JK
144
145%preun
8deaf1db 146if [ "$1" = "0" ]; then
bdf99590 147 %service crossfire stop
8deaf1db 148 /sbin/chkconfig --del crossfire
149fi
150
a01f18c2
JK
151%files
152%defattr(644,root,root,755)
fb32db14
JK
153%doc DEVELOPERS README TODO ChangeLog
154%doc doc/{alchemy.doc,experience,metaserver,multigod,plugins}
a01f18c2 155%attr(750,root,games) %{_bindir}/crossfire
ea9f0991 156%attr(755,root,games) %{_bindir}/crossfire-config
a01f18c2
JK
157%dir %attr(750,root,games) %{_datadir}/crossfire
158%{_datadir}/crossfire/*
87321fa5 159%{_mandir}/man?/crossfire*
fb32db14 160%dir %attr(770,root,games) %{_localstatedir}/crossfire
87321fa5
JK
161%dir %attr(770,root,games) %{_localstatedir}/crossfire/players
162%dir %attr(770,root,games) %{_localstatedir}/crossfire/unique-items
163%dir %attr(770,root,games) %{_localstatedir}/crossfire/tmp
35d8672c 164%dir %attr(770,root,games) %{_localstatedir}/crossfire/maps
0d315b34
ER
165%attr(660,root,games) %config(noreplace) %verify(not md5 mtime size) %{_localstatedir}/crossfire/bookarch
166%attr(660,root,games) %config(noreplace) %verify(not md5 mtime size) %{_localstatedir}/crossfire/highscore
167%attr(660,root,games) %config(noreplace) %verify(not md5 mtime size) %{_localstatedir}/crossfire/temp.maps
168%attr(660,root,games) %config(noreplace) %verify(not md5 mtime size) %{_localstatedir}/crossfire/clockdata
169%attr(660,root,games) %config(noreplace) %verify(not md5 mtime size) %{_localstatedir}/crossfire/banish_file
170%dir %{_sysconfdir}/crossfire
171%config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/crossfire/*
a01f18c2 172%attr(754,root,root) /etc/rc.d/init.d/crossfire
0d315b34
ER
173%attr(640,root,root) %config(noreplace) %verify(not md5 mtime size) /etc/logrotate.d/crossfire
174%attr(640,root,root) %config(noreplace) %verify(not md5 mtime size) /etc/sysconfig/crossfire
175%attr(660,root,games) %config(noreplace) %verify(not md5 mtime size) /var/log/crossfire
ea9f0991
JK
176%dir %{_libdir}/crossfire
177%dir %{_libdir}/crossfire/plugins
178%attr(755,root,root) %{_libdir}/crossfire/add_throw.perl
179%attr(755,root,root) %{_libdir}/crossfire/metaserver.pl
180%attr(755,root,root) %{_libdir}/crossfire/mktable.script
181%attr(755,root,root) %{_libdir}/crossfire/random_map
99e41279 182
87321fa5
JK
183%files editor
184%defattr(644,root,root,755)
ea9f0991 185%doc crossedit/doc/*.doc
87321fa5
JK
186%attr(755,root,root) %{_bindir}/crossedit
187%{_mandir}/man?/crossedit*
4869ddf7
JK
188
189%files doc
35d8672c 190%defattr(644,root,root,755)
4869ddf7 191%doc doc/{handbook.ps,spoiler.ps}
99e41279 192%doc doc/{PlayerStats,RunTimeCommands,SurvivalGuide}
fb32db14
JK
193%doc doc/{skills.doc,spellcasters_guide_to_runes}
194%doc doc/spell-docs/{*.txt,spell-list.ps,spell-summary.ps}
ea9f0991
JK
195
196%files plugin-python
197%defattr(644,root,root,755)
68b41324
AF
198%attr(755,root,root) %{_libdir}/crossfire/plugins/cfpython.*
199
200%files plugin-anim
201%defattr(644,root,root,755)
202%attr(755,root,root) %{_libdir}/crossfire/plugins/cfanim.*
This page took 0.079241 seconds and 4 git commands to generate.