Debian Codegraph @

debian/README.source

raw
1 What is odd about this package
2 -------------------------------
3 This package exposes the Olson timezone database to Perl.
4 Almost always there is a one to one correspondence between
5 the upstream Perl version number and the Olson database version
6 number. And usually the Debian version number just tracks the
7 upstream version number. Occasionally however
8 it is necessary to update the module directly from
9 the Olson database. In order to facilitate this
10 we include the Olson database version number in the
11 Debian version number.
12
13 For example the upstream version 1.29 corresponds to the Olson
14 database version number 2011c. So the Debian version number of the first
15 (and hopefull only) package is 1:1.29-1+2011c .
16
17 How to update this package *normally*
18 -------------------------------------
19 * Use your favourite git tools as you would for any other package.
20 * Stick the Olson version number in the Debian version as demonstrated
21 for older versions in the Debian changelog.
22 * In the Debian changelog amend the 'New upstream release' comment
23 to mention the Olson database version number.
24
25 How to work out what the olson database version is/should be
26 ------------------------------------------------------------
27 * Every time zone module (i.e. anything below DateTime/TimeZone)
28 has an 'olson_version' method that will return what the olson
29 database version in our code is.
30 * To see the actual current Olsdon database version number see
31 ftp://ftp.iana.org/tz/releases/. Look for the tarfile which will
32 have the version number embedded in its name.
33
34 How to update the time zone database
35 ------------------------------------
36 1. Change package version number and db version number, e.g. 0.68-2+2007x
37 2. Make sure that you have the Locale::Country module installed. It's in
38 perl-modules 5.12 (deprecated in 5.28, removed in 5.30) and in
39 liblocale-codes-perl.
40 3. The steps below will modify the upstream source so you need to be familiar
41 with quilt. Create a quilt patch that includes every file in the
42 lib/DateTime/TimeZone/ directory.
43 4. Call script: debian/tools/update-tzdata.sh
44 5. Refresh the patch and add the appropriate headers and continue.