From 092ec237890888d2185e5391c2f96cc6d8e22c72 Mon Sep 17 00:00:00 2001 From: Jens Petersen Date: Sat, 18 Jun 2022 00:21:41 +0800 Subject: [PATCH] revise .cabal --- bytes-0.17.1.cabal | 80 ++++++++++++++++++++++++++++++++++++++++++++++ ghc-bytes.spec | 3 ++ 2 files changed, 83 insertions(+) create mode 100644 bytes-0.17.1.cabal diff --git a/bytes-0.17.1.cabal b/bytes-0.17.1.cabal new file mode 100644 index 0000000..845d656 --- /dev/null +++ b/bytes-0.17.1.cabal @@ -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 +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 diff --git a/ghc-bytes.spec b/ghc-bytes.spec index 61dd386..99b9779 100644 --- a/ghc-bytes.spec +++ b/ghc-bytes.spec @@ -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