]> git.ipfire.org Git - ipfire-3.x.git/blame - tzdata/tzdata.nm
tzdata: Update to 2019b
[ipfire-3.x.git] / tzdata / tzdata.nm
CommitLineData
8e66c671
MT
1###############################################################################
2# IPFire.org - An Open Source Firewall Solution #
3# Copyright (C) - IPFire Development Team <info@ipfire.org> #
4###############################################################################
5
98d86f51
MT
6tzdata_version = 2019b
7tzcode_version = 2019b
8e66c671
MT
8
9name = tzdata
10version = %{tzdata_version}
550b132f 11release = 1
8e66c671
MT
12arch = noarch
13
14groups = System/Base
0478b1e6 15url = https://www.iana.org/time-zones
8e66c671
MT
16license = Public Domain
17summary = Timezone data.
18
19description
20 This package contains data files with rules for various timezones around
21 the world.
22end
23
0478b1e6 24source_dl += https://www.iana.org/time-zones/repository/releases/
db15e530 25sources = tzdata%{tzdata_version}.tar.gz tzcode%{tzcode_version}.tar.gz
8e66c671
MT
26
27build
28 requires
29 gawk
30 perl
31 end
32
db15e530 33 DIR_APP = %{DIR_SRC}/tzdata%{tzdata_version}
8e66c671
MT
34
35 prepare
771aef5d
MT
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}
8e66c671 39 end
771aef5d
MT
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
db15e530 64 install
771aef5d 65 mkdir -pv %{BUILDROOT}%{datadir}/zoneinfo
11893672 66 cp -prd zoneinfo/* %{BUILDROOT}%{datadir}/zoneinfo
771aef5d
MT
67
68 install -p -m 644 zone.tab iso3166.tab \
69 %{BUILDROOT}%{datadir}/zoneinfo
db15e530
TE
70 rm -f %{BUILDROOT}/usr/share/zoneinfo/localtime
71 end
8e66c671
MT
72end
73
74packages
75 package %{name}
76end