]> git.ipfire.org Git - people/ms/ipfire-3.x.git/blob - tzdata/tzdata.nm
tzdata: Update to 2014j
[people/ms/ipfire-3.x.git] / tzdata / tzdata.nm
1 ###############################################################################
2 # IPFire.org - An Open Source Firewall Solution #
3 # Copyright (C) - IPFire Development Team <info@ipfire.org> #
4 ###############################################################################
5
6 tzdata_version = 2014j
7 tzcode_version = 2014j
8
9 name = tzdata
10 version = %{tzdata_version}
11 release = 1
12 arch = noarch
13
14 groups = System/Base
15 url = http://www.iana.org/time-zones
16 license = Public Domain
17 summary = Timezone data.
18
19 description
20 This package contains data files with rules for various timezones around
21 the world.
22 end
23
24 source_dl += http://www.iana.org/time-zones/repository/releases/
25 sources = tzdata%{tzdata_version}.tar.gz tzcode%{tzcode_version}.tar.gz
26
27 build
28 requires
29 gawk
30 perl
31 end
32
33 DIR_APP = %{DIR_SRC}/tzdata%{tzdata_version}
34
35 prepare
36 mkdir -pv %{DIR_APP}
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}
39 end
40
41 files = \
42 africa \
43 antarctica \
44 asia \
45 australasia \
46 europe \
47 northamerica \
48 southamerica \
49 pacificnew \
50 etcetera \
51 backward
52
53 build
54 mkdir -pv zoneinfo/{,posix,right}
55
56 zic -y ./yearistype -d zoneinfo \
57 -L /dev/null -p GMT %{files}
58 zic -y ./yearistype -d zoneinfo/posix \
59 -L /dev/null %{files}
60 zic -y ./yearistype -d zoneinfo/right \
61 -L leapseconds %{files}
62 end
63
64 install
65 mkdir -pv %{BUILDROOT}%{datadir}/zoneinfo
66 cp -prd zoneinfo %{BUILDROOT}%{datadir}/zoneinfo
67
68 install -p -m 644 zone.tab iso3166.tab \
69 %{BUILDROOT}%{datadir}/zoneinfo
70 rm -f %{BUILDROOT}/usr/share/zoneinfo/localtime
71 end
72 end
73
74 packages
75 package %{name}
76 end