]> git.pld-linux.org Git - packages/crossfire.git/blobdiff - crossfire.spec
- release 8
[packages/crossfire.git] / crossfire.spec
index c48beccf4158e01a8f67cf1541b70ab3e5f0e3b0..82d42e5afa998e2d298e5ead8fab4c1640667fd5 100644 (file)
@@ -1,26 +1,39 @@
 Summary:       Multiplayer roguelike game server
-Summary(pl):   Serwer gry roguelike dla wielu graczy
+Summary(pl.UTF-8):     Serwer gry roguelike dla wielu graczy
 Name:          crossfire
-Version:       1.5.0
-Release:       1
-Group:         Applications/Games
+Version:       1.9.1
+Release:       8
 License:       GPL
+Group:         X11/Applications/Games
 Source0:       http://dl.sourceforge.net/crossfire/%{name}-%{version}.tar.gz
-# Source0-md5: b22556499a1aa99a19e6c5c7b33d501f
+# Source0-md5: 9444daefe1a457b4a18101c255be6cdc
 Source1:       %{name}.init
 Source2:       %{name}.sysconfig
 Source3:       %{name}.logrotate
-Patch0:                %{name}-perlpath.patch
+Patch0:                %{name}-ac260.patch
+Patch1:                %{name}-check.patch
+Patch2:                %{name}-daemon.patch
 URL:           http://crossfire.real-time.com/
-BuildRequires: XFree86-devel
 BuildRequires: autoconf
+BuildRequires: automake
+BuildRequires: check
+BuildRequires: cproto
+BuildRequires: libtool
+BuildRequires: python-devel >= 1:2.3
+BuildRequires: rpmbuild(macros) >= 1.268
+BuildRequires: xorg-lib-libX11-devel
+BuildRequires: xorg-lib-libXaw-devel
+BuildRequires: xorg-lib-libXmu-devel
 Requires(post,preun):  /sbin/chkconfig
+%pyrequires_eq python
 Requires:      crossfire-maps
+Requires:      rc-scripts
+Conflicts:     logrotate < 3.7-4
 BuildRoot:     %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
 
 %define                _localstatedir  /var/lib
 
-%description 
+%description
 This is a multiplayer graphical arcade and adventure game made for the
 X-Window environment. There are also Windows and Java clients
 available.
@@ -32,47 +45,71 @@ Any number of players can move around in their own window, finding and
 sing items and battle monsters. They can choose to cooperate or
 compete in the same "world".
 
-%description -l pl
-To jest graficzna gra przygodowa dla ¶rodowiska X-Window. S± tak¿e
-dostêpni klienci pod Windows i w Javie.
+%description -l pl.UTF-8
+To jest graficzna gra przygodowa dla środowiska X-Window. Są także
+dostępni klienci pod Windows i w Javie.
 
 %package editor
 Summary:       Crossfire map editor
-Summary(pl):   Edytor map crossfire
-Group:         Applications/Games
+Summary(pl.UTF-8):     Edytor map Crossfire
+Group:         X11/Applications/Games
 
 %description editor
 Crossfire map editor.
 
-%description editor -l pl
-Edytor map crossfire.
+%description editor -l pl.UTF-8
+Edytor map Crossfire.
 
 %package doc
 Summary:       Crossfire game documentation
-Summary(pl):   Dokumentacja gry crossfire
-Group:         Applications/Games
+Summary(pl.UTF-8):     Dokumentacja gry Crossfire
+Group:         Documentation
 
 %description doc
 Crossfire documentation for players. Includes handbook and spoiler.
 
-%description doc -l pl
-Dokumentacja dla graczy Crossfire. Zawiera podrêczniek oraz spoiler.
+%description doc -l pl.UTF-8
+Dokumentacja dla graczy Crossfire. Zawiera podręcznik oraz spoiler.
 
 %package plugin-python
