cabal-version:       1.18
name:                dl-fedora
version:             2.0.1
synopsis:            Fedora image download tool
description:
            Tool to download Fedora and Centos Stream iso and image files.
-- can change to GPL-3.0-or-later with Cabal-2.2
license:             GPL-3
license-file:        LICENSE
homepage:            https://github.com/juhp/dl-fedora
bug-reports:         https://github.com/juhp/dl-fedora/issues
author:              Jens Petersen <juhpetersen@gmail.com>
maintainer:          Jens Petersen <juhpetersen@gmail.com>
copyright:           2019-2025  Jens Petersen
category:            Utility
build-type:          Simple
extra-doc-files:     README.md
                     CHANGELOG.md
tested-with:         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.6, GHC == 9.8.4, GHC == 9.10.1

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

executable dl-fedora
  hs-source-dirs:      src
  main-is:             Main.hs
  other-modules:       Paths_dl_fedora
                       DownloadDir

  build-depends:       base < 5,
                       ansi-wl-pprint,
                       bytestring,
                       directory >= 1.2.5,
                       extra,
                       fedora-releases >= 0.2.1,
                       filepath,
                       http-client,
                       http-client-tls,
                       http-directory >= 0.1.10,
                       http-types,
                       optparse-applicative,
                       regex-posix,
                       simple-cmd >= 0.2,
                       simple-cmd-args >= 0.1.8,
                       simple-prompt >= 0.2,
                       pretty-terminal,
                       text,
                       time,
                       unix,
                       xdg-userdirs
  if impl(ghc<8.0)
      Build-depends: semigroups

  ghc-options:         -fwarn-missing-signatures
                       -Wall

  default-language:    Haskell2010

test-suite test
    main-is: tests.hs
    type: exitcode-stdio-1.0
    hs-source-dirs: test

    default-language: Haskell2010

    ghc-options:   -Wall
    build-depends: base >= 4 && < 5
                 , fedora-releases
                 , simple-cmd
    build-tool-depends: dl-fedora:dl-fedora