[Git][haskell-team/DHG_packages][master] 2 commits: Add tzdata

Scott Talbert (@swt2c) gitlab at salsa.debian.org
Mon Jun 20 00:31:31 BST 2022



Scott Talbert pushed to branch master at Debian Haskell Group / DHG_packages


Commits:
1c449dbe by Robert Greener at 2022-06-19T23:31:27+00:00
Add tzdata

- - - - -
4d1549fa by Scott Talbert at 2022-06-19T23:31:27+00:00
Merge branch 'add-tzdata' into 'master'

Add tzdata

See merge request haskell-team/DHG_packages!33
- - - - -


13 changed files:

- + p/haskell-tzdata/debian/changelog
- + p/haskell-tzdata/debian/compat
- + p/haskell-tzdata/debian/control
- + p/haskell-tzdata/debian/copyright
- + p/haskell-tzdata/debian/libghc-tzdata-dev.lintian-overrides
- + p/haskell-tzdata/debian/libghc-tzdata-prof.lintian-overrides
- + p/haskell-tzdata/debian/patches/series
- + p/haskell-tzdata/debian/patches/use-debian-tzdata
- + p/haskell-tzdata/debian/rules
- + p/haskell-tzdata/debian/source/format
- + p/haskell-tzdata/debian/source/lintian-overrides
- + p/haskell-tzdata/debian/upstream/metadata
- + p/haskell-tzdata/debian/watch


Changes:

