revised .cabal file

This commit is contained in:
Jens Petersen 2020-06-22 19:53:44 +08:00
parent 4d15748210
commit bb1fc39639
2 changed files with 58 additions and 0 deletions

View File

@ -0,0 +1,56 @@
name: attoparsec-iso8601
version: 1.0.1.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/bos/aeson
bug-reports: https://github.com/bos/aeson/issues
build-type: Simple
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,
base >= 4.5 && < 5,
base-compat >= 0.9.1 && < 0.12,
text >= 1.1.1.0,
time >= 1.1.1.4
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/bos/aeson.git

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:
@ -67,6 +68,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