]> git.pld-linux.org Git - packages/crossfire.git/blobdiff - crossfire.spec
- generate "faces" file which is missing in source tarballs
[packages/crossfire.git] / crossfire.spec
index 208adb406c4c0386a9596d6dcfc81dcae5124056..5dedc630048d8f5e3417d257747631f2eb8a81b5 100644 (file)
@@ -1,24 +1,28 @@
-Summary:       Multiplayer roguelike game server.
+Summary:       Multiplayer roguelike game server
+Summary(pl):   Serwer gry roguelike dla wielu graczy
 Name:          crossfire
 Name:          crossfire
-Version:       0.95.8
+Version:       1.0.0
 Release:       1
 License:       GPL
 Group:         Applications/Games
 Source0:       ftp://ftp.scruz.net/users/mwedel/public/%{name}-%{version}.tar.bz2
 Source1:       %{name}.init
 Source2:       %{name}.sysconfig
 Release:       1
 License:       GPL
 Group:         Applications/Games
 Source0:       ftp://ftp.scruz.net/users/mwedel/public/%{name}-%{version}.tar.bz2
 Source1:       %{name}.init
 Source2:       %{name}.sysconfig
+Source3:       %{name}.logrotate
 Patch0:                %{name}-DESTDIR.patch
 Patch0:                %{name}-DESTDIR.patch
-Patch1:                %{name}-crossloop.patch
-URL:           http://crossfire.real-time.com
+Patch1:                %{name}-directories.patch
+Patch2:                %{name}-tmp_maps.patch
+URL:           http://crossfire.real-time.com/
 BuildRequires: XFree86-devel
 BuildRoot:     %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
 BuildRequires: XFree86-devel
 BuildRoot:     %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
+Prereq:                /sbin/chkconfig
 
 %define                _prefix /usr/X11R6
 %define                _localstatedir /var/lib
 
 %description 
 This is a multiplayer graphical arcade and adventure game made for the
 
 %define                _prefix /usr/X11R6
 %define                _localstatedir /var/lib
 
 %description 
 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,10 +32,26 @@ 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
+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
+
+%description editor
+Crossfire map editor.
+
+%description editor -l pl
+Edytor map crossfire.
+
 %prep
 %setup -q
 %patch0 -p1
 %patch1 -p1
 %prep
 %setup -q
 %patch0 -p1
 %patch1 -p1
+%patch2 -p1
 
 %build
 %configure
 
 %build
 %configure
@@ -39,10 +59,15 @@ compete in the same "world".
 
 %install
 rm -rf $RPM_BUILD_ROOT
 
 %install
 rm -rf $RPM_BUILD_ROOT
-install -d $RPM_BUILD_ROOT{/var/log/crossfire,/etc/sysconfig,/etc/rc.d/init.d}
+install -d $RPM_BUILD_ROOT{/var/log,/etc/{sysconfig,%{name},logrotate.d},/etc/rc.d/init.d}
+install -d $RPM_BUILD_ROOT%{_localstatedir}/%{name}/tmp
 %{__make} install DESTDIR="$RPM_BUILD_ROOT"
 %{__make} install DESTDIR="$RPM_BUILD_ROOT"
+mv -f $RPM_BUILD_ROOT%{_datadir}/%{name}/{ban_file,settings,dm_file,motd,forbid} \
+       $RPM_BUILD_ROOT/etc/%{name}
 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
 
 %clean
 rm -rf $RPM_BUILD_ROOT
@@ -63,26 +88,32 @@ if [ "$1" = "0" ]; then
        /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 CHANGES CREDITS DEVELOPERS DONE README TODO 
+%doc doc/{PlayerStats,RunTimeCommands,SurvivalGuide,alchemy.doc,experience,multigod}
+%doc doc/{skills.doc,spell-paths,spellcasters_guide_to_runes,spells}
 %attr(750,root,games) %{_bindir}/crossfire
 %attr(750,root,games) %{_bindir}/random_map
 %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
 %dir %attr(750,root,games) %{_datadir}/crossfire
 %{_datadir}/crossfire/*
 %dir %attr(750,root,games) %{_datadir}/crossfire
 %{_datadir}/crossfire/*
-%{_mandir}/man?/*
+%{_mandir}/man?/crossfire*
 %dir %attr(750,root,games) %{_localstatedir}/crossfire
 %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
-
+%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
+%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
+%dir /etc/crossfire
+%config(noreplace) %verify(not size mtime md5) /etc/crossfire/*
 %attr(754,root,root) /etc/rc.d/init.d/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(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
+
+%files editor
+%defattr(644,root,root,755)
+%doc doc/{Crossedit.doc,RandomMaps.doc,Styles.doc,mapguide,mapmakers_guide_to_runes,teleporter.doc}
+%attr(755,root,root) %{_bindir}/crossedit
+%{_mandir}/man?/crossedit*
This page took 0.09057 seconds and 4 git commands to generate.