From 5402c2611bf385410c3467eba348c725e6228d10 Mon Sep 17 00:00:00 2001 From: Jens Petersen Date: Sat, 18 Jun 2022 00:21:40 +0800 Subject: [PATCH] revise .cabal --- ConfigFile-1.1.4.cabal | 64 ++++++++++++++++++++++++++++++++++++++++++ ghc-ConfigFile.spec | 2 ++ 2 files changed, 66 insertions(+) create mode 100644 ConfigFile-1.1.4.cabal diff --git a/ConfigFile-1.1.4.cabal b/ConfigFile-1.1.4.cabal new file mode 100644 index 0000000..9607f85 --- /dev/null +++ b/ConfigFile-1.1.4.cabal @@ -0,0 +1,64 @@ +Name: ConfigFile +Version: 1.1.4 +x-revision: 1 +License: BSD3 +Maintainer: John Goerzen +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 diff --git a/ghc-ConfigFile.spec b/ghc-ConfigFile.spec index ae75934..d3d17d5 100644 --- a/ghc-ConfigFile.spec +++ b/ghc-ConfigFile.spec @@ -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