From 851b26740add6f69c7800ab03a5288f557c5f7e0 Mon Sep 17 00:00:00 2001 From: Jens Petersen Date: Fri, 21 Feb 2020 01:26:36 +0800 Subject: [PATCH] revise .cabal --- ghc-optparse-applicative.spec | 7 +- optparse-applicative-0.14.3.0.cabal | 108 ++++++++++++++++++++++++++++ 2 files changed, 113 insertions(+), 2 deletions(-) create mode 100644 optparse-applicative-0.14.3.0.cabal diff --git a/ghc-optparse-applicative.spec b/ghc-optparse-applicative.spec index 5919e4c..bfe3248 100644 --- a/ghc-optparse-applicative.spec +++ b/ghc-optparse-applicative.spec @@ -1,4 +1,4 @@ -# generated by cabal-rpm-2.0.2 +# generated by cabal-rpm-2.0.3 # https://fedoraproject.org/wiki/Packaging:Haskell %global pkg_name optparse-applicative @@ -15,6 +15,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: @@ -73,6 +74,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 @@ -125,7 +127,8 @@ This package provides the Haskell %{pkg_name} profiling library. %changelog * Wed Feb 19 2020 Jens Petersen - 0.14.3.0-5 -- refresh to cabal-rpm-2.0.2 +- refresh to cabal-rpm-2.0.3 +- revised .cabal * Tue Jan 28 2020 Fedora Release Engineering - 0.14.3.0-4 - Rebuilt for https://fedoraproject.org/wiki/Fedora_32_Mass_Rebuild diff --git a/optparse-applicative-0.14.3.0.cabal b/optparse-applicative-0.14.3.0.cabal new file mode 100644 index 0000000..c91ee17 --- /dev/null +++ b/optparse-applicative-0.14.3.0.cabal @@ -0,0 +1,108 @@ +name: optparse-applicative +version: 0.14.3.0 +x-revision: 2 +synopsis: Utilities and combinators for parsing command line options +description: + optparse-applicative is a haskell library for parsing options + on the command line, providing a powerful applicative interface + for composing these options. + . + optparse-applicative takes care of reading and validating the + arguments passed to the command line, handling and reporting + errors, generating a usage line, a comprehensive help screen, + and enabling context-sensitive bash completions. + . + See the included README for detailed instructions and examples, + which is also available on github + . +license: BSD3 +license-file: LICENSE +author: Paolo Capriotti, Huw Campbell +maintainer: huw.campbell@gmail.com +copyright: (c) 2012-2017 Paolo Capriotti +category: System, CLI, Options, Parsing +build-type: Simple +cabal-version: >= 1.8 +extra-source-files: CHANGELOG.md + README.md + tests/alt.err.txt + tests/cabal.err.txt + tests/carry.err.txt + tests/commands.err.txt + tests/commands_header.err.txt + tests/commands_header_full.err.txt + tests/dropback.err.txt + tests/hello.err.txt + tests/helponempty.err.txt + tests/helponemptysub.err.txt + tests/formatting.err.txt + tests/nested.err.txt + tests/subparsers.err.txt + +homepage: https://github.com/pcapriotti/optparse-applicative +bug-reports: https://github.com/pcapriotti/optparse-applicative/issues + +source-repository head + type: git + location: https://github.com/pcapriotti/optparse-applicative.git + +library + -- Monad-without-fail + build-depends: base <4.13 + + ghc-options: -Wall + + -- See https://ghc.haskell.org/trac/ghc/wiki/Migration/8.0#base-4.9.0.0 + if impl(ghc >= 8.0) + ghc-options: -Wno-redundant-constraints -Wcompat -Wnoncanonical-monad-instances -Wnoncanonical-monadfail-instances + + exposed-modules: Options.Applicative + , Options.Applicative.Arrows + , Options.Applicative.BashCompletion + , Options.Applicative.Builder + , Options.Applicative.Builder.Completer + , Options.Applicative.Builder.Internal + , Options.Applicative.Common + , Options.Applicative.Extra + , Options.Applicative.Help + , Options.Applicative.Help.Chunk + , Options.Applicative.Help.Core + , Options.Applicative.Help.Levenshtein + , Options.Applicative.Help.Pretty + , Options.Applicative.Help.Types + , Options.Applicative.Types + , Options.Applicative.Internal + + build-depends: base == 4.* + , transformers >= 0.2 && < 0.6 + , transformers-compat >= 0.3 && < 0.7 + , process >= 1.0 && < 1.7 + , ansi-wl-pprint >= 0.6.6 && < 0.7 + + if !impl(ghc >= 8) + build-depends: semigroups >= 0.10 && < 0.20 + , fail == 4.9.* + +test-suite optparse-applicative-tests + type: exitcode-stdio-1.0 + + main-is: test.hs + + ghc-options: -Wall -threaded -O2 -funbox-strict-fields + + hs-source-dirs: + tests + + other-modules: Examples.Alternatives + , Examples.Cabal + , Examples.Commands + , Examples.Formatting + , Examples.Hello + + build-depends: base + , bytestring == 0.10.* + , optparse-applicative + , QuickCheck >= 2.8 && < 2.14 + + if !impl(ghc >= 8) + build-depends: semigroups