SHA256
6
0
forked from pool/timezone

- cleanup stale rpmnew / symlink of posixrules to /etc/localtime (bnc#762210)

- remove %config part on posixrules symlink, it is not a config file
- update to 2012f:
  * Fiji DST is October 21st 2012 -> January 20th, 2013

- Add tzcode-symlink.patch: use a symlink to create /etc/localtime
  (bnc#773491)
- Do not apply tzcode-link.diff on openSUSE >= 12.2 (bnc#773491).

- cleanup stale rpmnew / symlink of posixrules to /etc/localtime (bnc#762210)
- remove %config part on posixrules symlink, it is not a config file
- update to 2012f:
  * Fiji DST is October 21st 2012 -> January 20th, 2013

OBS-URL: https://build.opensuse.org/package/show/Base:System/timezone?expand=0&rev=85
This commit is contained in:
2012-09-13 15:08:10 +00:00
committed by Git OBS Bridge
parent baab5692e7
commit 6d45752911
8 changed files with 46 additions and 9 deletions

View File

@@ -23,7 +23,7 @@ Group: System/Base
Url: http://www.gnu.org/software/libc/libc.html
PreReq: filesystem, coreutils
# COMMON-BEGIN
Version: 2012e
Version: 2012f
Release: 0
Source: ftp://ftp.iana.org/tz/releases/tzdata%{version}.tar.gz
Source1: ftp://ftp.iana.org/tz/releases/tzcode%{version}.tar.gz
@@ -101,11 +101,18 @@ then
[ ! -f /etc/localtime ] || echo "WARNING: Not updating /etc/localtime with new zone file" >&2
fi
fi
if [ ! -L /usr/share/zoneinfo/posixrules ]; then
rm -f /usr/share/zoneinfo/posixrules
ln -sf /etc/localtime /usr/share/zoneinfo/posixrules
fi
if [ -e /usr/share/zoneinfo/posixrules.rpmnew ]; then
rm -f /usr/share/zoneinfo/posixrules.rpmnew
fi
%files
%defattr(-,root,root)
%verify(not link md5 size mtime) %config(missingok,noreplace) /etc/localtime
%verify(not link md5 size mtime) %config(missingok,noreplace) %{_prefix}/share/zoneinfo/posixrules
%verify(not link md5 size mtime) %{_prefix}/share/zoneinfo/posixrules
%{_prefix}/share/zoneinfo
%{_bindir}/tzselect
%{_sbindir}/zdump