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