cabal-version:       2.0
name:                fbrnch
version:             1.6
synopsis:            Fedora packager tool to build package branches
description:
            fbrnch (fedora branch or "f-branch" for short) is
            a convenient packaging tool for Fedora Packagers,
            with integration for Bugzilla, Koji, and Bodhi.
            .
            Features include:
            .
            - merging and building a package across release branches
            .
            - automated parallel builds of sets of packages in dependency order
            .
            - creating, updating and listing one's package reviews
            .
            - requesting repos for new approved packages and branch requests
            .
            - import srpms from package reviews
            .
            - progressive copr builds
            .
            and many more commands.
homepage:            https://github.com/juhp/fbrnch
bug-reports:         https://github.com/juhp/fbrnch/issues
license:             GPL-2
license-file:        LICENSE
author:              Jens Petersen <petersen@redhat.com>
maintainer:          Jens Petersen <petersen@fedoraproject.org>
copyright:           2019-2024 Jens Petersen
category:            Distribution
build-type:          Simple
extra-doc-files:     CHANGELOG.md
                     README.md
tested-with:         GHC == 8.0.2, GHC == 8.2.2, GHC == 8.4.4, GHC == 8.6.5,
                     GHC == 8.8.4, GHC == 8.10.7, GHC == 9.0.2, GHC == 9.2.8,
                     GHC == 9.4.8, GHC == 9.6.5, GHC == 9.8.2

source-repository head
  type:                git
  location:            https://github.com/juhp/fbrnch.git

executable fbrnch
  main-is:             Main.hs
  autogen-modules:     Paths_fbrnch
  other-modules:       Bodhi
                       Branches
                       Bugzilla
                       Cmd.Autospec
                       Cmd.Bugs
                       Cmd.Build
                       Cmd.Bump
                       Cmd.Clone
                       Cmd.Commit
                       Cmd.Compare
                       Cmd.Copr
                       Cmd.CreateReview
                       Cmd.Diff
                       Cmd.Fetch
                       Cmd.FTBFS
                       Cmd.Import
                       Cmd.Install
                       Cmd.ListBranches
                       Cmd.ListPackages
                       Cmd.Local
                       Cmd.Merge
                       Cmd.Mock
                       Cmd.Override
                       Cmd.Owner
                       Cmd.Parallel
                       Cmd.Prep
                       Cmd.Pull
                       Cmd.Push
                       --Cmd.Repoquery
                       Cmd.RequestBranch
                       Cmd.RequestRepo
                       Cmd.ReviewPackage
                       Cmd.Reviews
                       Cmd.Scratch
                       Cmd.SideTags
                       Cmd.Sort
                       Cmd.SrcDeps
                       Cmd.Status
                       Cmd.Switch
                       Cmd.Unpushed
                       Cmd.Update
                       Cmd.UpdateReview
                       Cmd.WaitRepo
                       Common
                       Common.System
                       Common.Text
                       Git
                       InterleaveOutput
                       Koji
                       Krb
                       ListReviews
                       Package
                       Pagure
                       Patch
                       Paths_fbrnch
                       PkgReview
                       Repoquery
                       RpmBuild
                       Types

  hs-source-dirs:      src
  default-language:    Haskell2010

  build-depends:       aeson,
                       async,
                       -- pretty-terminal depends on base >= 4.9 (ghc8)
                       base >= 4.9 && < 5,
                       bodhi,
                       bugzilla-redhat >= 1.0.1,
                       bytestring,
                       config-ini,
                       copr-api >= 0.2,
                       directory >= 1.2.3,
                       either,
                       email-validate,
                       extra,
                       fedora-releases >= 0.2,
                       filepath,
                       http-conduit,
                       http-directory >= 0.1.5,
                       http-query,
                       koji,
                       network-uri,
                       pagure >= 0.2.1,
                       pretty-terminal,
                       process,
                       -- regex-tdfa,
                       rpmbuild-order >= 0.4.12,
                       rpm-nvr >= 0.1.2,
                       safe,
                       say,
                       select-rpms >= 0.2,
                       simple-cmd >= 0.2.3,
                       simple-cmd-args >= 0.1.8,
                       simple-prompt >= 0.2.3,
                       text,
                       time,
                       typed-process >= 0.2.4.0,
                       utf8-string,
                       unix,
                       xdg-basedir

  if impl(ghc<8.3)
       build-depends: semigroups
  if impl(ghc<8.4)
       build-depends: http-common < 0.8.3.4
  if impl(ghc<9)
       build-depends: unordered-containers

  ghc-options:         -threaded
                       -Wall
                       -Wcompat
                       -Widentities
                       -Wincomplete-uni-patterns
                       -Wincomplete-record-updates
  if impl(ghc >= 8.0)
    ghc-options:       -Wredundant-constraints
  if impl(ghc >= 8.2)
    ghc-options:       -fhide-source-paths
  if impl(ghc >= 8.4)
    ghc-options:       -Wmissing-export-lists
                       -Wpartial-fields
  if impl(ghc >= 8.10)
    ghc-options:       -Wunused-packages