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