SHA256
1
0
forked from pool/ghc-hslogger

osc copypac from project:devel:languages:haskell:ghc-8.10.x package:ghc-hslogger revision:2, using keep-link

OBS-URL: https://build.opensuse.org/package/show/devel:languages:haskell/ghc-hslogger?expand=0&rev=1
This commit is contained in:
Peter Simons 2020-06-16 10:56:49 +00:00 committed by Git OBS Bridge
commit 561e239328
6 changed files with 217 additions and 0 deletions

23
.gitattributes vendored Normal file
View File

@ -0,0 +1,23 @@
## Default LFS
*.7z filter=lfs diff=lfs merge=lfs -text
*.bsp filter=lfs diff=lfs merge=lfs -text
*.bz2 filter=lfs diff=lfs merge=lfs -text
*.gem filter=lfs diff=lfs merge=lfs -text
*.gz filter=lfs diff=lfs merge=lfs -text
*.jar filter=lfs diff=lfs merge=lfs -text
*.lz filter=lfs diff=lfs merge=lfs -text
*.lzma filter=lfs diff=lfs merge=lfs -text
*.obscpio filter=lfs diff=lfs merge=lfs -text
*.oxt filter=lfs diff=lfs merge=lfs -text
*.pdf filter=lfs diff=lfs merge=lfs -text
*.png filter=lfs diff=lfs merge=lfs -text
*.rpm filter=lfs diff=lfs merge=lfs -text
*.tbz filter=lfs diff=lfs merge=lfs -text
*.tbz2 filter=lfs diff=lfs merge=lfs -text
*.tgz filter=lfs diff=lfs merge=lfs -text
*.ttf filter=lfs diff=lfs merge=lfs -text
*.txz filter=lfs diff=lfs merge=lfs -text
*.whl filter=lfs diff=lfs merge=lfs -text
*.xz filter=lfs diff=lfs merge=lfs -text
*.zip filter=lfs diff=lfs merge=lfs -text
*.zst filter=lfs diff=lfs merge=lfs -text

1
.gitignore vendored Normal file
View File

@ -0,0 +1 @@
.osc

5
ghc-hslogger.changes Normal file
View File

@ -0,0 +1,5 @@
-------------------------------------------------------------------
Tue Jun 9 09:26:21 UTC 2020 - psimons@suse.com
- Add hslogger at version 1.3.1.0.

87
ghc-hslogger.spec Normal file
View File

