revise .cabal
This commit is contained in:
parent
d84d72d8bf
commit
b6a4f6ee94
|
@ -15,9 +15,11 @@ 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: dos2unix
|
||||
BuildRequires: ghc-Cabal-devel
|
||||
BuildRequires: ghc-rpm-macros
|
||||
BuildRequires: ghc-HsOpenSSL-prof
|
||||
|
@ -71,6 +73,7 @@ This package provides the Haskell %{pkg_name} profiling library.
|
|||
%prep
|
||||
# Begin cabal-rpm setup:
|
||||
%setup -q -n %{pkgver}
|
||||
dos2unix -k -n %{SOURCE1} %{pkg_name}.cabal
|
||||
# End cabal-rpm setup
|
||||
|
||||
|
||||
|
|
|
@ -0,0 +1,65 @@
|
|||
Name: openssl-streams
|
||||
Version: 1.2.3.0
|
||||
x-revision: 1
|
||||
License: BSD3
|
||||
License-file: LICENSE
|
||||
Category: Network, IO-Streams
|
||||
Build-type: Simple
|
||||
Cabal-version: >= 1.10
|
||||
Synopsis: OpenSSL network support for io-streams.
|
||||
Maintainer: Gregory Collins <greg@gregorycollins.net>
|
||||
Description:
|
||||
The openssl-streams library contains io-streams routines for secure
|
||||
networking using OpenSSL (by way of HsOpenSSL).
|
||||
|
||||
Extra-Source-Files: CONTRIBUTORS,
|
||||
changelog.md
|
||||
test/cert.pem,
|
||||
test/key.pem
|
||||
|
||||
------------------------------------------------------------------------------
|
||||
Library
|
||||
hs-source-dirs: src
|
||||
Default-language: Haskell2010
|
||||
|
||||
ghc-options: -O2 -Wall -fwarn-tabs -funbox-strict-fields
|
||||
-fno-warn-unused-do-bind
|
||||
|
||||
ghc-prof-options: -auto-all
|
||||
|
||||
Exposed-modules: System.IO.Streams.SSL
|
||||
|
||||
Build-depends: base >= 4 && <5,
|
||||
bytestring >= 0.9.2 && <0.12,
|
||||
HsOpenSSL >= 0.10.3 && <0.12,
|
||||
io-streams >= 1.0 && <1.6,
|
||||
network >= 2.4 && <3.2
|
||||
|
||||
|
||||
------------------------------------------------------------------------------
|
||||
Test-suite testsuite
|
||||
Type: exitcode-stdio-1.0
|
||||
hs-source-dirs: src test
|
||||
Main-is: TestSuite.hs
|
||||
Default-language: Haskell2010
|
||||
Other-modules: System.IO.Streams.SSL
|
||||
|
||||
ghc-options: -O2 -Wall -fwarn-tabs -funbox-strict-fields -threaded
|
||||
-fno-warn-unused-do-bind
|
||||
ghc-prof-options: -auto-all
|
||||
|
||||
Build-depends: base,
|
||||
bytestring,
|
||||
HsOpenSSL,
|
||||
io-streams,
|
||||
network,
|
||||
-- test deps follow.
|
||||
HUnit >= 1.2 && <2,
|
||||
test-framework >= 0.8.0.3 && <0.9,
|
||||
test-framework-hunit >= 0.3 && <0.4
|
||||
|
||||
other-extensions: OverloadedStrings
|
||||
|
||||
source-repository head
|
||||
type: git
|
||||
location: git://github.com/snapframework/openssl-streams.git
|
Loading…
Reference in New Issue