From bb1fc396391abc510df8bb0f738dcdb8c3289df0 Mon Sep 17 00:00:00 2001 From: Jens Petersen Date: Mon, 22 Jun 2020 19:53:44 +0800 Subject: [PATCH] revised .cabal file --- attoparsec-iso8601-1.0.1.0.cabal | 56 ++++++++++++++++++++++++++++++++ ghc-attoparsec-iso8601.spec | 2 ++ 2 files changed, 58 insertions(+) create mode 100644 attoparsec-iso8601-1.0.1.0.cabal diff --git a/attoparsec-iso8601-1.0.1.0.cabal b/attoparsec-iso8601-1.0.1.0.cabal new file mode 100644 index 0000000..9c5ba65 --- /dev/null +++ b/attoparsec-iso8601-1.0.1.0.cabal @@ -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 +maintainer: Adam Bergmark +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 diff --git a/ghc-attoparsec-iso8601.spec b/ghc-attoparsec-iso8601.spec index 61d0452..22071ca 100644 --- a/ghc-attoparsec-iso8601.spec +++ b/ghc-attoparsec-iso8601.spec @@ -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