@ -0,0 +1,87 @@
#
# spec file for package ghc-hslogger
#
# Copyright (c) 2020 SUSE LLC
#
# All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed
# upon. The license for this file, and modifications and additions to the
# file, is the same license as for the pristine package itself (unless the
# license for the pristine package is not an Open Source License, in which
# case the license is the MIT License). An "Open Source License" is a
# license that conforms to the Open Source Definition (Version 1.9)
# published by the Open Source Initiative.
# Please submit bugfixes or comments via https://bugs.opensuse.org/
#
%global pkg_name hslogger
%bcond_with tests
Name: ghc-%{pkg_name}
Version: 1.3.1.0
Release: 0
Summary: Versatile logging framework
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-bytestring-devel
BuildRequires: ghc-containers-devel
BuildRequires: ghc-deepseq-devel
BuildRequires: ghc-network-bsd-devel
BuildRequires: ghc-network-devel
BuildRequires: ghc-old-locale-devel
BuildRequires: ghc-rpm-macros
BuildRequires: ghc-time-devel
BuildRequires: ghc-unix-devel
%if %{with tests}
BuildRequires: ghc-HUnit-devel
%endif
%description
'hslogger' is a logging framework for Haskell, roughly similar to [Python's
logging module](https://docs.python.org/2/library/logging.html).
'hslogger' lets each log message have a priority and source be associated with
it. The programmer can then define global handlers that route or filter
messages based on the priority and source. 'hslogger' also has a
[Syslog](https://tools.ietf.org/html/rfc5424) handler built in.
%package devel
Summary: Haskell %{pkg_name} library development files
Requires: %{name} = %{version}-%{release}
Requires: ghc-compiler = %{ghc_version}
Requires(post): ghc-compiler = %{ghc_version}
Requires(postun): ghc-compiler = %{ghc_version}
%description devel
This package provides the Haskell %{pkg_name} library development files.
%prep
%setup -q -n %{pkg_name}-%{version}
cp -p %{SOURCE1} %{pkg_name}.cabal
%build
%ghc_lib_build
%install
%ghc_lib_install
%check
%cabal_test
%post devel
%ghc_pkg_recache
%postun devel
%ghc_pkg_recache
%files -f %{name}.files
%license LICENSE
%files devel -f %{name}-devel.files
%doc CHANGELOG.md
%changelog

3
hslogger-1.3.1.0.tar.gz Normal file
View File

@ -0,0 +1,3 @@
version https://git-lfs.github.com/spec/v1
oid sha256:7f2364f6c0b9c5b85a257267a335816126ef2471c817a42797a5d3c57acaca5b
size 37468

98
hslogger.cabal Normal file
View File

@ -0,0 +1,98 @@
cabal-version: 1.12
build-type: Simple
name: hslogger
version: 1.3.1.0
x-revision: 1
maintainer: hvr@gnu.org
author: John Goerzen
copyright: Copyright (c) 2004-2018 John Goerzen
, (c) 2019 Herbert Valerio Riedel
license: BSD3
license-file: LICENSE
homepage: https://github.com/hvr/hslogger/wiki
bug-reports: https://github.com/hvr/hslogger/issues
category: Interfaces
synopsis: Versatile logging framework
description:
@hslogger@ is a logging framework for Haskell, roughly similar
to [Python's logging module](https://docs.python.org/2/library/logging.html).
.
@hslogger@ lets each log message have a priority and source be associated
with it. The programmer can then define global handlers that route
or filter messages based on the priority and source. @hslogger@ also
has a [Syslog](https://tools.ietf.org/html/rfc5424) handler built in.
extra-source-files:
LICENSE
CHANGELOG.md
contrib/java/build.xml
contrib/java/hslogger4j.jar
contrib/java/hslogger4j-plugins.xml
contrib/java/org/haskell/hslogger/HsloggerLevel.java
contrib/java/org/haskell/hslogger/LogFileXMLReceiver.java
contrib/java/org/haskell/hslogger/XMLDecoder.java
testsrc/Tests.hs
testsrc/runtests.hs
tested-with:
GHC ==7.0.4 || ==7.2.2 || ==7.4.2 || ==7.6.3 || ==7.8.4 || ==7.10.3 || ==8.0.2 || ==8.2.2 || ==8.4.4 || ==8.6.4
source-repository head
type: git
location: http://github.com/hvr/hslogger.git
flag network--GT-3_0_0
description: [network](http://hackage.haskell.org/package/network) ≥ 3.0.0
default: True
manual: False
library
hs-source-dirs: src
exposed-modules:
System.Log
System.Log.Handler
System.Log.Formatter
System.Log.Handler.Simple
System.Log.Handler.Syslog
System.Log.Handler.Growl
System.Log.Handler.Log4jXML
System.Log.Logger
other-modules:
UTF8
default-language: Haskell2010
other-extensions: CPP ExistentialQuantification DeriveDataTypeable
build-depends:
base >= 4.3 && < 4.15
, bytestring >= 0.9 && < 0.11
, containers >= 0.4 && < 0.7
, deepseq >= 1.1 && < 1.5
, time >= 1.2 && < 1.10
, old-locale >= 1.0 && < 1.1
if flag(network--GT-3_0_0)
build-depends: network-bsd >= 2.8.1 && <2.9,
network >= 3.0 && <3.2
else
build-depends: network >= 2.6 && <2.9
if !os(windows)
Build-Depends: unix >= 2.4.2 && < 2.8
if !impl(ghc >= 7.6)
build-depends: ghc-prim
test-suite runtests
type: exitcode-stdio-1.0
hs-source-dirs: testsrc
main-is: runtests.hs
other-modules: Tests
default-language: Haskell2010
build-depends:
base
, HUnit == 1.3.* || == 1.6.*
, hslogger