From b832ef2332956fd6fb722d45b336eb9e8286a2b45836cd30e76bfd143969532b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ond=C5=99ej=20S=C3=BAkup?= Date: Tue, 9 Nov 2021 08:32:06 +0000 Subject: [PATCH] osc copypac from project:devel:languages:haskell:ghc-8.10.x package:ghc-vault revision:10, using keep-link OBS-URL: https://build.opensuse.org/package/show/devel:languages:haskell/ghc-vault?expand=0&rev=11 --- ghc-vault.changes | 6 ++++ ghc-vault.spec | 2 ++ vault.cabal | 72 +++++++++++++++++++++++++++++++++++++++++++++++ 3 files changed, 80 insertions(+) create mode 100644 vault.cabal diff --git a/ghc-vault.changes b/ghc-vault.changes index 27d3651..2f3eed3 100644 --- a/ghc-vault.changes +++ b/ghc-vault.changes @@ -1,3 +1,9 @@ +------------------------------------------------------------------- +Wed Nov 3 15:45:02 UTC 2021 - psimons@suse.com + +- Update vault to version 0.3.1.5 revision 1. + Upstream has revised the Cabal build instructions on Hackage. + ------------------------------------------------------------------- Sat Feb 20 00:08:04 UTC 2021 - psimons@suse.com diff --git a/ghc-vault.spec b/ghc-vault.spec index 35a12db..1d0e5f9 100644 --- a/ghc-vault.spec +++ b/ghc-vault.spec @@ -24,6 +24,7 @@ Summary: A persistent store for values of arbitrary types License: BSD-3-Clause URL: https://hackage.haskell.org/package/%{pkg_name} Source0: https://hackage.haskell.org/package/%{pkg_name}-%{version}/%{pkg_name}-%{version}.tar.gz +Source1: https://hackage.haskell.org/package/%{pkg_name}-%{version}/revision/1.cabal#/%{pkg_name}.cabal BuildRequires: ghc-Cabal-devel BuildRequires: ghc-containers-devel BuildRequires: ghc-hashable-devel @@ -52,6 +53,7 @@ This package provides the Haskell %{pkg_name} library development files. %prep %autosetup -n %{pkg_name}-%{version} +cp -p %{SOURCE1} %{pkg_name}.cabal %build %ghc_lib_build diff --git a/vault.cabal b/vault.cabal new file mode 100644 index 0000000..4043b61 --- /dev/null +++ b/vault.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