From c95ad2e91ab52ee7568407494478266192643a5a Mon Sep 17 00:00:00 2001 From: Jens Petersen Date: Jul 28 2018 15:53:29 +0000 Subject: revise .cabal --- diff --git a/ghc-lens-aeson.spec b/ghc-lens-aeson.spec index c8327dc..8b8d10a 100644 --- a/ghc-lens-aeson.spec +++ b/ghc-lens-aeson.spec @@ -1,4 +1,4 @@ -# generated by cabal-rpm-0.12.1 +# generated by cabal-rpm-0.12.5 # https://fedoraproject.org/wiki/Packaging:Haskell %global pkg_name lens-aeson @@ -8,12 +8,13 @@ Name: ghc-%{pkg_name} Version: 1.0.2 -Release: 4%{?dist} +Release: 5%{?dist} Summary: Law-abiding lenses for aeson License: MIT Url: https://hackage.haskell.org/package/%{pkg_name} Source0: https://hackage.haskell.org/package/%{pkgver}/%{pkgver}.tar.gz +Source1: https://hackage.haskell.org/package/%{pkgver}/%{pkg_name}.cabal#/%{pkgver}.cabal BuildRequires: ghc-Cabal-devel BuildRequires: ghc-rpm-macros @@ -56,6 +57,7 @@ This package provides the Haskell %{pkg_name} library development files. %prep %setup -q -n %{pkgver} +cp -p %{SOURCE1} %{pkg_name}.cabal %build @@ -87,6 +89,9 @@ This package provides the Haskell %{pkg_name} library development files. %changelog +* Sat Jul 28 2018 Jens Petersen - 1.0.2-5 +- revise .cabal + * Fri Jul 13 2018 Fedora Release Engineering - 1.0.2-4 - Rebuilt for https://fedoraproject.org/wiki/Fedora_29_Mass_Rebuild diff --git a/lens-aeson-1.0.2.cabal b/lens-aeson-1.0.2.cabal new file mode 100644 index 0000000..b011dc8 --- /dev/null +++ b/lens-aeson-1.0.2.cabal @@ -0,0 +1,81 @@ +name: lens-aeson +category: Numeric +version: 1.0.2 +x-revision: 6 +license: MIT +cabal-version: >= 1.8 +license-file: LICENSE +author: Edward A. Kmett +maintainer: Edward A. Kmett +stability: provisional +homepage: http://github.com/lens/lens-aeson/ +bug-reports: http://github.com/lens/lens-aeson/issues +copyright: + Copyright (C) 2012 Paul Wilson + Copyright (C) 2013 Edward A. Kmett +build-type: Custom +tested-with: GHC == 7.4.2, GHC == 7.6.3, GHC == 7.8.4, GHC == 7.10.3, GHC==8.0.2, GHC==8.2.1 +synopsis: Law-abiding lenses for aeson +description: Law-abiding lenses for aeson + +extra-source-files: + .travis.yml + .ghci + .gitignore + .vim.custom + travis/cabal-apt-install + travis/config + AUTHORS.markdown + README.markdown + CHANGELOG.markdown + Warning.hs + +source-repository head + type: git + location: https://github.com/lens/lens-aeson + +custom-setup + setup-depends: + base >= 4 && < 5, + Cabal, + cabal-doctest >= 1 && < 1.1 + +-- You can disable the doctests test suite with -f-test-doctests +flag test-doctests + default: True + manual: True + +library + build-depends: + base >= 4.5 && < 5, + lens >= 4.4 && < 5, + text >= 0.11.1.10 && < 1.3, + vector >= 0.9 && < 0.13, + unordered-containers >= 0.2.3 && < 0.3, + attoparsec >= 0.10 && < 0.14, + bytestring >= 0.9 && < 0.11, + aeson >= 0.7.0.5 && < 1.5, + scientific >= 0.3.2 && < 0.4 + + exposed-modules: + Data.Aeson.Lens + + ghc-options: -Wall -fwarn-tabs -O2 + hs-source-dirs: src + +test-suite doctests + type: exitcode-stdio-1.0 + main-is: doctests.hs + ghc-options: -Wall -threaded + hs-source-dirs: tests + + if !flag(test-doctests) + buildable: False + else + build-depends: + base, + doctest >= 0.11.1 && < 0.17, + generic-deriving, + lens-aeson, + semigroups >= 0.9, + simple-reflect >= 0.3.1