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