9ea5ca47 |
Summary: Time zone data
Name: tzdata
Version: 2017b |
c38f29bd |
Release: 3%{?dist} |
9ea5ca47 |
URL: http://www.iana.org/time-zones
License: Public Domain
Group: Applications/System
Vendor: VMware, Inc. |
eaf8b0e8 |
Distribution: Photon |
9ea5ca47 |
Source0: http://www.iana.org//time-zones/repository/releases/%{name}%{version}.tar.gz
%define sha1 tzdata=0f13bbb641f5742796609d3484006fe01fa654f1
BuildArch: noarch
|
f4d17450 |
%description
Sources for time zone and daylight saving time data |
eaf8b0e8 |
%define blddir %{name}-%{version} |
9ea5ca47 |
|
f4d17450 |
%prep
rm -rf %{blddir}
install -vdm 755 %{blddir}
cd %{blddir} |
70c915af |
tar xf %{SOURCE0} --no-same-owner |
f4d17450 |
%build
%install
cd %{blddir}
ZONEINFO=%{buildroot}%{_datarootdir}/zoneinfo
install -vdm 755 $ZONEINFO/{posix,right}
for tz in etcetera southamerica northamerica europe africa antarctica \ |
eaf8b0e8 |
asia australasia backward pacificnew systemv; do
zic -L /dev/null -d $ZONEINFO -y "sh yearistype.sh" ${tz}
zic -L /dev/null -d $ZONEINFO/posix -y "sh yearistype.sh" ${tz}
zic -L leapseconds -d $ZONEINFO/right -y "sh yearistype.sh" ${tz} |
f4d17450 |
done |
c38f29bd |
cp -v zone.tab iso3166.tab zone1970.tab $ZONEINFO |
f4d17450 |
zic -d $ZONEINFO -p America/New_York
install -vdm 755 %{buildroot}%{_sysconfdir} |
9d42f28e |
ln -svf %{_datarootdir}/zoneinfo/UTC %{buildroot}%{_sysconfdir}/localtime |
eaf8b0e8 |
|
f4d17450 |
%files
%defattr(-,root,root) |
9d42f28e |
%config(noreplace) %{_sysconfdir}/localtime |
f4d17450 |
%{_datadir}/* |
eaf8b0e8 |
|
f4d17450 |
%changelog |
c38f29bd |
* Thu Sep 06 2018 Anish Swaminathan <anishs@vmware.com> 2017b-3
- Add zone1970.tab to zoneinfo |
9d42f28e |
* Mon May 01 2017 Bo Gan <ganb@vmware.com> 2017b-2
- Remove (pre/post)trans, config file as noreplace. |
9ea5ca47 |
* Wed Apr 05 2017 Xiaolin Li <xiaolinl@vmware.com> 2017b-1
- Updated to version 2017b. |
eaf8b0e8 |
* Wed Dec 14 2016 Anish Swaminathan <anishs@vmware.com> 2016h-2
- Preserve /etc/localtime symlink over upgrade
* Thu Oct 27 2016 Anish Swaminathan <anishs@vmware.com> 2016h-1
- Upgrade to 2016h
* Tue May 24 2016 Priyesh Padmavilasom <ppadmavilasom@vmware.com> 2016a-2
- GA - Bump release of all rpms
* Tue Feb 23 2016 Harish Udaiya Kumar <hudaiyakumar@vmware.com> 2016a-1
- Upgraded to version 2016a
* Wed Nov 5 2014 Divya Thaluru <dthaluru@vmware.com> 2013i-1
- Initial build. First version |