From 50ddce78b69c9894f1a4dd2a0525bff0171e31c14e1e78c38ed41b5273dbbe54 Mon Sep 17 00:00:00 2001 From: Peter Simons Date: Tue, 31 Jan 2023 22:02:48 +0000 Subject: [PATCH] osc copypac from project:devel:languages:haskell:ghc-8.10.x package:ghc-fast-logger revision:16, using keep-link OBS-URL: https://build.opensuse.org/package/show/devel:languages:haskell/ghc-fast-logger?expand=0&rev=72 --- fast-logger.cabal | 65 +++++++++++++++++++++++++++++++++++++++++ ghc-fast-logger.changes | 6 ++++ ghc-fast-logger.spec | 4 ++- 3 files changed, 74 insertions(+), 1 deletion(-) create mode 100644 fast-logger.cabal diff --git a/fast-logger.cabal b/fast-logger.cabal new file mode 100644 index 0000000..1f89973 --- /dev/null +++ b/fast-logger.cabal @@ -0,0 +1,65 @@ +Name: fast-logger +Version: 3.1.1 +x-revision: 1 +Author: Kazu Yamamoto +Maintainer: Kazu Yamamoto +License: BSD3 +License-File: LICENSE +Synopsis: A fast logging system +Description: A fast logging system for Haskell +Homepage: https://github.com/kazu-yamamoto/logger +Category: System +Cabal-Version: >= 1.10 +Build-Type: Simple +Extra-Source-Files: README.md ChangeLog.md +Tested-With: GHC ==7.8.4 || ==7.10.3 || ==8.0.2 || ==8.2.2 || ==8.4.4 || ==8.6.3 + +Library + Default-Language: Haskell2010 + GHC-Options: -Wall + Exposed-Modules: System.Log.FastLogger + System.Log.FastLogger.Date + System.Log.FastLogger.File + System.Log.FastLogger.Internal + System.Log.FastLogger.LoggerSet + System.Log.FastLogger.Types + Other-Modules: System.Log.FastLogger.Imports + System.Log.FastLogger.IO + System.Log.FastLogger.FileIO + System.Log.FastLogger.LogStr + System.Log.FastLogger.Logger + Build-Depends: base >= 4.9 && < 5 + , array + , auto-update >= 0.1.2 + , easy-file >= 0.2 + , bytestring >= 0.10.4 + , directory + , filepath + , text + , unix-time >= 0.4.4 + , unix-compat >= 0.2 + if impl(ghc < 7.8) + Build-Depends: bytestring-builder + if impl(ghc >= 8) + Default-Extensions: Strict StrictData + +Test-Suite spec + Main-Is: Spec.hs + Hs-Source-Dirs: test + Default-Language: Haskell2010 + Type: exitcode-stdio-1.0 + + Ghc-Options: -Wall -threaded + Other-Modules: FastLoggerSpec + Build-Tools: hspec-discover >= 2.6 + Build-Depends: base >= 4 && < 5 + , bytestring >= 0.10.4 + , directory + , fast-logger + , hspec + if impl(ghc >= 8) + Default-Extensions: Strict StrictData + +Source-Repository head + Type: git + Location: git://github.com/kazu-yamamoto/logger.git diff --git a/ghc-fast-logger.changes b/ghc-fast-logger.changes index 1aaee19..f52a48d 100644 --- a/ghc-fast-logger.changes +++ b/ghc-fast-logger.changes @@ -1,3 +1,9 @@ +------------------------------------------------------------------- +Sun Jan 29 01:01:40 UTC 2023 - Peter Simons + +- Update fast-logger to version 3.1.1 revision 1. + Upstream has revised the Cabal build instructions on Hackage. + ------------------------------------------------------------------- Thu Jan 20 07:53:07 UTC 2022 - Peter Simons diff --git a/ghc-fast-logger.spec b/ghc-fast-logger.spec index e5f87bf..00e5df5 100644 --- a/ghc-fast-logger.spec +++ b/ghc-fast-logger.spec @@ -1,7 +1,7 @@ # # spec file for package ghc-fast-logger # -# Copyright (c) 2022 SUSE LLC +# Copyright (c) 2023 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: A fast logging system 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-array-devel BuildRequires: ghc-auto-update-devel @@ -56,6 +57,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