refresh to cabal-rpm-2.1.0 with SPDX migration

This commit is contained in:
Jens Petersen 2023-01-24 23:54:57 +08:00
parent 5274ad4337
commit 814cdeed8f
2 changed files with 129 additions and 101 deletions

View File

@ -1,4 +1,4 @@
# generated by cabal-rpm-2.0.9
# generated by cabal-rpm-2.1.0
# https://docs.fedoraproject.org/en-US/packaging-guidelines/Haskell/
%global pkg_name hslogger
@ -8,10 +8,10 @@
Name: ghc-%{pkg_name}
Version: 1.3.1.0
Release: 8%{?dist}
Release: 9%{?dist}
Summary: Versatile logging framework
License: BSD
License: BSD-3-Clause
Url: https://hackage.haskell.org/package/%{pkg_name}
# Begin cabal-rpm sources:
Source0: https://hackage.haskell.org/package/%{pkgver}/%{pkgver}.tar.gz
@ -21,6 +21,16 @@ Source1: https://hackage.haskell.org/package/%{pkgver}/%{pkg_name}.cabal#
# Begin cabal-rpm deps:
BuildRequires: ghc-Cabal-devel
BuildRequires: ghc-rpm-macros
BuildRequires: ghc-base-devel
BuildRequires: ghc-bytestring-devel
BuildRequires: ghc-containers-devel
BuildRequires: ghc-deepseq-devel
BuildRequires: ghc-network-devel
BuildRequires: ghc-network-bsd-devel
BuildRequires: ghc-old-locale-devel
BuildRequires: ghc-time-devel
BuildRequires: ghc-unix-devel
%if %{with ghc_prof}
BuildRequires: ghc-base-prof
BuildRequires: ghc-bytestring-prof
BuildRequires: ghc-containers-prof
@ -30,6 +40,7 @@ BuildRequires: ghc-network-bsd-prof
BuildRequires: ghc-old-locale-prof
BuildRequires: ghc-time-prof
BuildRequires: ghc-unix-prof
%endif
%if %{with tests}
BuildRequires: ghc-HUnit-devel
%endif
@ -127,6 +138,9 @@ cp -bp %{SOURCE1} %{pkg_name}.cabal
%changelog
* Thu Feb 16 2023 Jens Petersen <petersen@redhat.com> - 1.3.1.0-9
- refresh to cabal-rpm-2.1.0 with SPDX migration
* Thu Jul 21 2022 Fedora Release Engineering <releng@fedoraproject.org> - 1.3.1.0-8
- Rebuilt for https://fedoraproject.org/wiki/Fedora_37_Mass_Rebuild

View File

@ -1,98 +1,112 @@
cabal-version: 1.12
build-type: Simple
name: hslogger
version: 1.3.1.0
x-revision: 5
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.17
, bytestring >= 0.9 && < 0.12
, containers >= 0.4 && < 0.7
, deepseq >= 1.1 && < 1.5
, time >= 1.2 && < 1.13
, 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
cabal-version: 1.12
build-type: Simple
name: hslogger
version: 1.3.1.0
x-revision: 6
maintainer: https://github.com/haskell-hvr/hslogger
author: John Goerzen
copyright: Copyright (c) 2004-2018 John Goerzen
, (c) 2019 Herbert Valerio Riedel
license: BSD3
license-file: LICENSE
homepage: https://github.com/haskell-hvr/hslogger/wiki
bug-reports: https://github.com/haskell-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 == 9.4.1
GHC == 9.2.4
GHC == 9.0.2
GHC == 8.10.7
GHC == 8.8.4
GHC == 8.6.5
GHC == 8.4.4
GHC == 8.2.2
GHC == 8.0.2
GHC == 7.10.3
GHC == 7.8.4
GHC == 7.6.3
GHC == 7.4.2
GHC == 7.2.2
GHC == 7.0.4
source-repository head
type: git
location: http://github.com/haskell-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.18
, bytestring >= 0.9 && < 0.12
, containers >= 0.4 && < 0.7
, deepseq >= 1.1 && < 1.5
, time >= 1.2 && < 1.13
, 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.9
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