From fbfb800b4d22e8dbdc230a60c081938c7dd7d19a4f889ddcb8001a98a1a4132f Mon Sep 17 00:00:00 2001 From: Peter Simons Date: Wed, 9 Feb 2022 13:44:54 +0000 Subject: [PATCH] osc copypac from project:devel:languages:haskell:ghc-8.10.x package:ghc-resourcet revision:17, using keep-link OBS-URL: https://build.opensuse.org/package/show/devel:languages:haskell/ghc-resourcet?expand=0&rev=71 --- ghc-resourcet.changes | 6 ++++++ ghc-resourcet.spec | 4 +++- resourcet.cabal | 47 +++++++++++++++++++++++++++++++++++++++++++ 3 files changed, 56 insertions(+), 1 deletion(-) create mode 100644 resourcet.cabal diff --git a/ghc-resourcet.changes b/ghc-resourcet.changes index bc3f8dc..2c3be20 100644 --- a/ghc-resourcet.changes +++ b/ghc-resourcet.changes @@ -1,3 +1,9 @@ +------------------------------------------------------------------- +Fri Feb 4 12:15:08 UTC 2022 - psimons@suse.com + +- Update resourcet to version 1.2.4.3 revision 1. + Upstream has revised the Cabal build instructions on Hackage. + ------------------------------------------------------------------- Thu Aug 5 15:04:55 UTC 2021 - psimons@suse.com diff --git a/ghc-resourcet.spec b/ghc-resourcet.spec index e9fe794..db9c548 100644 --- a/ghc-resourcet.spec +++ b/ghc-resourcet.spec @@ -1,7 +1,7 @@ # # spec file for package ghc-resourcet # -# Copyright (c) 2021 SUSE LLC +# Copyright (c) 2022 SUSE LLC # # All modifications and additions to the file contributed by third parties # remain the property of their copyright owners, unless otherwise agreed @@ -25,6 +25,7 @@ Summary: Deterministic allocation and freeing of scarce resources 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-exceptions-devel @@ -54,6 +55,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/resourcet.cabal b/resourcet.cabal new file mode 100644 index 0000000..533f78a --- /dev/null +++ b/resourcet.cabal @@ -0,0 +1,47 @@ +Name: resourcet +Version: 1.2.4.3 +x-revision: 1 +Synopsis: Deterministic allocation and freeing of scarce resources. +description: Hackage documentation generation is not reliable. For up to date documentation, please see: . +License: BSD3 +License-file: LICENSE +Author: Michael Snoyman +Maintainer: michael@snoyman.com +Category: Data, Conduit +Build-type: Simple +Cabal-version: >=1.10 +Homepage: http://github.com/snoyberg/conduit +extra-source-files: ChangeLog.md, README.md + +Library + default-language: Haskell2010 + Exposed-modules: Control.Monad.Trans.Resource + Control.Monad.Trans.Resource.Internal + Data.Acquire + Data.Acquire.Internal + UnliftIO.Resource + Build-depends: base >= 4.9 && < 5 + , containers + , transformers >= 0.4 + , mtl >= 2.0 && < 2.3 + , exceptions (== 0.8.* || == 0.10.*) + , unliftio-core >=0.1.1.0 + , primitive + ghc-options: -Wall + +test-suite test + default-language: Haskell2010 + hs-source-dirs: test + main-is: main.hs + type: exitcode-stdio-1.0 + cpp-options: -DTEST + build-depends: resourcet + , base + , exceptions + , hspec >= 1.3 + , transformers + ghc-options: -Wall + +source-repository head + type: git + location: git://github.com/snoyberg/conduit.git