diff --git a/cassava-megaparsec.cabal b/cassava-megaparsec.cabal new file mode 100644 index 0000000..cccae8e --- /dev/null +++ b/cassava-megaparsec.cabal @@ -0,0 +1,72 @@ +name: cassava-megaparsec +version: 2.0.4 +x-revision: 1 +cabal-version: 1.18 +tested-with: + GHC == 9.4.4 + GHC == 9.2.5 + GHC == 9.0.2 + GHC == 8.10.7 + GHC == 8.8.4 + GHC == 8.6.5 + GHC == 8.4.4 + GHC == 8.2.2 +license: MIT +license-file: LICENSE.md +author: Mark Karpov +maintainer: Mark Karpov +homepage: https://github.com/stackbuilders/cassava-megaparsec +bug-reports: https://github.com/stackbuilders/cassava-megaparsec/issues +category: Text, Web, CSV, Parsing +synopsis: Megaparsec parser of CSV files that plays nicely with Cassava +build-type: Simple +description: Megaparsec parser of CSV files that plays nicely with Cassava. +extra-doc-files: CHANGELOG.md + , README.md + +source-repository head + type: git + location: https://github.com/stackbuilders/cassava-megaparsec.git + +flag dev + description: Turn on development settings. + manual: True + default: False + +library + build-depends: base >= 4.8 && < 5.0 + , bytestring >= 0.9 && < 0.12 + , cassava >= 0.4.2 && < 0.6 + , megaparsec >= 7.0 && < 10.0 + , unordered-containers >= 0.2.7 && < 0.3 + , vector >= 0.11 && < 0.14 + exposed-modules: Data.Csv.Parser.Megaparsec + , Data.Csv.Parser.Megaparsec.Internals + if flag(dev) + ghc-options: -Wall -Werror + else + ghc-options: -O2 -Wall + if flag(dev) && impl(ghc >= 8.0) + ghc-options: -Wcompat + -Wincomplete-record-updates + -Wincomplete-uni-patterns + -Wnoncanonical-monad-instances + -Wnoncanonical-monadfail-instances + default-language: Haskell2010 + +test-suite tests + main-is: Spec.hs + hs-source-dirs: tests + type: exitcode-stdio-1.0 + build-depends: base >= 4.8 && < 5.0 + , bytestring >= 0.9 && < 0.12 + , cassava >= 0.4.2 && < 0.6 + , cassava-megaparsec + , hspec >= 2.0 && < 3.0 + , hspec-megaparsec >= 2.0 && < 3.0 + , vector >= 0.11 && < 0.14 + if flag(dev) + ghc-options: -Wall -Werror + else + ghc-options: -O2 -Wall + default-language: Haskell2010 diff --git a/ghc-cassava-megaparsec.changes b/ghc-cassava-megaparsec.changes index 4a4aec2..e8599c4 100644 --- a/ghc-cassava-megaparsec.changes +++ b/ghc-cassava-megaparsec.changes @@ -1,3 +1,9 @@ +------------------------------------------------------------------- +Tue Dec 27 19:24:30 UTC 2022 - Peter Simons + +- Update cassava-megaparsec to version 2.0.4 revision 1. + Upstream has revised the Cabal build instructions on Hackage. + ------------------------------------------------------------------- Mon Nov 1 08:26:35 UTC 2021 - psimons@suse.com diff --git a/ghc-cassava-megaparsec.spec b/ghc-cassava-megaparsec.spec index 022721d..45a6778 100644 --- a/ghc-cassava-megaparsec.spec +++ b/ghc-cassava-megaparsec.spec @@ -1,7 +1,7 @@ # # spec file for package ghc-cassava-megaparsec # -# Copyright (c) 2021 SUSE LLC +# Copyright (c) 2022 SUSE LLC # # All modifications and additions to the file contributed by third parties # remain the property of their copyright owners, unless otherwise agreed @@ -25,6 +25,7 @@ Summary: Megaparsec parser of CSV files that plays nicely with Cassava License: MIT 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-cassava-devel @@ -54,6 +55,7 @@ files. %prep %autosetup -n %{pkg_name}-%{version} +cp -p %{SOURCE1} %{pkg_name}.cabal %build %ghc_lib_build