On Wed, Mar 16, 2016 at 1:23 AM, Clint Adams <clint@debian.org> wrote: > You can push it to master and we'll take a look.
I'm not a DD or DM, so I don't believe I have access to do so. For now, I've attached the patch generated by `git format-patch origin/master` below.
> We would translate something like >
>
base16-bytestring >= 0.1.1.6 && < 0.2 >
>
to
> >
libghc-base16-bytestring-dev (>= 0.1.1.6), >
libghc-base16-bytestring-dev (<< 0.2),
Thanks for the explanation, I've updated my patch with the upper bounds.
> You'll need -prof packages matching each -dev dependency corresponding to >
a library (and not if it's just used in a binary or a testsuite).
Okay.
> You may wish to install the pkg-haskell-tools package (which will pull >
in cabal-debian as a dependency) so you need to do less by hand.
> >
This looks like it's partially out of date, but > https://wiki.debian.org/Haskell/CollabMaint/GettingStarted
Awesome, thank you! I'm sure I've seen this at some point, but had forgotten. Obviously, `cabal-debian --official` is much easier than tweaking everything by hand. I've updated my patch per cabal-debian as well.
I bumped the standards version to 3.9.7, listed you under uploaders, and verified that it built on unstable via `sbuild`.
Regards,
Justin
From ba9193eb0c18b247a4355cc8af9f97e21ebe3e96 Mon Sep 17 00:00:00 2001 From: Justin Geibel <jtgeibel@gmail.com> Date: Tue, 15 Mar 2016 20:31:04 -0400 Subject: [PATCH] Initial packaging of http-media-0.6.3
diff --git a/p/haskell-http-media/debian/changelog b/p/haskell-http-media/debian/changelog new file mode 100644 index 0000000..7726718 --- /dev/null +++ b/p/haskell-http-media/debian/changelog @@ -0,0 +1,5 @@ +haskell-http-media (0.6.3-1) UNRELEASED; urgency=low + + * Initial release + + -- Justin Geibel <jtgeibel@gmail.com> Wed, 16 Mar 2016 21:45:02 -0400 diff --git a/p/haskell-http-media/debian/compat b/p/haskell-http-media/debian/compat new file mode 100644 index 0000000..ec63514 --- /dev/null +++ b/p/haskell-http-media/debian/compat @@ -0,0 +1 @@ +9 diff --git a/p/haskell-http-media/debian/control b/p/haskell-http-media/debian/control new file mode 100644 index 0000000..a263e7e --- /dev/null +++ b/p/haskell-http-media/debian/control @@ -0,0 +1,91 @@ +Source: haskell-http-media +Maintainer: Debian Haskell Group <pkg-haskell-maintainers@lists.alioth.debian.org> +Uploaders: Clint Adams <clint@debian.org> +Priority: extra +Section: haskell +Build-Depends: debhelper (>= 9), + haskell-devscripts (>= 0.9), + cdbs, + ghc, + ghc-prof, + libghc-case-insensitive-dev (>= 1.0), + libghc-case-insensitive-dev (<< 1.3), + libghc-case-insensitive-prof, + libghc-quickcheck2-dev (>= 2.6), + libghc-quickcheck2-dev (<< 2.9), + libghc-test-framework-dev (>= 0.8), + libghc-test-framework-dev (<< 0.9), + libghc-test-framework-quickcheck2-dev (>= 0.3), + libghc-test-framework-quickcheck2-dev (<< 0.4), +Build-Depends-Indep: ghc-doc, + libghc-case-insensitive-doc, +Standards-Version: 3.9.7 +Homepage: https://github.com/zmthy/http-media +Vcs-Browser: https://anonscm.debian.org/cgit/pkg-haskell/DHG_packages.git/tree/p/haskell-http-media +Vcs-Git: git://git.debian.org/git/pkg-haskell/DHG_packages.git +X-Description: Processing HTTP Content-Type and Accept headers + This library is intended to be a comprehensive solution to parsing and + selecting quality-indexed values in HTTP headers. It is capable of parsing + both media types and language parameters from the Accept and Content header + families, and can be extended to match against other accept headers as well. + Selecting the appropriate header value is achieved by comparing a list of + server options against the quality-indexed values supplied by the client. + . + In the following example, the Accept header is parsed and then matched against + a list of server options to serve the appropriate media using + 'mapAcceptMedia': + . + > getHeader >>= maybe send406Error sendResourceWith . mapAcceptMedia + > [ ("text/html", asHtml) + > , ("application/json", asJson) + > ] + . + Similarly, the Content-Type header can be used to produce a parser for request + bodies based on the given content type with 'mapContentMedia': + . + > getContentType >>= maybe send415Error readRequestBodyWith . mapContentMedia + > [ ("application/json", parseJson) + > , ("text/plain", parseText) + > ] + . + The API is agnostic to your choice of server. + +Package: libghc-http-media-dev +Architecture: any +Depends: ${haskell:Depends}, + ${misc:Depends}, + ${shlibs:Depends}, +Recommends: ${haskell:Recommends}, +Suggests: ${haskell:Suggests}, +Conflicts: ${haskell:Conflicts}, +Provides: ${haskell:Provides}, +Description: ${haskell:ShortDescription}${haskell:ShortBlurb} + ${haskell:LongDescription} + . + ${haskell:Blurb} + +Package: libghc-http-media-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-http-media-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} diff --git a/p/haskell-http-media/debian/copyright b/p/haskell-http-media/debian/copyright new file mode 100644 index 0000000..191c97e --- /dev/null +++ b/p/haskell-http-media/debian/copyright @@ -0,0 +1,31 @@ +Format: http://www.debian.org/doc/packaging-manuals/copyright-format/1.0/ +Upstream-Name: http-media +Upstream-Contact: Timothy Jones <git@zmthy.io> +Source: https://hackage.haskell.org/package/http-media + +Files: * +Copyright: (c) 2012-2015 Timothy Jones +License: MIT + +Files: debian/* +Copyright: held by the contributors mentioned in debian/changelog +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/p/haskell-http-media/debian/rules b/p/haskell-http-media/debian/rules new file mode 100755 index 0000000..6b567bd --- /dev/null +++ b/p/haskell-http-media/debian/rules @@ -0,0 +1,8 @@ +#!/usr/bin/make -f + +DEB_ENABLE_TESTS = yes +DEB_CABAL_PACKAGE = http-media +DEB_DEFAULT_COMPILER = ghc + +include /usr/share/cdbs/1/rules/debhelper.mk +include /usr/share/cdbs/1/class/hlibrary.mk diff --git a/p/haskell-http-media/debian/source/format b/p/haskell-http-media/debian/source/format new file mode 100644 index 0000000..163aaf8 --- /dev/null +++ b/p/haskell-http-media/debian/source/format @@ -0,0 +1 @@ +3.0 (quilt) diff --git a/p/haskell-http-media/debian/watch b/p/haskell-http-media/debian/watch new file mode 100644 index 0000000..2cb11fb --- /dev/null +++ b/p/haskell-http-media/debian/watch @@ -0,0 +1,2 @@ +version=3 +http://hackage.haskell.org/package/http-media/distro-monitor .*-([0-9\.]+)\.(?:zip|tgz|tbz|txz|(?:tar\.(?:gz|bz2|xz))) -- 2.7.0