commit 51932665ac22e372950fcd4e1cd8f5be600960b9251adac499629c63b38540cc Author: Peter Simons Date: Tue Jun 16 10:56:28 2020 +0000 osc copypac from project:devel:languages:haskell:ghc-8.10.x package:ghc-config-ini revision:2, using keep-link OBS-URL: https://build.opensuse.org/package/show/devel:languages:haskell/ghc-config-ini?expand=0&rev=1 diff --git a/.gitattributes b/.gitattributes new file mode 100644 index 0000000..9b03811 --- /dev/null +++ b/.gitattributes @@ -0,0 +1,23 @@ +## Default LFS +*.7z filter=lfs diff=lfs merge=lfs -text +*.bsp filter=lfs diff=lfs merge=lfs -text +*.bz2 filter=lfs diff=lfs merge=lfs -text +*.gem filter=lfs diff=lfs merge=lfs -text +*.gz filter=lfs diff=lfs merge=lfs -text +*.jar filter=lfs diff=lfs merge=lfs -text +*.lz filter=lfs diff=lfs merge=lfs -text +*.lzma filter=lfs diff=lfs merge=lfs -text +*.obscpio filter=lfs diff=lfs merge=lfs -text +*.oxt filter=lfs diff=lfs merge=lfs -text +*.pdf filter=lfs diff=lfs merge=lfs -text +*.png filter=lfs diff=lfs merge=lfs -text +*.rpm filter=lfs diff=lfs merge=lfs -text +*.tbz filter=lfs diff=lfs merge=lfs -text +*.tbz2 filter=lfs diff=lfs merge=lfs -text +*.tgz filter=lfs diff=lfs merge=lfs -text +*.ttf filter=lfs diff=lfs merge=lfs -text +*.txz filter=lfs diff=lfs merge=lfs -text +*.whl filter=lfs diff=lfs merge=lfs -text +*.xz filter=lfs diff=lfs merge=lfs -text +*.zip filter=lfs diff=lfs merge=lfs -text +*.zst filter=lfs diff=lfs merge=lfs -text diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..57affb6 --- /dev/null +++ b/.gitignore @@ -0,0 +1 @@ +.osc diff --git a/config-ini-0.2.4.0.tar.gz b/config-ini-0.2.4.0.tar.gz new file mode 100644 index 0000000..c3a93c7 --- /dev/null +++ b/config-ini-0.2.4.0.tar.gz @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:6e5194e8acb7d189f0904852138990d03b64f86b9fde8f591ee1341d5627d535 +size 24677 diff --git a/config-ini.cabal b/config-ini.cabal new file mode 100644 index 0000000..ab06b42 --- /dev/null +++ b/config-ini.cabal @@ -0,0 +1,94 @@ +name: config-ini +version: 0.2.4.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 +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 && <1.3 + , unordered-containers >=0.2.7 && <0.3 + , transformers >=0.4.1 && <0.6 + , megaparsec >=7 && <9 + 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 + , 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 new file mode 100644 index 0000000..73b9e4b --- /dev/null +++ b/ghc-config-ini.changes @@ -0,0 +1,5 @@ +------------------------------------------------------------------- +Tue Jun 9 09:26:21 UTC 2020 - psimons@suse.com + +- Add config-ini at version 0.2.4.0. + diff --git a/ghc-config-ini.spec b/ghc-config-ini.spec new file mode 100644 index 0000000..9ca27be --- /dev/null +++ b/ghc-config-ini.spec @@ -0,0 +1,85 @@ +# +# spec file for package ghc-config-ini +# +# Copyright (c) 2020 SUSE LLC +# +# All modifications and additions to the file contributed by third parties +# remain the property of their copyright owners, unless otherwise agreed +# upon. The license for this file, and modifications and additions to the +# file, is the same license as for the pristine package itself (unless the +# license for the pristine package is not an Open Source License, in which +# case the license is the MIT License). An "Open Source License" is a +# license that conforms to the Open Source Definition (Version 1.9) +# published by the Open Source Initiative. + +# Please submit bugfixes or comments via https://bugs.opensuse.org/ +# + + +%global pkg_name config-ini +%bcond_with tests +Name: ghc-%{pkg_name} +Version: 0.2.4.0 +Release: 0 +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-containers-devel +BuildRequires: ghc-megaparsec-devel +BuildRequires: ghc-rpm-macros +BuildRequires: ghc-text-devel +BuildRequires: ghc-transformers-devel +BuildRequires: ghc-unordered-containers-devel +%if %{with tests} +BuildRequires: ghc-directory-devel +BuildRequires: ghc-hedgehog-devel +BuildRequires: ghc-ini-devel +%endif + +%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). + +%package devel +Summary: Haskell %{pkg_name} library development files +Requires: %{name} = %{version}-%{release} +Requires: ghc-compiler = %{ghc_version} +Requires(post): ghc-compiler = %{ghc_version} +Requires(postun): ghc-compiler = %{ghc_version} + +%description devel +This package provides the Haskell %{pkg_name} library development files. + +%prep +%setup -q -n %{pkg_name}-%{version} +cp -p %{SOURCE1} %{pkg_name}.cabal + +%build +%ghc_lib_build + +%install +%ghc_lib_install + +%check +%cabal_test + +%post devel +%ghc_pkg_recache + +%postun devel +%ghc_pkg_recache + +%files -f %{name}.files +%license LICENSE + +%files devel -f %{name}-devel.files +%doc CHANGELOG.md README.md + +%changelog