-Summary:       python plugin for crossfire server
-Group:         Applications/Games
-Requires:      %{name} = %{version}
+Summary:       Python plugin for Crossfire server
+Summary(pl.UTF-8):     Wtyczka Pythona dla serwera Crossfire
+Group:         X11/Applications/Games
+Requires:      %{name} = %{version}-%{release}
 
 %description plugin-python
-Python plugin for crossfire server.
+Python plugin for Crossfire server.
+
+%description plugin-python -l pl.UTF-8
+Wtyczka Pythona dla serwera Crossfire.
+
+%package plugin-anim
+Summary:       Animation plugin for Crossfire server
+Summary(pl.UTF-8):     Wtyczka animacji dla serwera Crossfire
+Group:         X11/Applications/Games
+Requires:      %{name} = %{version}-%{release}
+
+%description plugin-anim
+Animation plugin for Crossfire server.
+
+%description plugin-anim -l pl.UTF-8
+Wtyczka animacji dla serwera Crossfire.
 
 %prep
 %setup -q
 %patch0 -p1
+%patch1 -p1
+%patch2 -p1
 
 %build
+%{__libtoolize}
+%{__aclocal}
 %{__autoconf}
+%{__automake}
+touch include/autoconf.h{,.in}
 %configure
+install -d test/include
+%{__make} -C test/toolkit proto
 %{__make}
 
 %install
