]>
Commit | Line | Data |
---|---|---|
8e66c671 MT |
1 | ############################################################################### |
2 | # IPFire.org - An Open Source Firewall Solution # | |
3 | # Copyright (C) - IPFire Development Team <info@ipfire.org> # | |
4 | ############################################################################### | |
5 | ||
771aef5d MT |
6 | tzdata_version = 2014j |
7 | tzcode_version = 2014j | |
8e66c671 MT |
8 | |
9 | name = tzdata | |
10 | version = %{tzdata_version} | |
11 | release = 1 | |
12 | arch = noarch | |
13 | ||
14 | groups = System/Base | |
db15e530 | 15 | url = http://www.iana.org/time-zones |
8e66c671 MT |
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 | ||
db15e530 TE |
24 | source_dl += http://www.iana.org/time-zones/repository/releases/ |
25 | sources = tzdata%{tzdata_version}.tar.gz tzcode%{tzcode_version}.tar.gz | |
8e66c671 MT |
26 | |
27 | build | |
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 MT |
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 | |
db15e530 TE |
70 | rm -f %{BUILDROOT}/usr/share/zoneinfo/localtime |
71 | end | |
8e66c671 MT |
72 | end |
73 | ||
74 | packages | |
75 | package %{name} | |
76 | end |