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}
37 %{MACRO_EXTRACT} %{DIR_DL}/tzcode%{tzcode_version}.tar.gz -C %{DIR_APP}
38 %{MACRO_EXTRACT} %{DIR_DL}/tzdata%{tzdata_version}.tar.gz -C %{DIR_APP}
54 mkdir -pv zoneinfo/{,posix,right}
56 zic -y ./yearistype -d zoneinfo \
57 -L /dev/null -p GMT %{files}
58 zic -y ./yearistype -d zoneinfo/posix \
60 zic -y ./yearistype -d zoneinfo/right \
61 -L leapseconds %{files}
65 mkdir -pv %{BUILDROOT}%{datadir}/zoneinfo
66 cp -prd zoneinfo/* %{BUILDROOT}%{datadir}/zoneinfo
68 install -p -m 644 zone.tab iso3166.tab \
69 %{BUILDROOT}%{datadir}/zoneinfo
70 rm -f %{BUILDROOT}/usr/share/zoneinfo/localtime