commit 561e2393280b1a69e794ee845e5aa4e94eff94f43180c53b61c6f54d1a7ff462 Author: Peter Simons Date: Tue Jun 16 10:56:49 2020 +0000 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 diff --git a/.gitattributes b/.gitattributes new file mode 100644 index 0000000..9b03811 --- /dev/null +++ b/.gitattributes @@ -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 diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..57affb6 --- /dev/null +++ b/.gitignore @@ -0,0 +1 @@ +.osc diff --git a/ghc-hslogger.changes b/ghc-hslogger.changes new file mode 100644 index 0000000..a64ee7c --- /dev/null +++ b/ghc-hslogger.changes @@ -0,0 +1,5 @@ +------------------------------------------------------------------- +Tue Jun 9 09:26:21 UTC 2020 - psimons@suse.com + +- Add hslogger at version 1.3.1.0. + diff --git a/ghc-hslogger.spec b/ghc-hslogger.spec new file mode 100644 index 0000000..d5432af --- /dev/null +++ b/ghc-hslogger.spec @@ -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 diff --git a/hslogger-1.3.1.0.tar.gz b/hslogger-1.3.1.0.tar.gz new file mode 100644 index 0000000..244556d --- /dev/null +++ b/hslogger-1.3.1.0.tar.gz @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:7f2364f6c0b9c5b85a257267a335816126ef2471c817a42797a5d3c57acaca5b +size 37468 diff --git a/hslogger.cabal b/hslogger.cabal new file mode 100644 index 0000000..53c183b --- /dev/null +++ b/hslogger.cabal @@ -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