name:               codec-rpm
version:            0.1.2
synopsis:           A library for manipulating RPM files
description:        This module provides a library for reading RPM files and converting them
                    into useful data structures.  There is currently no way to operate in
                    reverse - that is, for building an RPM file out of a data structure.
homepage:           https://github.com/weldr/codec-rpm
category:           Distribution
author:             Chris Lumens
maintainer:         clumens@redhat.com
license:            LGPL
license-file:       LICENSE
cabal-version:      >= 1.10
build-type:         Simple

extra-source-files: ChangeLog.md,
                    Makefile,
                    README.md,
                    tests/Codec/RPM/*.hs

extra-doc-files:    examples/inspect.hs,
                    examples/rpm2json.hs,
                    examples/unrpm.hs

source-repository   head
    type:           git
    location:       https://github.com/weldr/codec-rpm

library
    exposed-modules:    Codec.RPM.Parse,
                        Codec.RPM.Tags,
                        Codec.RPM.Types,
                        Codec.RPM.Version

    other-modules:      Codec.RPM.Internal.Numbers

    build-depends:      attoparsec >= 0.12.1.4 && < 0.14,
                        attoparsec-binary >= 0.2 && < 0.3,
                        base >= 4.7 && < 5.0,
                        bytestring >= 0.10 && < 0.11,
                        conduit >= 1.2.8 && < 1.3,
                        conduit-combinators >= 1.1.0 && < 1.2,
                        conduit-extra >= 1.1.15 && < 1.2,
                        mtl >= 2.2.1 && < 2.3,
                        parsec >= 3.1.11 && < 3.2,
                        pretty >= 1.1.2.0,
                        resourcet >= 1.1.9 && < 1.2,
                        text >= 1.2.2.0 && < 1.3

    default-language:   Haskell2010

    ghc-options:        -Wall

test-suite tests
    type:               exitcode-stdio-1.0
    hs-source-dirs:     tests
    main-is:            Spec.hs
    
    build-depends:      HUnit >= 1.6.0.0 && < 1.7,
                        hspec >= 2.4.4 && < 2.5,
                        hspec-attoparsec >= 0.1.0.2 && < 0.2,
                        base >= 4.7 && < 5.0,
                        bytestring >= 0.10 && < 0.11,
                        attoparsec >= 0.12.1.4 && < 0.13,
                        codec-rpm,
                        text >= 1.2.2.2 && < 1.3

    default-language:   Haskell2010

    ghc-options:        -Wall