1 ###############################################################################
2 # IPFire.org - An Open Source Firewall Solution #
3 # Copyright (C) - IPFire Development Team <info@ipfire.org> #
4 ###############################################################################
10 version = %{tzdata_version}
15 url = http://www.iana.org/time-zones
16 license = Public Domain
17 summary = Timezone data.
20 This package contains data files with rules for various timezones around
24 source_dl += http://www.iana.org/time-zones/repository/releases/
25 sources = tzdata%{tzdata_version}.tar.gz tzcode%{tzcode_version}.tar.gz
33 DIR_APP = %{DIR_SRC}/tzdata%{tzdata_version}
36 mkdir tzdata%{tzdata_version}
37 %{MACRO_EXTRACT} %{DIR_DL}/tzcode%{tzcode_version}.tar.gz -C tzdata%{tzdata_version}
38 %{MACRO_EXTRACT} %{DIR_DL}/tzdata%{tzdata_version}.tar.gz -C tzdata%{tzdata_version}
41 make TOPDIR=%{BUILDROOT}/usr ETCDIR=/tmp LIBDIR=/tmp MANDIR=/tmp \
42 TZDIR=%{BUILDROOT}/usr/share/zoneinfo install
43 mv %{BUILDROOT}/usr/share/zoneinfo-posix/ %{BUILDROOT}/usr/share/posix
44 mv %{BUILDROOT}/usr/share/zoneinfo-leaps/ %{BUILDROOT}/usr/share/right
45 rm -f %{BUILDROOT}/usr/share/zoneinfo/localtime