SPECS: tzdata.spec - added trigger to make older cofing compatible...
megabajt
megabajt at pld-linux.org
Thu Apr 24 19:34:47 CEST 2008
Author: megabajt Date: Thu Apr 24 17:34:47 2008 GMT
Module: SPECS Tag: HEAD
---- Log message:
- added trigger to make older cofing compatible with the new one
- release 4
---- Files affected:
SPECS:
tzdata.spec (1.46 -> 1.47)
---- Diffs:
================================================================
Index: SPECS/tzdata.spec
diff -u SPECS/tzdata.spec:1.46 SPECS/tzdata.spec:1.47
--- SPECS/tzdata.spec:1.46 Thu Apr 24 15:54:13 2008
+++ SPECS/tzdata.spec Thu Apr 24 19:34:41 2008
@@ -9,7 +9,7 @@
Summary(pl.UTF-8): Dane o strefach czasowych
Name: tzdata
Version: %{tzdata_ver}
-Release: 3.1
+Release: 4
License: Public Domain (database), BSD/LGPL v2.1+ (code/test suite)
Group: Base
Source0: %{name}-base-0.tar.bz2
@@ -129,6 +129,21 @@
%triggerpostun -- rc-scripts < 0.4.1.4
/sbin/chkconfig --add timezone
+%triggerpostun -- tzdata < 2008b-4
+if ! grep -q '^TIMEZONE=' /etc/sysconfig/timezone; then
+ . /etc/sysconfig/timezone
+
+ if [ -z $ZONE_INFO_AREA ]; then
+ TIMEZONE=$TIME_ZONE
+ else
+ TIMEZONE=$ZONE_INFO_AREA/$TIME_ZONE
+ fi
+
+ echo "TIMEZONE=\"$TIMEZONE\"" >> /etc/sysconfig/timezone
+
+ %service timezone restart
+fi
+
%files
%defattr(644,root,root,755)
%doc tzcode/README tzcode/Theory tzcode/tz-link.html
@@ -149,6 +164,10 @@
All persons listed below can be reached at <cvs_login>@pld-linux.org
$Log$
+Revision 1.47 2008-04-24 17:34:41 megabajt
+- added trigger to make older cofing compatible with the new one
+- release 4
+
Revision 1.46 2008-04-24 13:54:13 megabajt
- improved previous commit log
- non-integer release (3.1) as trigger is needed
================================================================
---- CVS-web:
http://cvs.pld-linux.org/cgi-bin/cvsweb.cgi/SPECS/tzdata.spec?r1=1.46&r2=1.47&f=u
More information about the pld-cvs-commit
mailing list