From a0e308641216310a32d71308526eea4660afa83a5dd9260dd33d291d41eb8f27 Mon Sep 17 00:00:00 2001 From: Peter Simons Date: Sat, 15 Apr 2023 21:01:10 +0000 Subject: [PATCH] osc copypac from project:devel:languages:haskell:ghc-9.4.x package:ghc-config-ini revision:8, using keep-link OBS-URL: https://build.opensuse.org/package/show/devel:languages:haskell/ghc-config-ini?expand=0&rev=22 --- config-ini.cabal | 95 ++++++++++++++++++++++++++++++++++++++++++ ghc-config-ini.changes | 6 +++ ghc-config-ini.spec | 2 + 3 files changed, 103 insertions(+) create mode 100644 config-ini.cabal diff --git a/config-ini.cabal b/config-ini.cabal new file mode 100644 index 0000000..d634e40 --- /dev/null +++ b/config-ini.cabal @@ -0,0 +1,95 @@ +name: config-ini +version: 0.2.5.0 +x-revision: 1 +synopsis: A library for simple INI-based configuration files. +homepage: https://github.com/aisamanra/config-ini +bug-reports: https://github.com/aisamanra/config-ini/issues +description: The @config-ini@ library is a set of small monadic languages + for writing simple configuration languages with convenient, + human-readable error messages. + . + > parseConfig :: IniParser (Text, Int, Bool) + > parseConfig = section "NETWORK" $ do + > user <- field "user" + > port <- fieldOf "port" number + > enc <- fieldFlagDef "encryption" True + > return (user, port, enc) + +license: BSD3 +license-file: LICENSE +author: Getty Ritter +maintainer: Getty Ritter +copyright: ©2018 Getty Ritter +category: Configuration +build-type: Simple +cabal-version: 1.18 +tested-with: GHC == 8.8.4, GHC == 8.10.7, GHC == 9.0.2, GHC == 9.2.4, GHC == 9.4.2 +extra-source-files: + README.md, + CHANGELOG.md, + test/prewritten/cases/*.hs, + test/prewritten/cases/*.ini + +source-repository head + type: git + location: git://github.com/aisamanra/config-ini.git + +flag enable-doctests + description: Build doctest modules as well (can be finicky) + default: False + +library + hs-source-dirs: src + exposed-modules: Data.Ini.Config + , Data.Ini.Config.Bidir + , Data.Ini.Config.Raw + ghc-options: -Wall + if impl(ghc > 8.0) + ghc-options: -fno-warn-redundant-constraints + build-depends: base >=4.8 && <5 + , containers >=0.5 && <0.7 + , text >=1.2.2 && <2.1 + , unordered-containers >=0.2.7 && <0.3 + , transformers >=0.4.1 && <0.7 + , megaparsec >=7 && <10 + default-language: Haskell2010 + +test-suite test-ini-compat + type: exitcode-stdio-1.0 + ghc-options: -Wall -threaded + default-language: Haskell2010 + hs-source-dirs: test/ini-compat + main-is: Main.hs + build-depends: base + , ini >=0.4 + , config-ini + , hedgehog + , containers + , unordered-containers + , text + +test-suite test-prewritten + type: exitcode-stdio-1.0 + ghc-options: -Wall + default-language: Haskell2010 + hs-source-dirs: test/prewritten + main-is: Main.hs + build-depends: base + , config-ini + , containers + , unordered-containers + , text + , directory + +test-suite test-doctest + if impl(ghc < 7.10) || !flag(enable-doctests) + buildable: False + type: exitcode-stdio-1.0 + ghc-options: -Wall + default-language: Haskell2010 + hs-source-dirs: test/doctest + main-is: Main.hs + build-depends: base + , doctest + , microlens + , text diff --git a/ghc-config-ini.changes b/ghc-config-ini.changes index 83c1f22..511bf96 100644 --- a/ghc-config-ini.changes +++ b/ghc-config-ini.changes @@ -1,3 +1,9 @@ +------------------------------------------------------------------- +Fri Apr 14 16:20:16 UTC 2023 - Peter Simons + +- Update config-ini to version 0.2.5.0 revision 1. + Upstream has revised the Cabal build instructions on Hackage. + ------------------------------------------------------------------- Thu Mar 30 17:06:19 UTC 2023 - Peter Simons diff --git a/ghc-config-ini.spec b/ghc-config-ini.spec index dba797f..737eda9 100644 --- a/ghc-config-ini.spec +++ b/ghc-config-ini.spec @@ -26,6 +26,7 @@ Summary: A library for simple INI-based configuration files License: BSD-3-Clause URL: https://hackage.haskell.org/package/%{pkg_name} Source0: https://hackage.haskell.org/package/%{pkg_name}-%{version}/%{pkg_name}-%{version}.tar.gz +Source1: https://hackage.haskell.org/package/%{pkg_name}-%{version}/revision/1.cabal#/%{pkg_name}.cabal BuildRequires: ghc-Cabal-devel BuildRequires: ghc-base-devel BuildRequires: ghc-base-prof @@ -86,6 +87,7 @@ This package provides the Haskell %{pkg_name} profiling library. %prep %autosetup -n %{pkg_name}-%{version} +cp -p %{SOURCE1} %{pkg_name}.cabal %build %ghc_lib_build