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
This commit is contained in:
Peter Simons 2023-01-31 22:02:48 +00:00 committed by Git OBS Bridge
parent 7547abc17a
commit 50ddce78b6
3 changed files with 74 additions and 1 deletions

65
fast-logger.cabal Normal file
View File

@ -0,0 +1,65 @@
Name: fast-logger
Version: 3.1.1
x-revision: 1
Author: Kazu Yamamoto <kazu@iij.ad.jp>
Maintainer: Kazu Yamamoto <kazu@iij.ad.jp>
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

View File

@ -1,3 +1,9 @@
-------------------------------------------------------------------
Sun Jan 29 01:01:40 UTC 2023 - Peter Simons <psimons@suse.com>
- 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 <psimons@suse.com>

View File

@ -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