revise .cabal

This commit is contained in:
Jens Petersen 2022-06-18 00:21:40 +08:00
parent f683065d2b
commit 5402c2611b
2 changed files with 66 additions and 0 deletions

64
ConfigFile-1.1.4.cabal Normal file
View File

@ -0,0 +1,64 @@
Name: ConfigFile
Version: 1.1.4
x-revision: 1
License: BSD3
Maintainer: John Goerzen <jgoerzen@complete.org>
Author: John Goerzen
Copyright: Copyright (c) 2004-2014 John Goerzen
license-file: COPYRIGHT
extra-source-files: README,
Makefile,
COPYRIGHT, LGPL-2.1, BSD3,
testsrc/ConfigParser/test.cfg
Category: Parsing
homepage: http://software.complete.org/configfile
synopsis: Configuration file reading & writing
Description: Parser and writer for handling sectioned config files in
Haskell.
.
The ConfigFile module works with configuration files in a standard
format that is easy for the user to edit, easy for the programmer
to work with, yet remains powerful and flexible. It is inspired by,
and compatible with, Python's ConfigParser module. It uses files
that resemble Windows .INI-style files, but with numerous
improvements.
.
ConfigFile provides simple calls to both read and write config files.
It's possible to make a config file parsable by this module,
the Unix shell, and make.
Stability: Stable
Build-Type: Simple
Cabal-Version: >=1.2.3
Flag buildtests
description: Build the executable to run unit tests
default: False
Library
build-depends: mtl <2.3
Hs-Source-Dirs: src
Exposed-Modules: Data.ConfigFile,
Data.ConfigFile.Types,
Data.ConfigFile.Parser,
Data.ConfigFile.Monadic
Other-Modules: Data.ConfigFile.Lexer
Extensions: ExistentialQuantification, OverlappingInstances,
UndecidableInstances, TypeSynonymInstances, FlexibleContexts,
FlexibleInstances
Build-Depends: parsec, base < 5,
mtl, MissingH>=1.0.0, containers
GHC-Options: -O2 -Wall
Executable runtests
if flag(buildtests)
Buildable: True
Build-depends: HUnit, testpack
else
Buildable: False
Main-Is: runtests.hs
HS-Source-Dirs: testsrc, src, .
Other-Modules: Tests, ConfigParser.Maintest, ConfigParser.Parsertest
Extensions: ExistentialQuantification, OverlappingInstances,
UndecidableInstances, CPP, TypeSynonymInstances, FlexibleContexts,
FlexibleInstances

View File

@ -16,6 +16,7 @@ License: BSD or LGPLv2+
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:
@ -80,6 +81,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