1
0

Accepting request 607820 from devel:languages:haskell

Update ghc-http-client to the latest version.

OBS-URL: https://build.opensuse.org/request/show/607820
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/ghc-http-client?expand=0&rev=25
This commit is contained in:
Dominique Leuenberger 2018-05-30 10:09:45 +00:00 committed by Git OBS Bridge
commit 0fed81e1ad
5 changed files with 167 additions and 7 deletions

View File

@ -1,3 +1,22 @@
-------------------------------------------------------------------
Mon May 14 17:02:11 UTC 2018 - psimons@suse.com
- Update http-client to version 0.5.12.1 revision 1.
* Make the chunked transfer-encoding detection case insensitive
[#303](https://github.com/snoyberg/http-client/pull/303)
* Remove some unneeded language extensions
* Mark older versions of GHC as unsupported
* Added `requestFromURI` and `requestFromURI_` functions.
* Fixed non-TLS connections going though proxy [#337](https://github.com/snoyberg/http-client/issues/337)
* Replaced `base64-bytestring` dependency with `memory`.
* New function to partial escape query strings
* Add `Semigroup` instances for GHC 8.4 [#320](https://github.com/snoyberg/http-client/pull/320)
* Switch to the new STM-based manager
[#254](https://github.com/snoyberg/http-client/pull/254)
* Redact sensitive headers [#318](https://github.com/snoyberg/http-client/pull/318)
* Code cleanup/delete dead code
* Compat with Win32 2.6 [#309](https://github.com/snoyberg/http-client/issues/309)
-------------------------------------------------------------------
Thu Aug 3 15:38:38 UTC 2017 - psimons@suse.com

View File

@ -1,7 +1,7 @@
#
# spec file for package ghc-http-client
#
# Copyright (c) 2017 SUSE LINUX GmbH, Nuernberg, Germany.
# Copyright (c) 2018 SUSE LINUX GmbH, Nuernberg, Germany.
#
# All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed
@ -19,16 +19,16 @@
%global pkg_name http-client
%bcond_with tests
Name: ghc-%{pkg_name}
Version: 0.5.7.0
Version: 0.5.12.1
Release: 0
Summary: An HTTP client engine
License: MIT
Group: Development/Libraries/Haskell
URL: https://hackage.haskell.org/package/%{pkg_name}
Source0: https://hackage.haskell.org/package/%{pkg_name}-%{version}/%{pkg_name}-%{version}.tar.gz
Source1: https://hackage.haskell.org/package/%{pkg_name}-%{version}/revision/1.cabal#/%{pkg_name}.cabal
BuildRequires: ghc-Cabal-devel
BuildRequires: ghc-array-devel
BuildRequires: ghc-base64-bytestring-devel
BuildRequires: ghc-blaze-builder-devel
BuildRequires: ghc-bytestring-devel
BuildRequires: ghc-case-insensitive-devel
@ -38,11 +38,13 @@ BuildRequires: ghc-deepseq-devel
BuildRequires: ghc-exceptions-devel
BuildRequires: ghc-filepath-devel
BuildRequires: ghc-http-types-devel
BuildRequires: ghc-memory-devel
BuildRequires: ghc-mime-types-devel
BuildRequires: ghc-network-devel
BuildRequires: ghc-network-uri-devel
BuildRequires: ghc-random-devel
BuildRequires: ghc-rpm-macros
BuildRequires: ghc-stm-devel
BuildRequires: ghc-streaming-commons-devel
BuildRequires: ghc-text-devel
BuildRequires: ghc-time-devel
@ -72,6 +74,7 @@ This package provides the Haskell %{pkg_name} library development files.
%prep
%setup -q -n %{pkg_name}-%{version}
cp -p %{SOURCE1} %{pkg_name}.cabal
%build
%ghc_lib_build
@ -89,7 +92,7 @@ This package provides the Haskell %{pkg_name} library development files.
%ghc_pkg_recache
%files -f %{name}.files
%doc LICENSE
%license LICENSE
%files devel -f %{name}-devel.files
%doc ChangeLog.md README.md

View File

@ -0,0 +1,3 @@
version https://git-lfs.github.com/spec/v1
oid sha256:4b5116324d217f0498d258d37135a52f3e69103d3a951b0999618b263c9bd63e
size 87578

View File

@ -1,3 +0,0 @@
version https://git-lfs.github.com/spec/v1
oid sha256:e241eac22c55cd851de534b9d84149702a8b3990d10afc282bd6955df550ffa3
size 86010

138
http-client.cabal Normal file
View File

@ -0,0 +1,138 @@
name: http-client
version: 0.5.12.1
x-revision: 1
synopsis: An HTTP client engine
description: Hackage documentation generation is not reliable. For up to date documentation, please see: <http://www.stackage.org/package/http-client>.
homepage: https://github.com/snoyberg/http-client
license: MIT
license-file: LICENSE
author: Michael Snoyman
maintainer: michael@snoyman.com
category: Network
build-type: Simple
extra-source-files: README.md ChangeLog.md
cabal-version: >=1.10
flag network-uri
description: Get Network.URI from the network-uri package
default: True
library
hs-source-dirs: ., publicsuffixlist
exposed-modules: Network.HTTP.Client
Network.HTTP.Client.MultipartFormData
Network.HTTP.Client.Internal
other-modules: Network.HTTP.Client.Body
Network.HTTP.Client.Connection
Network.HTTP.Client.Cookies
Network.HTTP.Client.Core
Network.HTTP.Client.Headers
Network.HTTP.Client.Manager
Network.HTTP.Client.Request
Network.HTTP.Client.Response
Network.HTTP.Client.Types
Network.HTTP.Client.Util
Network.HTTP.Proxy
Network.PublicSuffixList.Lookup
Network.PublicSuffixList.Types
Network.PublicSuffixList.Serialize
Network.PublicSuffixList.DataStructure
Data.KeyedPool
-- if impl(ghc < 7.10) confuses cabal solver.
build-depends: base >= 4.8 && < 5
, bytestring >= 0.10
, text >= 0.11
, http-types >= 0.8
, blaze-builder >= 0.3
, time >= 1.2
, network >= 2.4
, streaming-commons >= 0.1.0.2 && < 0.3
, containers >= 0.5
, transformers
, deepseq >= 1.3 && <1.5
, case-insensitive >= 1.0
, memory >= 0.7
, cookie
, exceptions >= 0.4
, array
, random
, filepath
, mime-types
, ghc-prim
, stm >= 2.3
if flag(network-uri)
build-depends: network >= 2.6, network-uri >= 2.6
else
build-depends: network < 2.6
if !impl(ghc>=8.0)
build-depends: semigroups >= 0.16.1
-- See build failure at https://travis-ci.org/snoyberg/http-client/jobs/359573631
if impl(ghc < 7.10)
buildable: False
if os(mingw32)
build-depends: Win32, safe
default-language: Haskell2010
test-suite spec
main-is: Spec.hs
type: exitcode-stdio-1.0
hs-source-dirs: test
default-language: Haskell2010
other-modules: Network.HTTP.ClientSpec
build-depends: base
, http-client
, hspec
, monad-control
, bytestring
, text
, http-types
, blaze-builder
, time
, network
, containers
, transformers
, deepseq
, case-insensitive
, zlib
, async
, streaming-commons >= 0.1.1
test-suite spec-nonet
main-is: Spec.hs
type: exitcode-stdio-1.0
hs-source-dirs: test-nonet
default-language: Haskell2010
ghc-options: -threaded
if os(windows)
cpp-options: -DWINDOWS
other-modules: Network.HTTP.ClientSpec
Network.HTTP.Client.ResponseSpec
Network.HTTP.Client.BodySpec
Network.HTTP.Client.HeadersSpec
Network.HTTP.Client.RequestSpec
Network.HTTP.Client.RequestBodySpec
Network.HTTP.Client.CookieSpec
build-depends: base
, http-client
, hspec
, monad-control
, bytestring
, text
, http-types
, blaze-builder
, time
, network
, network-uri
, containers
, transformers
, deepseq
, case-insensitive
, zlib
, async
, streaming-commons >= 0.1.1
, directory