]> git.ipfire.org Git - ipfire-3.x.git/blame - tzdata/tzdata.nm
json-c: Update to version 0.17-20230812
[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
73a6884a
AB
6tzdata_version = 2023c
7tzcode_version = 2023c
8e66c671
MT
8
9name = tzdata
10version = %{tzdata_version}
73a6884a 11release = 1
90d87334 12thisapp = tzdb-%{version}
8e66c671
MT
13
14groups = System/Base
0478b1e6 15url = https://www.iana.org/time-zones
8e66c671 16license = Public Domain
90d87334 17summary = Timezone data
8e66c671
MT
18
19description
20 This package contains data files with rules for various timezones around
21 the world.
22end
23
90d87334
MT
24source_dl = https://www.iana.org/time-zones/repository/releases/
25sources = %{thisapp}.tar.lz
8e66c671
MT
26
27build
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
66end
67
68packages
69 package %{name}
90d87334
MT
70
71 package %{name}-debuginfo
72 template DEBUGINFO
73 end
8e66c671 74end