%endif
%endif
-%define tzcode_ver 2012a
-%define tzdata_ver 2012a
+%define tzcode_ver 2013c
+%define tzdata_ver 2013c
Summary: Timezone data
Summary(pl.UTF-8): Dane o strefach czasowych
Name: tzdata
Version: %{tzdata_ver}
-Release: 3
+Release: 1
License: Public Domain (database), BSD/LGPL v2.1+ (code/test suite)
Group: Base
# The tzdata-base-0.tar.bz2 is a simple building infrastructure and
# Source0-md5: e36d2f742c22f8c8dbf0686ac9769b55
# ftp://elsie.nci.nih.gov/pub/ has been shut down because of lawsuit
#Source1Download: http://www.iana.org/time-zones/
-Source1: http://www.iana.org/time-zones/repository/releases/%{name}%{tzdata_ver}.tar.gz
-# Source1-md5: cc43867f4768e5c2e8315d9b3cac62ed
+Source1: ftp://ftp.iana.org/tz/releases/%{name}%{tzdata_ver}.tar.gz
+# Source1-md5: b5062217a2dea6823dd69b4dda97b249
#Source2Download: http://www.iana.org/time-zones/
-Source2: http://www.iana.org/time-zones/repository/releases/tzcode%{tzcode_ver}.tar.gz
-# Source2-md5: a72bb8c29893ee3bfd1101aca29d4064
+Source2: ftp://ftp.iana.org/tz/releases/tzcode%{tzcode_ver}.tar.gz
+# Source2-md5: 69d333d829802af4475707e32fa01681
Source3: timezone.init
Source4: timezone.sysconfig
Source5: javazic.tar.gz
%setup -qc
mv tzdata/* .
%{__tar} xzf %{SOURCE1} -C tzdata
+# don't override Makefile from base tar
+mv tzdata/Makefile{,.tzdata}
install -d tzcode
%{__tar} xzf %{SOURCE2} -C tzcode
%patch2 -p1
%endif
# glibc.spec didn't keep it. so won't here either.
-rm -rf $RPM_BUILD_ROOT%{_datadir}/zoneinfo/posix
+%{__rm} -r $RPM_BUILD_ROOT%{_datadir}/zoneinfo/posix
# behave more like glibc.spec
ln -sf %{_sysconfdir}/localtime $RPM_BUILD_ROOT%{_datadir}/zoneinfo/localtime
ln -sf localtime $RPM_BUILD_ROOT%{_datadir}/zoneinfo/posixtime