From 4579918b6c565846fbe3fda6e295b36f06e071c8 Mon Sep 17 00:00:00 2001 From: Jens Petersen Date: Sun, 17 Feb 2019 22:43:30 +0800 Subject: [PATCH] refresh to cabal-rpm-0.13 --- attoparsec-0.13.2.2.cabal | 194 ++++++++++++++++++++++++++++++++++++++ ghc-attoparsec.spec | 21 ++++- 2 files changed, 212 insertions(+), 3 deletions(-) create mode 100644 attoparsec-0.13.2.2.cabal diff --git a/attoparsec-0.13.2.2.cabal b/attoparsec-0.13.2.2.cabal new file mode 100644 index 0000000..8ef1f67 --- /dev/null +++ b/attoparsec-0.13.2.2.cabal @@ -0,0 +1,194 @@ +name: attoparsec +version: 0.13.2.2 +x-revision: 2 +license: BSD3 +license-file: LICENSE +category: Text, Parsing +author: Bryan O'Sullivan +maintainer: Bryan O'Sullivan , Ben Gamari +stability: experimental +tested-with: GHC == 7.0.4, GHC == 7.2.2, GHC == 7.4.2, GHC ==7.6.3, GHC ==7.8.4, GHC ==7.10.3, GHC ==8.0.2, GHC ==8.2.2 +synopsis: Fast combinator parsing for bytestrings and text +cabal-version: >= 1.8 +homepage: https://github.com/bos/attoparsec +bug-reports: https://github.com/bos/attoparsec/issues +build-type: Simple +description: + A fast parser combinator library, aimed particularly at dealing + efficiently with network protocols and complicated text/binary + file formats. +extra-source-files: + README.markdown + benchmarks/*.cabal + benchmarks/*.hs + benchmarks/*.txt + benchmarks/json-data/*.json + benchmarks/Makefile + benchmarks/med.txt.bz2 + changelog.md + examples/*.c + examples/*.hs + examples/Makefile + tests/*.hs + tests/QC/*.hs + tests/QC/IPv6/*.hs + +Flag developer + Description: Whether to build the library in development mode + Default: False + Manual: True + +library + build-depends: array, + base >= 4.2 && < 5, + bytestring, + containers, + deepseq, + scientific >= 0.3.1 && < 0.4, + transformers >= 0.2 && (< 0.4 || >= 0.4.1.0) && < 0.6, + text >= 1.1.1.3 + if impl(ghc < 7.4) + build-depends: + bytestring < 0.10.4.0 + + if !impl(ghc >= 8.0) + -- Data.Semigroup && Control.Monad.Fail are available in base-4.9+ + build-depends: fail == 4.9.*, + semigroups >=0.16.1 && <0.19 + + exposed-modules: Data.Attoparsec + Data.Attoparsec.ByteString + Data.Attoparsec.ByteString.Char8 + Data.Attoparsec.ByteString.Lazy + Data.Attoparsec.Char8 + Data.Attoparsec.Combinator + Data.Attoparsec.Internal + Data.Attoparsec.Internal.Types + Data.Attoparsec.Lazy + Data.Attoparsec.Number + Data.Attoparsec.Text + Data.Attoparsec.Text.Lazy + Data.Attoparsec.Types + Data.Attoparsec.Zepto + other-modules: Data.Attoparsec.ByteString.Buffer + Data.Attoparsec.ByteString.FastSet + Data.Attoparsec.ByteString.Internal + Data.Attoparsec.Internal.Fhthagn + Data.Attoparsec.Text.Buffer + Data.Attoparsec.Text.FastSet + Data.Attoparsec.Text.Internal + ghc-options: -O2 -Wall + + if flag(developer) + ghc-prof-options: -auto-all + ghc-options: -Werror + +test-suite tests + type: exitcode-stdio-1.0 + hs-source-dirs: tests . + main-is: QC.hs + other-modules: QC.Buffer + QC.ByteString + QC.Combinator + QC.Common + QC.IPv6.Internal + QC.IPv6.Types + QC.Rechunked + QC.Simple + QC.Text + QC.Text.FastSet + QC.Text.Regressions + + other-modules: Data.Attoparsec.ByteString + Data.Attoparsec.ByteString.Buffer + Data.Attoparsec.ByteString.Char8 + Data.Attoparsec.ByteString.FastSet + Data.Attoparsec.ByteString.Internal + Data.Attoparsec.ByteString.Lazy + Data.Attoparsec.Combinator + Data.Attoparsec.Internal + Data.Attoparsec.Internal.Fhthagn + Data.Attoparsec.Internal.Types + Data.Attoparsec.Number + Data.Attoparsec.Text + Data.Attoparsec.Text.Buffer + Data.Attoparsec.Text.FastSet + Data.Attoparsec.Text.Internal + Data.Attoparsec.Text.Lazy + Data.Attoparsec.Zepto + + ghc-options: + -Wall -threaded -rtsopts + + if flag(developer) + ghc-options: -Werror + + build-depends: + array, + base >= 4 && < 5, + bytestring, + deepseq >= 1.1, + QuickCheck >= 2.7 && < 2.10, + quickcheck-unicode, + scientific, + tasty >= 0.11, + tasty-quickcheck >= 0.8, + text, + transformers >= 0.2 && (< 0.4 || >= 0.4.1.0) && < 0.6, + vector + + if !impl(ghc >= 8.0) + -- Data.Semigroup && Control.Monad.Fail are available in base-4.9+ + build-depends: fail == 4.9.*, + semigroups >=0.16.1 && <0.19 + +benchmark benchmarks + type: exitcode-stdio-1.0 + hs-source-dirs: benchmarks benchmarks/warp-3.0.1.1 . + ghc-options: -O2 -Wall -rtsopts + main-is: Benchmarks.hs + other-modules: + Common + HeadersByteString + HeadersByteString.Atto + HeadersText + Links + Network.Wai.Handler.Warp.ReadInt + Network.Wai.Handler.Warp.RequestHeader + Numbers + Sets + TextFastSet + Warp + ghc-options: -O2 -Wall + + if flag(developer) + ghc-options: -Werror + + build-depends: + array, + base == 4.*, + bytestring >= 0.10.4.0, + case-insensitive, + containers, + criterion >= 1.0, + deepseq >= 1.1, + directory, + filepath, + ghc-prim, + http-types, + parsec >= 3.1.2, + scientific, + text >= 1.1.1.0, + transformers >= 0.2 && (< 0.4 || >= 0.4.1.0) && < 0.6, + unordered-containers, + vector + + if !impl(ghc >= 8.0) + -- Data.Semigroup && Control.Monad.Fail are available in base-4.9+ + build-depends: fail == 4.9.*, + semigroups >=0.16.1 && <0.19 + +source-repository head + type: git + location: https://github.com/bos/attoparsec + diff --git a/ghc-attoparsec.spec b/ghc-attoparsec.spec index bbef59e..a750e39 100644 --- a/ghc-attoparsec.spec +++ b/ghc-attoparsec.spec @@ -1,4 +1,4 @@ -# generated by cabal-rpm-0.12.5 +# generated by cabal-rpm-0.13 # https://fedoraproject.org/wiki/Packaging:Haskell %global pkg_name attoparsec @@ -8,16 +8,19 @@ Name: ghc-%{pkg_name} Version: 0.13.2.2 -Release: 2%{?dist} +Release: 3%{?dist} Summary: Fast combinator parsing for bytestrings and text 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: BuildRequires: ghc-Cabal-devel BuildRequires: ghc-rpm-macros -# Begin cabal-rpm deps: BuildRequires: ghc-array-devel BuildRequires: ghc-bytestring-devel BuildRequires: ghc-containers-devel @@ -55,15 +58,22 @@ This package provides the Haskell %{pkg_name} library development files. %prep +# Begin cabal-rpm setup: %setup -q -n %{pkgver} +cp -bp %{SOURCE1} %{pkg_name}.cabal +# End cabal-rpm setup %build +# Begin cabal-rpm build: %ghc_lib_build +# End cabal-rpm build %install +# Begin cabal-rpm install %ghc_lib_install +# End cabal-rpm install %check @@ -79,7 +89,9 @@ This package provides the Haskell %{pkg_name} library development files. %files -f %{name}.files +# Begin cabal-rpm files: %license LICENSE +# End cabal-rpm files %files devel -f %{name}-devel.files @@ -87,6 +99,9 @@ This package provides the Haskell %{pkg_name} library development files. %changelog +* Sun Feb 17 2019 Jens Petersen - 0.13.2.2-3 +- refresh to cabal-rpm-0.13 + * Thu Jan 31 2019 Fedora Release Engineering - 0.13.2.2-2 - Rebuilt for https://fedoraproject.org/wiki/Fedora_30_Mass_Rebuild