summaryrefslogtreecommitdiffstats
path: root/debian
diff options
context:
space:
mode:
authorDaniel Baumann <daniel.baumann@progress-linux.org>2021-02-07 07:50:51 +0000
committerDaniel Baumann <daniel.baumann@progress-linux.org>2021-02-07 07:59:38 +0000
commit2e64e80ff48ee640f07f2a858526cf773422a0ec (patch)
tree95fbc49224cda96125de378dcf294eaa096b24a8 /debian
parentAdding upstream version 2020.1+dfsg. (diff)
downloadpytzdata-2e64e80ff48ee640f07f2a858526cf773422a0ec.tar.xz
pytzdata-2e64e80ff48ee640f07f2a858526cf773422a0ec.zip
Adding debian version 2020.1+dfsg-1.debian/2020.1+dfsg-1
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
Diffstat (limited to 'debian')
-rw-r--r--debian/changelog9
-rw-r--r--debian/control23
-rw-r--r--debian/copyright32
-rw-r--r--debian/patches/debian/0001-zoneinfo-directory.patch18
-rw-r--r--debian/patches/series1
-rwxr-xr-xdebian/rules9
-rw-r--r--debian/source/format1
-rw-r--r--debian/watch3
8 files changed, 96 insertions, 0 deletions
diff --git a/debian/changelog b/debian/changelog
new file mode 100644
index 0000000..7b5ee91
--- /dev/null
+++ b/debian/changelog
@@ -0,0 +1,9 @@
+pytzdata (2020.1+dfsg-1) sid; urgency=medium
+
+ * Initial upload to sid (Closes: #982178),
+ required for pgcli (#972598) which moved from humanize to pendulum
+ (which in turn requires pytzdata).
+ * Removed embedded timezone database (zoneinfo) copy and adding patch
+ to use the one from the system by default.
+
+ -- Daniel Baumann <daniel.baumann@progress-linux.org> Sun, 07 Feb 2021 07:19:40 +0100
diff --git a/debian/control b/debian/control
new file mode 100644
index 0000000..1480cc4
--- /dev/null
+++ b/debian/control
@@ -0,0 +1,23 @@
+Source: pytzdata
+Section: python
+Priority: optional
+Maintainer: Daniel Baumann <daniel.baumann@progress-linux.org>
+Build-Depends:
+ debhelper-compat (= 13),
+ dh-python,
+ python3-all-dev,
+ python3-setuptools,
+Rules-Requires-Root: no
+Standards-Version: 4.5.1
+Homepage: https://github.com/sdispater/pytzdata
+Vcs-Browser: https://git.progress-linux.org/users/daniel.baumann/debian/packages/pytzdata
+Vcs-Git: https://git.progress-linux.org/users/daniel.baumann/debian/packages/pytzdata
+
+Package: python3-pytzdata
+Section: python
+Architecture: all
+Depends:
+ ${misc:Depends},
+ ${python3:Depends},
+Description: timezone database for Python
+ pytzdata provides functions to access timezone database files.
diff --git a/debian/copyright b/debian/copyright
new file mode 100644
index 0000000..999a304
--- /dev/null
+++ b/debian/copyright
@@ -0,0 +1,32 @@
+Format: https://www.debian.org/doc/packaging-manuals/copyright-format/1.0/
+Upstream-Name: pytzdata
+Upstream-Contact: Sébastien Eustace <sebastien@eustace.io>
+Source: https://github.com/sdispater/pytzdata/releases
+Files-excluded: pytzdata/zoneinfo
+
+Files: *
+Copyright: 2016-2020 Sébastien Eustace <sebastien@eustace.io>
+License: MIT
+
+Files: debian/*
+Copyright: 2021 Daniel Baumann <daniel.baumann@progress-linux.org>
+License: MIT
+
+License: MIT
+ Permission is hereby granted, free of charge, to any person obtaining a copy
+ of this software and associated documentation files (the "Software"), to deal
+ in the Software without restriction, including without limitation the rights
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
+ copies of the Software, and to permit persons to whom the Software is
+ furnished to do so, subject to the following conditions:
+ .
+ The above copyright notice and this permission notice shall be included in
+ all copies or substantial portions of the Software.
+ .
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
+ THE SOFTWARE.
diff --git a/debian/patches/debian/0001-zoneinfo-directory.patch b/debian/patches/debian/0001-zoneinfo-directory.patch
new file mode 100644
index 0000000..cfc60a1
--- /dev/null
+++ b/debian/patches/debian/0001-zoneinfo-directory.patch
@@ -0,0 +1,18 @@
+Author: Daniel Baumann <daniel.baumann@progress-linux.org>
+Description: Using system zoneinfo by default.
+
+diff -Naurp pytzdata.orig/pytzdata/__init__.py pytzdata/pytzdata/__init__.py
+--- pytzdata.orig/pytzdata/__init__.py
++++ pytzdata/pytzdata/__init__.py
+@@ -7,10 +7,7 @@ from ._timezones import timezones
+ from ._compat import FileNotFoundError
+
+
+-DEFAULT_DIRECTORY = os.path.join(
+- os.path.dirname(__file__),
+- 'zoneinfo'
+-)
++DEFAULT_DIRECTORY = '/usr/share/zoneinfo'
+
+ _DIRECTORY = os.getenv('PYTZDATA_TZDATADIR', DEFAULT_DIRECTORY)
+
diff --git a/debian/patches/series b/debian/patches/series
new file mode 100644
index 0000000..3345740
--- /dev/null
+++ b/debian/patches/series
@@ -0,0 +1 @@
+debian/0001-zoneinfo-directory.patch
diff --git a/debian/rules b/debian/rules
new file mode 100755
index 0000000..5c12d4d
--- /dev/null
+++ b/debian/rules
@@ -0,0 +1,9 @@
+#!/usr/bin/make -f
+
+export PYBUILD_NAME=pytzdata
+
+upstream:
+ rm -rf pytzdata/zoneinfo
+
+%:
+ dh ${@} --buildsystem=pybuild --with python3
diff --git a/debian/source/format b/debian/source/format
new file mode 100644
index 0000000..163aaf8
--- /dev/null
+++ b/debian/source/format
@@ -0,0 +1 @@
+3.0 (quilt)
diff --git a/debian/watch b/debian/watch
new file mode 100644
index 0000000..68f6e2b
--- /dev/null
+++ b/debian/watch
@@ -0,0 +1,3 @@
+version=4
+opts=filenamemangle=s/.+\/v?(\d\S+)\.tar\.gz/pytzdata-$1\.tar\.gz/ \
+https://github.com/sdispater/pytzdata/releases .*/v?(\d\S+)\.tar\.gz