]> git.pld-linux.org Git - packages/crossfire.git/blobdiff - crossfire.spec
- release 13 (by relup.sh)
[packages/crossfire.git] / crossfire.spec
index 208adb406c4c0386a9596d6dcfc81dcae5124056..a36435a38ed5e197a1b6038ae50b0c4816e7e7d3 100644 (file)
@@ -1,24 +1,44 @@
-Summary:       Multiplayer roguelike game server.
+Summary:       Multiplayer roguelike game server
+Summary(pl.UTF-8):     Serwer gry roguelike dla wielu graczy
 Name:          crossfire
 Name:          crossfire
-Version:       0.95.8
-Release:       1
+Version:       1.9.1
+Release:       13
 License:       GPL
 License:       GPL
-Group:         Applications/Games
-Source0:       ftp://ftp.scruz.net/users/mwedel/public/%{name}-%{version}.tar.bz2
+Group:         X11/Applications/Games
+Source0:       http://dl.sourceforge.net/crossfire/%{name}-%{version}.tar.gz
+# Source0-md5: 9444daefe1a457b4a18101c255be6cdc
 Source1:       %{name}.init
 Source2:       %{name}.sysconfig
 Source1:       %{name}.init
 Source2:       %{name}.sysconfig
-Patch0:                %{name}-DESTDIR.patch
-Patch1:                %{name}-crossloop.patch
-URL:           http://crossfire.real-time.com
-BuildRequires: XFree86-devel
+Source3:       %{name}.logrotate
+Patch0:                %{name}-ac260.patch
+Patch1:                %{name}-check.patch
+Patch2:                %{name}-daemon.patch
+Patch3:                %{name}-python.patch
+Patch4:                %{name}-am.patch
+Patch5:                %{name}-libpng15.patch
+URL:           http://crossfire.real-time.com/
+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.8.0
 BuildRoot:     %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
 
 BuildRoot:     %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
 
-%define                _prefix /usr/X11R6
-%define                _localstatedir /var/lib
+%define                _localstatedir  /var/lib
 
 
-%description 
+%description
 This is a multiplayer graphical arcade and adventure game made for the
 This is a multiplayer graphical arcade and adventure game made for the
-X-Windows environment. There are also Windows and Java clients
+X-Window environment. There are also Windows and Java clients
 available.
 
 It has certain flavours from other games, especially Gauntlet (TM) and
 available.
 
 It has certain flavours from other games, especially Gauntlet (TM) and
@@ -28,61 +48,155 @@ 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".
 
 sing items and battle monsters. They can choose to cooperate or
 compete in the same "world".
 
+%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.UTF-8):     Edytor map Crossfire
+Group:         X11/Applications/Games
+
+%description editor
+Crossfire map editor.
+
+%description editor -l pl.UTF-8
+Edytor map Crossfire.
+
+%package doc
+Summary:       Crossfire game documentation
+Summary(pl.UTF-8):     Dokumentacja gry Crossfire
+Group:         Documentation
+
+%description doc
+Crossfire documentation for players. Includes handbook and 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
+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.
+
+%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
 %prep
 %setup -q
 %patch0 -p1
 %patch1 -p1
+%patch2 -p1
+%patch3 -p1
+%patch4 -p1
+%patch5 -p1
 
 %build
 
 %build
+%{__libtoolize}
+%{__aclocal}
+%{__autoconf}
+%{__automake}
+touch include/autoconf.h{,.in}
 %configure
 %configure
+install -d test/include
+%{__make} -C test/toolkit proto
 %{__make}
 
 %install
 rm -rf $RPM_BUILD_ROOT
 %{__make}
 
 %install
 rm -rf $RPM_BUILD_ROOT
-install -d $RPM_BUILD_ROOT{/var/log/crossfire,/etc/sysconfig,/etc/rc.d/init.d}
-%{__make} install DESTDIR="$RPM_BUILD_ROOT"
+install -d $RPM_BUILD_ROOT{/var/log,/etc/{sysconfig,%{name},logrotate.d},/etc/rc.d/init.d} \
+       $RPM_BUILD_ROOT%{_localstatedir}/%{name}/{tmp,maps}
+
+%{__make} install \
+       DESTDIR=$RPM_BUILD_ROOT
+
+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 %{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
 
 %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
 
 %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
 
        /sbin/chkconfig --del crossfire
 fi
 
-
-
-
 %files
 %defattr(644,root,root,755)
 %files
 %defattr(644,root,root,755)
-%doc CHANGES CREDITS DEVELOPERS DONE README TODO
+%doc DEVELOPERS README TODO ChangeLog
+%doc doc/{alchemy.doc,experience,metaserver,multigod,plugins}
 %attr(750,root,games) %{_bindir}/crossfire
 %attr(750,root,games) %{_bindir}/crossfire
-%attr(750,root,games) %{_bindir}/random_map
-%attr(750,root,games) %{_bindir}/crossloop
-%attr(755,root,root) %{_bindir}/crossedit
+%attr(755,root,games) %{_bindir}/crossfire-config
 %dir %attr(750,root,games) %{_datadir}/crossfire
 %{_datadir}/crossfire/*
 %dir %attr(750,root,games) %{_datadir}/crossfire
 %{_datadir}/crossfire/*
-%{_mandir}/man?/*
-%dir %attr(750,root,games) %{_localstatedir}/crossfire
-%attr(770,root,games) %{_localstatedir}/crossfire/players
-%attr(770,root,games) %{_localstatedir}/crossfire/unique-items
-%attr(660,root,games) %{_localstatedir}/crossfire/bookarch
-%attr(660,root,games) %{_localstatedir}/crossfire/highscore
-%attr(660,root,games) %{_localstatedir}/crossfire/temp.maps
-%attr(770,root,games) /var/log/crossfire
-
+%{_mandir}/man?/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 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(754,root,root) /etc/rc.d/init.d/crossfire
-%attr(640,root,root) %config(noreplace) %verify(not size mtime md5) /etc/sysconfig/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
+%attr(755,root,root) %{_bindir}/crossedit
+%{_mandir}/man?/crossedit*
+
+%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}
+%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/cfpython.*
+
+%files plugin-anim
+%defattr(644,root,root,755)
+%attr(755,root,root) %{_libdir}/crossfire/plugins/cfanim.*
This page took 0.044806 seconds and 4 git commands to generate.