- install /etc/localtime as symlink to UTC by default

OBS-URL: https://build.opensuse.org/package/show/Base:System/timezone?expand=0&rev=127
This commit is contained in:
Dirk Mueller 2014-02-10 21:11:02 +00:00 committed by Git OBS Bridge
parent 4b0ce473b3
commit 0ccdb8079c
3 changed files with 11 additions and 2 deletions

View File

@ -1,7 +1,7 @@
#
# spec file for package timezone-java
#
# Copyright (c) 2013 SUSE LINUX Products GmbH, Nuernberg, Germany.
# Copyright (c) 2014 SUSE LINUX Products GmbH, Nuernberg, Germany.
#
# All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed

View File

@ -1,3 +1,8 @@
-------------------------------------------------------------------
Mon Feb 10 21:10:49 UTC 2014 - dmueller@suse.com
- install /etc/localtime as symlink to UTC by default
-------------------------------------------------------------------
Mon Oct 28 09:32:47 UTC 2013 - dmueller@suse.com

View File

@ -1,7 +1,7 @@
#
# spec file for package timezone
#
# Copyright (c) 2013 SUSE LINUX Products GmbH, Nuernberg, Germany.
# Copyright (c) 2014 SUSE LINUX Products GmbH, Nuernberg, Germany.
#
# All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed
@ -80,7 +80,11 @@ cp -a zoneinfo-leaps %{buildroot}%{_prefix}/share/zoneinfo/right
mkdir -p %{buildroot}/etc
rm -f %{buildroot}/etc/localtime
rm -f %{buildroot}%{_prefix}/share/zoneinfo/posixrules
%if 0%{?suse_version} >= 1230
ln -sf %{_prefix}/share/zoneinfo/%{AREA}/%{ZONE} %{buildroot}/etc/localtime
%else
cp -fp %{buildroot}%{_prefix}/share/zoneinfo/%{AREA}/%{ZONE} %{buildroot}/etc/localtime
%endif
ln -sf /etc/localtime %{buildroot}%{_prefix}/share/zoneinfo/posixrules
install -m 644 iso3166.tab %{buildroot}%{_prefix}/share/zoneinfo/iso3166.tab
install -m 644 zone.tab %{buildroot}%{_prefix}/share/zoneinfo/zone.tab