Hello community,

here is the log from the commit of package crawl for openSUSE:Factory checked 
in at 2014-06-10 14:39:12
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Comparing /work/SRC/openSUSE:Factory/crawl (Old)
 and      /work/SRC/openSUSE:Factory/.crawl.new (New)
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Package is "crawl"

Changes:
--------
--- /work/SRC/openSUSE:Factory/crawl/crawl.changes      2014-05-27 
11:53:53.000000000 +0200
+++ /work/SRC/openSUSE:Factory/.crawl.new/crawl.changes 2014-06-10 
14:39:14.000000000 +0200
@@ -1,0 +2,9 @@
+Mon Jun  9 13:31:02 MSK 2014 - [email protected]
+- Now saves located in ~/.crawl dir. This mean:
+* Different users now uses different settings
+* Users can now change setting without root privilages 
+  (by creating ~/.crawl/init.txt or ~/.crawlrc file)
+  
+- Old saves moved to /root/.crawl directory
+
+-------------------------------------------------------------------

++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Other differences:
------------------
++++++ crawl.spec ++++++
--- /var/tmp/diff_new_pack.m9Ejlc/_old  2014-06-10 14:39:15.000000000 +0200
+++ /var/tmp/diff_new_pack.m9Ejlc/_new  2014-06-10 14:39:15.000000000 +0200
@@ -98,16 +98,23 @@
 %build
 cd source
 make clean
-make %{?_smp_flags} DATADIR="%{_datadir}/crawl/" SAVEDIR="/var/games/crawl/" 
EXTRA_FLAGS="%{optflags}"
+make %{?_smp_flags} DATADIR="%{_datadir}/crawl/" EXTRA_FLAGS="%{optflags}"
 mv crawl crawl.tty # avoid name clashes temporarily
 make clean
-make %{?_smp_flags} DATADIR="%{_datadir}/crawl/" SAVEDIR="/var/games/crawl/" 
TILES="1" EXTRA_FLAGS="%{optflags}"
+make %{?_smp_flags} DATADIR="%{_datadir}/crawl/" TILES="1" 
EXTRA_FLAGS="%{optflags}"
 mv crawl crawl-sdl
 mv crawl.tty crawl
 
 %pre
 getent group games >/dev/null || groupadd -r games
 getent passwd games >/dev/null || useradd -r -g games -d /var/games -s 
/sbin/nologin
+#move old saves
+if [ -d /var/games/crawl ]; then
+       if [ -d /root/.crawl ]; then
+               mv /root/.crawl /root/.crawl_old
+       fi
+       mv /var/games/crawl /root/.crawl
+fi
 
 %install
 # binaries
@@ -131,10 +138,6 @@
 #touch %%{buildroot}%%{_sysconfdir}/%%{name}/crawlrc
 # icon and desktop file
 install -D -m 0644 source/dat/tiles/stone_soup_icon-32x32.png 
%{buildroot}%{_datadir}/pixmaps/%{name}.png
-# saves directory
-install -d %{buildroot}%{_localstatedir}/games/%{name}/morgue
-install -d %{buildroot}%{_localstatedir}/games/%{name}/saves
-chmod -R 0775 %{buildroot}%{_localstatedir}/games/%{name}
 
 %suse_update_desktop_file -i %{name} Game RolePlaying
 
@@ -152,12 +155,6 @@
 %files
 %defattr(-,root,root)
 %{_mandir}/man6/*
-%attr(0775,games,games) %dir %{_localstatedir}/games/%{name}
-%attr(0775,games,games) %dir %{_localstatedir}/games/%{name}/morgue
-%attr(0775,games,games) %dir %{_localstatedir}/games/%{name}/saves
 %attr(0755,root,root) %{_bindir}/%{name}
 
-%post
-/usr/bin/crawl -builddb
-
 %changelog

-- 
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to