From 883d06ed5d04f13435b9a5fdd23c85ce3558ee33 Mon Sep 17 00:00:00 2001 From: Jens Petersen Date: Sun, 17 Feb 2019 22:45:14 +0800 Subject: [PATCH] refresh to cabal-rpm-0.13 --- ghc-http-client-tls.spec | 21 +++++++++++-- http-client-tls-0.3.5.3.cabal | 59 +++++++++++++++++++++++++++++++++++ 2 files changed, 77 insertions(+), 3 deletions(-) create mode 100644 http-client-tls-0.3.5.3.cabal diff --git a/ghc-http-client-tls.spec b/ghc-http-client-tls.spec index 2a0c917..3ede91c 100644 --- a/ghc-http-client-tls.spec +++ b/ghc-http-client-tls.spec @@ -1,4 +1,4 @@ -# generated by cabal-rpm-0.12.5 +# generated by cabal-rpm-0.13 # https://fedoraproject.org/wiki/Packaging:Haskell %global pkg_name http-client-tls @@ -8,16 +8,19 @@ Name: ghc-%{pkg_name} Version: 0.3.5.3 -Release: 5%{?dist} +Release: 6%{?dist} Summary: Http-client backend using the connection package and tls library License: MIT Url: https://hackage.haskell.org/package/%{pkg_name} +# Begin cabal-rpm sources: Source0: https://hackage.haskell.org/package/%{pkgver}/%{pkgver}.tar.gz +Source1: https://hackage.haskell.org/package/%{pkgver}/%{pkg_name}.cabal#/%{pkgver}.cabal +# End cabal-rpm sources +# Begin cabal-rpm deps: BuildRequires: ghc-Cabal-devel BuildRequires: ghc-rpm-macros -# Begin cabal-rpm deps: BuildRequires: ghc-bytestring-devel BuildRequires: ghc-case-insensitive-devel BuildRequires: ghc-connection-devel @@ -61,15 +64,22 @@ files. %prep +# Begin cabal-rpm setup: %setup -q -n %{pkgver} +cp -bp %{SOURCE1} %{pkg_name}.cabal +# End cabal-rpm setup %build +# Begin cabal-rpm build: %ghc_lib_build +# End cabal-rpm build %install +# Begin cabal-rpm install %ghc_lib_install +# End cabal-rpm install %check @@ -85,7 +95,9 @@ files. %files -f %{name}.files +# Begin cabal-rpm files: %license LICENSE +# End cabal-rpm files %files devel -f %{name}-devel.files @@ -93,6 +105,9 @@ files. %changelog +* Sun Feb 17 2019 Jens Petersen - 0.3.5.3-6 +- refresh to cabal-rpm-0.13 + * Thu Jan 31 2019 Fedora Release Engineering - 0.3.5.3-5 - Rebuilt for https://fedoraproject.org/wiki/Fedora_30_Mass_Rebuild diff --git a/http-client-tls-0.3.5.3.cabal b/http-client-tls-0.3.5.3.cabal new file mode 100644 index 0000000..50b1f51 --- /dev/null +++ b/http-client-tls-0.3.5.3.cabal @@ -0,0 +1,59 @@ +name: http-client-tls +version: 0.3.5.3 +x-revision: 1 +synopsis: http-client backend using the connection package and tls library +description: Hackage documentation generation is not reliable. For up to date documentation, please see: . +homepage: https://github.com/snoyberg/http-client +license: MIT +license-file: LICENSE +author: Michael Snoyman +maintainer: michael@snoyman.com +category: Network +build-type: Simple +cabal-version: >=1.10 +extra-source-files: README.md + ChangeLog.md + +library + exposed-modules: Network.HTTP.Client.TLS + other-extensions: ScopedTypeVariables + build-depends: base >= 4 && < 5 + , data-default-class + , http-client >= 0.5.0 + , connection >= 0.2.5 + , network >= 2.6 + , tls >= 1.2 + , bytestring + , case-insensitive + , transformers + , http-types + , cryptonite + , memory + , exceptions + , containers + , text + , network-uri >= 2.6 + default-language: Haskell2010 + ghc-options: -Wall + +test-suite spec + main-is: Spec.hs + type: exitcode-stdio-1.0 + hs-source-dirs: test + default-language: Haskell2010 + build-depends: base + , connection + , hspec + , http-client + , http-client-tls + , http-types + +benchmark benchmark + main-is: Bench.hs + type: exitcode-stdio-1.0 + hs-source-dirs: bench + default-language: Haskell2010 + build-depends: base + , gauge + , http-client + , http-client-tls