]> git.ipfire.org Git - ipfire-3.x.git/blob - tzdata/tzdata.nm
Merge remote-tracking branch 'maniacikarus/ids'
[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 = 2011n
7 tzcode_version = 2011i
8
9 name = tzdata
10 version = %{tzdata_version}
11 release = 1
12 arch = noarch
13
14 groups = System/Base
15 url = ftp://munnari.oz.au/pub/
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 += ftp://elsie.nci.nih.gov/pub/
25 sources = tzdata-base-0.tar.bz2 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
34
35 prepare
36 %{MACRO_EXTRACT} %{DIR_DL}/tzdata-base-0.tar.bz2
37 cd %{DIR_APP}
38
39 mkdir tzdata%{tzdata_version} tzcode%{tzcode_version}
40 %{MACRO_EXTRACT} %{DIR_DL}/tzdata%{tzdata_version}.tar.gz -C tzdata%{tzdata_version}
41 %{MACRO_EXTRACT} %{DIR_DL}/tzcode%{tzcode_version}.tar.gz -C tzcode%{tzcode_version}
42
43 sed -e 's|@objpfx@|'`pwd`'/obj/|' \
44 -e 's|@datadir@|/usr/share|' \
45 -e 's|@install_root@|%{BUILDROOT}|' \
46 Makeconfig.in > Makeconfig
47 end
48
49 #test
50 # make check
51 #end
52 end
53
54 packages
55 package %{name}
56 end