=====================================
p/haskell-tzdata/debian/changelog
=====================================
@@ -0,0 +1,5 @@
+haskell-tzdata (0.2.20220315.0-1) unstable; urgency=low
+
+  * Initial release (Closes: #1012166)
+
+ -- Robert Greener <rob at robgreener.com>  Tue, 31 May 2022 07:40:17 +0100


=====================================
p/haskell-tzdata/debian/compat
=====================================
@@ -0,0 +1 @@
+10


=====================================
p/haskell-tzdata/debian/control
=====================================
@@ -0,0 +1,88 @@
+Source: haskell-tzdata
+Maintainer: Debian Haskell Group <pkg-haskell-maintainers at lists.alioth.debian.org>
+Uploaders: Robert Greener <rob at robgreener.com>
+Priority: optional
+Section: haskell
+Rules-Requires-Root: no
+Build-Depends: debhelper (>= 10),
+ haskell-devscripts-minimal | haskell-devscripts (>= 0.13),
+ cdbs,
+ ghc,
+ ghc-prof,
+ libghc-vector-dev (>= 0.9),
+ libghc-vector-dev (<< 0.13),
+ libghc-vector-prof,
+ libghc-hunit-dev (>= 1.2),
+ libghc-hunit-dev (<< 1.7),
+ libghc-hunit-prof,
+ libghc-tasty-dev,
+ libghc-tasty-prof,
+ libghc-tasty-hunit-dev,
+ libghc-tasty-hunit-prof,
+ libghc-tasty-th-dev,
+ libghc-tasty-th-prof,
+ tzdata,
+Build-Depends-Indep: ghc-doc,
+ libghc-vector-doc,
+Standards-Version: 4.6.0.1
+Homepage: https://github.com/ysangkok/haskell-tzdata
+Vcs-Browser: https://salsa.debian.org/haskell-team/DHG_packages/tree/master/p/haskell-tzdata
+Vcs-Git: https://salsa.debian.org/haskell-team/DHG_packages.git
+X-Description: Time zone database (as files and as a module)
+ The goal of this package is to distribute the standard Time Zone
+ Database in a cabal package, so that it can be used in Haskell
+ programs uniformly on all platforms.
+ .
+ This package currently ships the @2019c@ version of the time zone
+ database.  The version of the time zone database shipped is always
+ reflected in the version of this package: @x.y.YYYYMMDD.z@, then
+ @YYYYMMDD@ is the official release date of time zone database.
+ .
+ See: <http://www.iana.org/time-zones> for more info about the time
+ zone database.
+ .
+ See also the @tz@ package <http://hackage.haskell.org/package/tz> or
+ the @timezone-olson@ and @timezone-series@ packages that provide
+ facilities to /use/ the data shipped here. (The @tz@ package
+ automatically installs this package.)
+
+Package: libghc-tzdata-dev
+Architecture: any
+Depends: ${haskell:Depends},
+ ${misc:Depends},
+ ${shlibs:Depends},
+ tzdata,
+Recommends: ${haskell:Recommends},
+Suggests: ${haskell:Suggests},
+Conflicts: ${haskell:Conflicts},
+Provides: ${haskell:Provides},
+Description: ${haskell:ShortDescription}${haskell:ShortBlurb}
+ ${haskell:LongDescription}
+ .
+ ${haskell:Blurb}
+
+Package: libghc-tzdata-prof
+Architecture: any
+Depends: ${haskell:Depends},
+ ${misc:Depends},
+Recommends: ${haskell:Recommends},
+Suggests: ${haskell:Suggests},
+Conflicts: ${haskell:Conflicts},
+Provides: ${haskell:Provides},
+Description: ${haskell:ShortDescription}${haskell:ShortBlurb}
+ ${haskell:LongDescription}
+ .
+ ${haskell:Blurb}
+
+Package: libghc-tzdata-doc
+Architecture: all
+Section: doc
+Depends: ${haskell:Depends},
+ ${misc:Depends},
+Recommends: ${haskell:Recommends},
+Suggests: ${haskell:Suggests},
+Conflicts: ${haskell:Conflicts},
+Description: ${haskell:ShortDescription}${haskell:ShortBlurb}
+ ${haskell:LongDescription}
+ .
+ ${haskell:Blurb}


=====================================
p/haskell-tzdata/debian/copyright
=====================================
@@ -0,0 +1,15 @@
+Format: https://www.debian.org/doc/packaging-manuals/copyright-format/1.0/
+Upstream-Name: tzdata
+Upstream-Contact: Janus Troelsen <ysangkok at gmail.com>
+Source: https://hackage.haskell.org/package/tzdata
+
+Files: *
+Copyright: Copyright 2022 Mihaly Barasz, Gergely Risko, Janus Troelsen
+License: Apache
+
+Files: debian/*
+Copyright: held by the contributors mentioned in debian/changelog
+License: Apache
+
+License: Apache
+  See /usr/share/common-licenses/Apache-2.0


=====================================
p/haskell-tzdata/debian/libghc-tzdata-dev.lintian-overrides
=====================================
@@ -0,0 +1,4 @@
+# This is intended
+custom-library-search-path
+# This is intended
+repeated-path-segment


=====================================
p/haskell-tzdata/debian/libghc-tzdata-prof.lintian-overrides
=====================================
@@ -0,0 +1,2 @@
+# This is intended
+repeated-path-segment


=====================================
p/haskell-tzdata/debian/patches/series
=====================================
@@ -0,0 +1 @@
+use-debian-tzdata


=====================================
p/haskell-tzdata/debian/patches/use-debian-tzdata
=====================================
@@ -0,0 +1,36 @@
+Use tzdata from the tzdata debian package
+
+Index: haskell-tzdata/Data/Time/Zones/Files.hs
+===================================================================
+--- haskell-tzdata.orig/Data/Time/Zones/Files.hs
++++ haskell-tzdata/Data/Time/Zones/Files.hs
+@@ -10,13 +10,10 @@ module Data.Time.Zones.Files (
+   timeZonePathFromDB,
+   ) where
+ 
+-import Paths_tzdata
+-
+ -- | Return the file path corresponding to a time zone location.
+ --
+ -- Note: doesn't check whether the location is valid (ie. the returned
+ -- path might not exist).
+ timeZonePathFromDB :: String -> IO FilePath
+ timeZonePathFromDB tzName =
+-  -- TODO(klao): this probably won't work on Windows.
+-  getDataFileName $ tzName ++ ".zone"
++  return ("/usr/share/zoneinfo/" ++ tzName)
+Index: haskell-tzdata/tzdata.cabal
+===================================================================
+--- haskell-tzdata.orig/tzdata.cabal
++++ haskell-tzdata/tzdata.cabal
+@@ -33,10 +33,6 @@ Description:
+   facilities to /use/ the data shipped here. (The @tz@ package
+   automatically installs this package.)
+ 
+-Data-Dir: tzdata
+--- We have to explicitly list all the directories because of Cabal's limitations.
+-Data-Files: *.tab *.zone Chile/*.zone Etc/*.zone Canada/*.zone Indian/*.zone Africa/*.zone Asia/*.zone Antarctica/*.zone Europe/*.zone America/*.zone America/Kentucky/*.zone America/North_Dakota/*.zone America/Argentina/*.zone America/Indiana/*.zone Mexico/*.zone Brazil/*.zone Atlantic/*.zone Arctic/*.zone Australia/*.zone Pacific/*.zone US/*.zone
+-
+ Extra-Source-Files:
+   README.md
+   Data/Time/Zones/DB.hs.template


=====================================
p/haskell-tzdata/debian/rules
=====================================
@@ -0,0 +1,15 @@
+#!/usr/bin/make -f
+
+DEB_ENABLE_TESTS = yes
+DEB_SETUP_BIN_NAME = debian/hlibrary.setup
+DEB_CABAL_PACKAGE = tzdata
+DEB_DEFAULT_COMPILER = ghc
+
+export DEB_BUILD_MAINT_OPTIONS = hardening=+all
+DPKG_EXPORT_BUILDFLAGS = 1
+include /usr/share/dpkg/buildflags.mk
+
+include /usr/share/cdbs/1/rules/debhelper.mk
+include /usr/share/cdbs/1/class/hlibrary.mk
+
+build/haskell-tzdata-utils:: build-ghc-stamp


=====================================
p/haskell-tzdata/debian/source/format
=====================================
@@ -0,0 +1 @@
+3.0 (quilt)


=====================================
p/haskell-tzdata/debian/source/lintian-overrides
=====================================
@@ -0,0 +1,6 @@
+# This is intended
+very-long-line-length-in-source-file
+# Not possible to upgrade with haskell-devscripts
+package-uses-old-debhelper-compat-version
+# No GPG on hackage
+debian-watch-does-not-check-gpg-signature


=====================================
p/haskell-tzdata/debian/upstream/metadata
=====================================
@@ -0,0 +1,6 @@
+Archive: Hackage
+Bug-Database: https://github.com/nilcons/haskell-tzdata/issues
+Bug-Submit: https://github.com/nilcons/haskell-tzdata/issues/new
+Documentation: https://hackage.haskell.org/package/tzdata/docs
+Repository: https://github.com/nilcons/haskell-tzdata.git
+Repository-Browse: https://github.com/nilcons/haskell-tzdata


=====================================
p/haskell-tzdata/debian/watch
=====================================
@@ -0,0 +1,2 @@
+version=4
+https://hackage.haskell.org/package/tzdata/distro-monitor .*-([0-9\.]+)\.(?:zip|tgz|tbz|txz|(?:tar\.(?:gz|bz2|xz)))



View it on GitLab: https://salsa.debian.org/haskell-team/DHG_packages/-/compare/6b747d7b753770f1b341870a57d24d57a82aa581...4d1549fae83a304f4e1629dff70564c98716ea19

-- 
View it on GitLab: https://salsa.debian.org/haskell-team/DHG_packages/-/compare/6b747d7b753770f1b341870a57d24d57a82aa581...4d1549fae83a304f4e1629dff70564c98716ea19
You're receiving this email because of your account on salsa.debian.org.


-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://alioth-lists.debian.net/pipermail/pkg-haskell-commits/attachments/20220619/82010a2f/attachment-0001.htm>


More information about the Pkg-haskell-commits mailing list