@@ -83,65 +120,60 @@ install -d $RPM_BUILD_ROOT{/var/log,/etc/{sysconfig,%{name},logrotate.d},/etc/rc
 %{__make} install \
        DESTDIR=$RPM_BUILD_ROOT
 
-rm $RPM_BUILD_ROOT%{_libdir}/crossfire/plugins/plugin_python.a
+rm $RPM_BUILD_ROOT%{_libdir}/crossfire/plugins/*.a
 rm $RPM_BUILD_ROOT%{_bindir}/crossloop*
+rm $RPM_BUILD_ROOT%{_mandir}/*/crossloop*
+rm $RPM_BUILD_ROOT%{_bindir}/player_dl.pl
 install %{SOURCE1} $RPM_BUILD_ROOT/etc/rc.d/init.d/%{name}
 install %{SOURCE2} $RPM_BUILD_ROOT/etc/sysconfig/%{name}
 install %{SOURCE3} $RPM_BUILD_ROOT/etc/logrotate.d/%{name}
 touch $RPM_BUILD_ROOT/var/log/crossfire
+
 %clean
 rm -rf $RPM_BUILD_ROOT
 
 %post
 /sbin/chkconfig --add crossfire
-if [ -r /var/lock/subsys/crossfire ]; then
-       /etc/rc.d/init.d/crossfire restart >&2
-else
-       echo "Run \"/etc/rc.d/init.d/crossfire start\" to start Crossfire server."
-fi
+%service crossfire restart "Crossfire server"
 
 %preun
 if [ "$1" = "0" ]; then
-       if [ -r /var/lock/subsys/crossfire ]; then
-               /etc/rc.d/init.d/crossfire stop >&2
-       fi
+       %service crossfire stop
        /sbin/chkconfig --del crossfire
 fi
 
 %files
 %defattr(644,root,root,755)
-%doc DEVELOPERS README TODO
-%doc doc/{alchemy.doc,experience,multigod,spell_params.doc} 
-%doc doc/{spell-paths,spellcasters_guide_to_runes,metaserver} 
-%doc doc/Developers utils/crossloop{,.web,.pl}
+%doc DEVELOPERS README TODO ChangeLog
+%doc doc/{alchemy.doc,experience,metaserver,multigod,plugins}
 %attr(750,root,games) %{_bindir}/crossfire
 %attr(755,root,games) %{_bindir}/crossfire-config
 %dir %attr(750,root,games) %{_datadir}/crossfire
 %{_datadir}/crossfire/*
 %{_mandir}/man?/crossfire*
-%dir %attr(750,root,games) %{_localstatedir}/crossfire
+%dir %attr(770,root,games) %{_localstatedir}/crossfire
 %dir %attr(770,root,games) %{_localstatedir}/crossfire/players
 %dir %attr(770,root,games) %{_localstatedir}/crossfire/unique-items
 %dir %attr(770,root,games) %{_localstatedir}/crossfire/tmp
 %dir %attr(770,root,games) %{_localstatedir}/crossfire/maps
-%attr(660,root,games) %config(noreplace) %verify(not size mtime md5) %{_localstatedir}/crossfire/bookarch
-%attr(660,root,games) %config(noreplace) %verify(not size mtime md5) %{_localstatedir}/crossfire/highscore
-%attr(660,root,games) %config(noreplace) %verify(not size mtime md5) %{_localstatedir}/crossfire/temp.maps
-%attr(660,root,games) %config(noreplace) %verify(not size mtime md5) %{_localstatedir}/crossfire/clockdata
-%dir /etc/crossfire
-%config(noreplace) %verify(not size mtime md5) /etc/crossfire/*
+%attr(660,root,games) %config(noreplace) %verify(not md5 mtime size) %{_localstatedir}/crossfire/bookarch
+%attr(660,root,games) %config(noreplace) %verify(not md5 mtime size) %{_localstatedir}/crossfire/highscore
+%attr(660,root,games) %config(noreplace) %verify(not md5 mtime size) %{_localstatedir}/crossfire/temp.maps
+%attr(660,root,games) %config(noreplace) %verify(not md5 mtime size) %{_localstatedir}/crossfire/clockdata
+%attr(660,root,games) %config(noreplace) %verify(not md5 mtime size) %{_localstatedir}/crossfire/banish_file
+%dir %{_sysconfdir}/crossfire
+%config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/crossfire/*
 %attr(754,root,root) /etc/rc.d/init.d/crossfire
-%attr(660,root,root) /etc/logrotate.d/crossfire
-%attr(640,root,root) %config(noreplace) %verify(not size mtime md5) /etc/sysconfig/crossfire
-%attr(660,root,games) %config(noreplace) %verify(not size mtime md5) /var/log/crossfire
+%attr(640,root,root) %config(noreplace) %verify(not md5 mtime size) /etc/logrotate.d/crossfire
+%attr(640,root,root) %config(noreplace) %verify(not md5 mtime size) /etc/sysconfig/crossfire
+%attr(660,root,games) %config(noreplace) %verify(not md5 mtime size) /var/log/crossfire
 %dir %{_libdir}/crossfire
 %dir %{_libdir}/crossfire/plugins
 %attr(755,root,root) %{_libdir}/crossfire/add_throw.perl
 %attr(755,root,root) %{_libdir}/crossfire/metaserver.pl
 %attr(755,root,root) %{_libdir}/crossfire/mktable.script
 %attr(755,root,root) %{_libdir}/crossfire/random_map
-                    
+
 %files editor
 %defattr(644,root,root,755)
 %doc crossedit/doc/*.doc
@@ -151,9 +183,14 @@ fi
 %files doc
 %defattr(644,root,root,755)
 %doc doc/{handbook.ps,spoiler.ps}
-%doc doc/{PlayerStats,RunTimeCommands,SurvivalGuide} 
-%doc doc/{skills.doc,spellcasters_guide_to_runes,spells*} 
+%doc doc/{PlayerStats,RunTimeCommands,SurvivalGuide}
+%doc doc/{skills.doc,spellcasters_guide_to_runes}
+%doc doc/spell-docs/{*.txt,spell-list.ps,spell-summary.ps}
 
 %files plugin-python
 %defattr(644,root,root,755)
-%attr(755,root,root) %{_libdir}/crossfire/plugins/plugin_python.*
+%attr(755,root,root) %{_libdir}/crossfire/plugins/cfpython.*
+
+%files plugin-anim
+%defattr(644,root,root,755)
+%attr(755,root,root) %{_libdir}/crossfire/plugins/cfanim.*
This page took 0.096266 seconds and 4 git commands to generate.