From d23eeeef61bbe48c27c0c5e858a4c5871ba7c61c Mon Sep 17 00:00:00 2001 From: Jens Petersen Date: Sat, 18 Jun 2022 00:21:41 +0800 Subject: [PATCH] revise .cabal --- ghc-vault.spec | 3 ++ vault-0.3.1.5.cabal | 72 +++++++++++++++++++++++++++++++++++++++++++++ 2 files changed, 75 insertions(+) create mode 100644 vault-0.3.1.5.cabal diff --git a/ghc-vault.spec b/ghc-vault.spec index cb73a58..2d89937 100644 --- a/ghc-vault.spec +++ b/ghc-vault.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 @@ -70,6 +72,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 diff --git a/vault-0.3.1.5.cabal b/vault-0.3.1.5.cabal new file mode 100644 index 0000000..7947d4f --- /dev/null +++ b/vault-0.3.1.5.cabal @@ -0,0 +1,72 @@ +Name: vault +Version: 0.3.1.5 +x-revision: 1 +Synopsis: a persistent store for values of arbitrary types +Description: + A /vault/ is a persistent store for values of arbitrary types. + It's like having first-class access to the storage space behind IORefs. + . + The data structure is analogous to a bank vault, + where you can access different bank boxes with different keys; + hence the name. + . + Also provided is a /locker/ type, representing a store for a single element. + +Category: Data +License: BSD3 +License-file: LICENSE +Author: Heinrich Apfelmus, Elliott Hird +Maintainer: Heinrich Apfelmus +Homepage: https://github.com/HeinrichApfelmus/vault +Copyright: (c) Heinrich Apfelmus 2011-2013 + +build-type: Simple +cabal-version: >= 1.10 +Tested-With: 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.3 + ,GHC == 8.10.1 + +extra-source-files: + CHANGELOG.md + README.md + src/Data/Vault/IO.h + src/Data/Vault/ST/ST.h + src/Data/Vault/ST/backends/GHC.h + +source-repository head + type: git + location: git://github.com/HeinrichApfelmus/vault.git + +flag UseGHC + description: Use GHC-specific packages and extensions. + default: True + +Library + hs-source-dirs: src + build-depends: base >= 4.5 && < 4.17, + containers >= 0.4 && < 0.7, + unordered-containers >= 0.2.3.0 && < 0.3, + hashable >= 1.1.2.5 && < 1.5 + + if impl(ghc < 8.0) + build-depends: semigroups >= 0.1 && < 1.0 + + default-language: Haskell2010 + default-extensions: CPP + ghc-options: -Wall -fno-warn-missing-signatures + + exposed-modules: + Data.Vault.Lazy, + Data.Vault.Strict, + Data.Vault.ST.Lazy, + Data.Vault.ST.Strict, + Data.Unique.Really + + if impl(ghc) && flag(UseGHC) + CPP-options: -DUseGHC