revise .cabal

This commit is contained in:
Jens Petersen 2021-08-04 22:29:11 +08:00
parent 1758162d2b
commit aa286fd218
2 changed files with 61 additions and 0 deletions

View File

@ -0,0 +1,59 @@
name: attoparsec-iso8601
version: 1.0.2.0
x-revision: 1
synopsis: Parsing of ISO 8601 dates, originally from aeson.
description: Parsing of ISO 8601 dates, originally from aeson.
license: BSD3
license-file: LICENSE
category: Parsing
copyright: (c) 2011-2016 Bryan O'Sullivan
(c) 2011 MailRank, Inc.
author: Bryan O'Sullivan <bos@serpentine.com>
maintainer: Adam Bergmark <adam@bergmark.nl>
stability: experimental
cabal-version: >=1.10
homepage: https://github.com/haskell/aeson
bug-reports: https://github.com/haskell/aeson/issues
build-type: Simple
tested-with: GHC == 7.8.4, GHC == 7.10.3, GHC == 8.0.2, GHC == 8.2.2, GHC == 8.4.4, GHC == 8.6.5, GHC == 8.8.3, GHC == 8.10.1
extra-source-files:
README.md
flag developer
description: operate in developer mode
default: False
manual: True
flag fast
description: compile without optimizations
default: False
manual: True
library
hs-source-dirs: .
default-language: Haskell2010
ghc-options: -Wall
exposed-modules:
Data.Attoparsec.Time.Internal
Data.Attoparsec.Time
build-depends:
attoparsec >= 0.13.0.1 && < 0.15,
base >= 4.7 && < 5,
base-compat-batteries >= 0.10.0 && < 0.12,
time-compat >= 1.9.4 && < 1.10,
text >= 1.1.1.0 && < 1.3.0.0,
time >= 1.1.1.4 && < 1.12
if flag(fast)
ghc-options: -O0
else
ghc-options: -O2
if flag(developer)
ghc-options: -Werror
ghc-prof-options: -auto-all
source-repository head
type: git
location: git://github.com/haskell/aeson.git
subdir: attoparsec-iso8601

View File

@ -13,6 +13,7 @@ License: BSD
Url: https://hackage.haskell.org/package/%{pkg_name}
# Begin cabal-rpm sources:
Source0: https://hackage.haskell.org/package/%{pkgver}/%{pkgver}.tar.gz
Source1: https://hackage.haskell.org/package/%{pkgver}/%{pkg_name}.cabal#/%{pkgver}.cabal
# End cabal-rpm sources
# Begin cabal-rpm deps:
@ -69,6 +70,7 @@ This package provides the Haskell %{pkg_name} profiling library.
%prep
# Begin cabal-rpm setup:
%setup -q -n %{pkgver}
cp -bp %{SOURCE1} %{pkg_name}.cabal
# End cabal-rpm setup