]>
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 | ||
73a6884a AB |
6 | tzdata_version = 2023c |
7 | tzcode_version = 2023c | |
8e66c671 MT |
8 | |
9 | name = tzdata | |
10 | version = %{tzdata_version} | |
73a6884a | 11 | release = 1 |
90d87334 | 12 | thisapp = tzdb-%{version} |
8e66c671 MT |
13 | |
14 | groups = System/Base | |
0478b1e6 | 15 | url = https://www.iana.org/time-zones |
8e66c671 | 16 | license = Public Domain |
90d87334 | 17 | summary = Timezone data |
8e66c671 MT |
18 | |
19 | description | |
20 | This package contains data files with rules for various timezones around | |
21 | the world. | |
22 | end | |
23 | ||
90d87334 MT |
24 | source_dl = https://www.iana.org/time-zones/repository/releases/ |
25 | sources = %{thisapp}.tar.lz | |
8e66c671 MT |
26 | |
27 | build | |
28 | requires | |
29 | gawk | |
30 | perl | |
31 | end | |
32 | ||
90d87334 MT |
33 | make_build_targets += \ |
34 | CFLAGS="%{CFLAGS}" LDFLAGS="%{LDFLAGS}" | |
8e66c671 | 35 | |
90d87334 MT |
36 | make_install_targets += \ |
37 | BINDIR=%{bindir} LIBDIR=%{libdir} MANDIR=%{mandir} | |
771aef5d | 38 | |
90d87334 | 39 | timezones = \ |
771aef5d MT |
40 | africa \ |
41 | antarctica \ | |
42 | asia \ | |
43 | australasia \ | |
44 | europe \ | |
45 | northamerica \ | |
46 | southamerica \ | |
771aef5d | 47 | etcetera \ |
90d87334 MT |
48 | backward \ |
49 | factory | |
771aef5d | 50 | |
90d87334 MT |
51 | install_cmds |
52 | ./zic -b fat -d "%{BUILDROOT}%{datadir}/zoneinfo" %{timezones} | |
53 | ./zic -b fat -d "%{BUILDROOT}%{datadir}/zoneinfo/posix" %{timezones} | |
54 | ./zic -b fat -d "%{BUILDROOT}%{datadir}/zoneinfo/right" -L leapseconds %{timezones} | |
771aef5d | 55 | |
90d87334 MT |
56 | # This creates the posixrules file. |
57 | # We use New York because POSIX requires the daylight savings time rules to be | |
58 | # in accordance with US rules. | |
59 | ./zic -b fat -d "%{BUILDROOT}%{datadir}/zoneinfo" -p America/New_York | |
771aef5d | 60 | |
90d87334 MT |
61 | install -v -m 644 iso3166.tab leap-seconds.list zone1970.tab zone.tab SECURITY \ |
62 | "%{BUILDROOT}%{datadir}/zoneinfo" | |
771aef5d | 63 | |
90d87334 | 64 | rm -vf "%{BUILDROOT}%{sysconfdir}/localtime" |
db15e530 | 65 | end |
8e66c671 MT |
66 | end |
67 | ||
68 | packages | |
69 | package %{name} | |
90d87334 MT |
70 | |
71 | package %{name}-debuginfo | |
72 | template DEBUGINFO | |
73 | end | |
8e66c671 | 74 | end |