revise .cabal

This commit is contained in:
Jens Petersen 2022-06-18 00:21:41 +08:00
parent 62eee3786a
commit 092ec23789
2 changed files with 83 additions and 0 deletions

80
bytes-0.17.1.cabal Normal file
View File

@ -0,0 +1,80 @@
name: bytes
category: Data, Serialization
version: 0.17.1
x-revision: 3
license: BSD3
cabal-version: >= 1.10
license-file: LICENSE
author: Edward A. Kmett
maintainer: Edward A. Kmett <ekmett@gmail.com>
stability: experimental
homepage: https://github.com/ekmett/bytes
bug-reports: https://github.com/ekmett/bytes/issues
copyright: Copyright (C) 2013-2015 Edward A. Kmett
build-type: Simple
tested-with: GHC == 7.4.2
, GHC == 7.6.3
, GHC == 7.8.4
, GHC == 7.10.3
, GHC == 8.0.2
, GHC == 8.2.2
, GHC == 8.4.4
, GHC == 8.6.5
, GHC == 8.8.4
, GHC == 8.10.3
synopsis: Sharing code for serialization between binary and cereal
description: Sharing code for serialization between binary and cereal.
extra-source-files:
.gitignore
.hlint.yaml
.vim.custom
AUTHORS.markdown
README.markdown
CHANGELOG.markdown
source-repository head
type: git
location: git://github.com/ekmett/bytes.git
library
build-depends:
base >= 4.5 && < 5,
binary >= 0.5.1 && < 0.9,
binary-orphans >= 1.0.1 && < 1.1,
bytestring >= 0.9 && < 0.12,
cereal >= 0.5.2 && < 0.6,
containers >= 0.3 && < 1,
hashable >= 1.0.1.1 && < 1.5,
mtl >= 2.0 && < 2.3,
text >= 0.2 && < 2.1,
time >= 1.2 && < 1.12,
transformers >= 0.2 && < 0.6,
transformers-compat >= 0.6.5 && < 1,
unordered-containers >= 0.2 && < 0.3,
scientific >= 0.0 && < 1,
void >= 0.6 && < 1
if impl(ghc >= 7.4 && < 7.6)
build-depends: ghc-prim
if !impl(ghc >= 7.10)
build-depends: nats >= 1.1.2 && < 1.2
if !impl(ghc >= 8.0)
build-depends: semigroups >= 0.5 && < 1
, fail >= 4.9.0.0 && < 4.10
exposed-modules:
Data.Bytes.Get
Data.Bytes.Put
Data.Bytes.Serial
Data.Bytes.Signed
Data.Bytes.VarInt
ghc-options: -Wall -fwarn-tabs -O2
if impl(ghc >= 8.6)
ghc-options: -Wno-star-is-type
c-sources: cbits/i2d.c
hs-source-dirs: src
default-language: Haskell2010

View File

@ -13,9 +13,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-base-prof
@ -77,6 +79,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