SPECS: crafty.spec - rel.1 - put writable files in /var

blues blues at pld-linux.org
Sun Nov 18 17:31:12 CET 2007


Author: blues                        Date: Sun Nov 18 16:31:12 2007 GMT
Module: SPECS                         Tag: HEAD
---- Log message:
- rel.1 - put writable files in /var

---- Files affected:
SPECS:
   crafty.spec (1.23 -> 1.24) 

---- Diffs:

================================================================
Index: SPECS/crafty.spec
diff -u SPECS/crafty.spec:1.23 SPECS/crafty.spec:1.24
--- SPECS/crafty.spec:1.23	Sun Nov 18 13:11:24 2007
+++ SPECS/crafty.spec	Sun Nov 18 17:31:07 2007
@@ -1,11 +1,12 @@
 # $Revision$, $Date$
 # TODO:
 # - update to 21.6
+# - executable should be sgid games?
 Summary:	Superior chess program by Bob Hyatt for Unix systems
 Summary(pl.UTF-8):	Jeden z lepszych programów szachowych dla uniksów autorstwa Boba Hyatta
 Name:		crafty
 Version:	20.1
-Release:	0.2
+Release:	1
 License:	GPL
 Group:		Applications/Games
 Source0:	ftp://ftp.cis.uab.edu/pub/hyatt/source/%{name}-%{version}.zip
@@ -80,7 +81,7 @@
 %install
 rm -rf $RPM_BUILD_ROOT
 install -d $RPM_BUILD_ROOT{%{_bindir},%{_mandir}/man6,%{_desktopdir},%{_pixmapsdir}} \
-	$RPM_BUILD_ROOT%{_datadir}/%{name}/{bitmaps,sound,tb}
+	$RPM_BUILD_ROOT{%{_datadir}/%{name}/{bitmaps,sound,tb},/var/lib/%{name}}
 
 install crafty $RPM_BUILD_ROOT%{_bindir}
 install xcrafty $RPM_BUILD_ROOT%{_bindir}
@@ -96,8 +97,12 @@
 install %{SOURCE3} $RPM_BUILD_ROOT%{_desktopdir}
 install %{SOURCE4} $RPM_BUILD_ROOT%{_pixmapsdir}
 
-touch $RPM_BUILD_ROOT%{_datadir}/%{name}/book.lrn \
-	$RPM_BUILD_ROOT%{_datadir}/%{name}/position.{bin,lrn}
+touch $RPM_BUILD_ROOT/var/lib/%{name}/book.lrn \
+	$RPM_BUILD_ROOT/var/lib/%{name}/position.{bin,lrn}
+
+for file in book.lrn position.{bin,lrn}; do
+	ln -s /var/lib/%{name}/$file $RPM_BUILD_ROOT%{_datadir}/%{name}/$file
+done
 
 %clean
 rm -rf $RPM_BUILD_ROOT
@@ -110,17 +115,19 @@
 %dir %{_datadir}/%{name}
 %{_datadir}/%{name}/*.bin
 %{_datadir}/%{name}/*.hlp
-%attr(660,root,games) %config(noreplace) %verify(not md5 mtime size) %{_datadir}/%{name}/book.lrn
-%attr(660,root,games) %config(noreplace) %verify(not md5 mtime size) %{_datadir}/%{name}/position.bin
-%attr(660,root,games) %config(noreplace) %verify(not md5 mtime size) %{_datadir}/%{name}/position.lrn
+%{_datadir}/%{name}/*.lrn
 %dir %{_datadir}/%{name}/bitmaps
 %{_datadir}/%{name}/bitmaps/*.bm
 %{_datadir}/%{name}/bitmaps/*.gif
 %dir %{_datadir}/%{name}/tb
 %{_datadir}/%{name}/tb/*.emd
+%dir /var/lib/%{name}
+%attr(660,root,games) %config(noreplace) %verify(not md5 mtime size) /var/lib/%{name}/book.lrn
+%attr(660,root,games) %config(noreplace) %verify(not md5 mtime size) /var/lib/%{name}/position.bin
+%attr(660,root,games) %config(noreplace) %verify(not md5 mtime size) /var/lib/%{name}/position.lrn
+%{_mandir}/man6/*.6*
 %{_desktopdir}/*.desktop
 %{_pixmapsdir}/*
-%{_mandir}/man6/*.6*
 
 %define date	%(echo `LC_ALL="C" date +"%a %b %d %Y"`)
 %changelog
@@ -128,6 +135,9 @@
 All persons listed below can be reached at <cvs_login>@pld-linux.org
 
 $Log$
+Revision 1.24  2007-11-18 16:31:07  blues
+- rel.1 - put writable files in /var
+
 Revision 1.23  2007-11-18 12:11:24  blues
 - 20.1 - mostly rewritten, with patches and resources from MDK
 
================================================================

---- CVS-web:
    http://cvs.pld-linux.org/cgi-bin/cvsweb.cgi/SPECS/crafty.spec?r1=1.23&r2=1.24&f=u



More information about the pld-cvs-commit mailing list