From 86faa0c76f29d7fa59727253abc03c048ff9f0df Mon Sep 17 00:00:00 2001 From: Jens Petersen Date: Sun, 17 Feb 2019 22:44:03 +0800 Subject: [PATCH] refresh to cabal-rpm-0.13 --- connection-0.2.8.cabal | 44 ++++++++++++++++++++++++++++++++++++++++++ ghc-connection.spec | 21 +++++++++++++++++--- 2 files changed, 62 insertions(+), 3 deletions(-) create mode 100644 connection-0.2.8.cabal diff --git a/connection-0.2.8.cabal b/connection-0.2.8.cabal new file mode 100644 index 0000000..3669436 --- /dev/null +++ b/connection-0.2.8.cabal @@ -0,0 +1,44 @@ +Name: connection +Version: 0.2.8 +x-revision: 1 +Description: + Simple network library for all your connection need. + . + Features: Really simple to use, SSL/TLS, SOCKS. + . + This library provides a very simple api to create sockets + to a destination with the choice of SSL/TLS, and SOCKS. +License: BSD3 +License-file: LICENSE +Copyright: Vincent Hanquez +Author: Vincent Hanquez +Maintainer: Vincent Hanquez +Synopsis: Simple and easy network connections API +Build-Type: Simple +Category: Network +stability: experimental +Cabal-Version: >=1.6 +Homepage: http://github.com/vincenthz/hs-connection +extra-source-files: README.md + CHANGELOG.md + +Library + Build-Depends: base >= 3 && < 5 + , bytestring + , byteable + , containers + , data-default-class + , network >= 2.3 && < 2.9 + , tls >= 1.3 + , socks >= 0.5.5 + , x509 >= 1.5 + , x509-store >= 1.5 + , x509-system >= 1.5 + , x509-validation >= 1.5 + Exposed-modules: Network.Connection + Other-modules: Network.Connection.Types + ghc-options: -Wall + +source-repository head + type: git + location: https://github.com/vincenthz/hs-connection diff --git a/ghc-connection.spec b/ghc-connection.spec index b5b7f28..b8afb40 100644 --- a/ghc-connection.spec +++ b/ghc-connection.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 connection @@ -6,16 +6,19 @@ Name: ghc-%{pkg_name} Version: 0.2.8 -Release: 7%{?dist} +Release: 8%{?dist} Summary: Simple and easy network connections API License: BSD 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-byteable-devel BuildRequires: ghc-bytestring-devel BuildRequires: ghc-containers-devel @@ -54,15 +57,22 @@ This package provides the Haskell %{pkg_name} library development 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 %post devel @@ -74,7 +84,9 @@ This package provides the Haskell %{pkg_name} library development files. %files -f %{name}.files +# Begin cabal-rpm files: %license LICENSE +# End cabal-rpm files %files devel -f %{name}-devel.files @@ -82,6 +94,9 @@ This package provides the Haskell %{pkg_name} library development files. %changelog +* Sun Feb 17 2019 Jens Petersen - 0.2.8-8 +- refresh to cabal-rpm-0.13 + * Thu Jan 31 2019 Fedora Release Engineering - 0.2.8-7 - Rebuilt for https://fedoraproject.org/wiki/Fedora_30_Mass_Rebuild