commit 4df124513d03e5c5d6687a5c08362cc88008505d25c2944eadfb09d08989b820 Author: Peter Simons Date: Fri Jul 19 12:40:31 2024 +0000 osc copypac from project:devel:languages:haskell:ghc-9.8.x package:ghc-HsYAML revision:4, using keep-link OBS-URL: https://build.opensuse.org/package/show/devel:languages:haskell/ghc-HsYAML?expand=0&rev=67 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/HsYAML-0.2.1.4.tar.gz b/HsYAML-0.2.1.4.tar.gz new file mode 100644 index 0000000..9fcd34f --- /dev/null +++ b/HsYAML-0.2.1.4.tar.gz @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:b580a9463c1192ea4687950f07f582268e55e2c51c1874dcdade5a8b83da1a26 +size 84298 diff --git a/HsYAML.cabal b/HsYAML.cabal new file mode 100644 index 0000000..69bd912 --- /dev/null +++ b/HsYAML.cabal @@ -0,0 +1,151 @@ +cabal-version: 1.14 +name: HsYAML +version: 0.2.1.4 +x-revision: 1 + +synopsis: Pure Haskell YAML 1.2 processor +homepage: https://github.com/haskell-hvr/HsYAML +bug-reports: https://github.com/haskell-hvr/HsYAML/issues +license: GPL-2 +X-SPDX-License-Identifier: GPL-2.0-or-later +license-files: LICENSE.GPLv2 LICENSE.GPLv3 +author: Herbert Valerio Riedel +maintainer: https://github.com/haskell-hvr/HsYAML +copyright: 2015-2018 Herbert Valerio Riedel + , 2007-2008 Oren Ben-Kiki +category: Text +build-type: Simple +tested-with: + GHC == 9.10.1 + GHC == 9.8.2 + GHC == 9.6.5 + GHC == 9.4.8 + GHC == 9.2.8 + GHC == 9.0.2 + GHC == 8.10.7 + GHC == 8.8.4 + GHC == 8.6.5 + GHC == 8.4.4 + GHC == 8.2.2 + GHC == 8.0.2 + +description: + @HsYAML@ is a [YAML 1.2](http://yaml.org/spec/1.2/spec.html) processor, i.e. a library for parsing and serializing YAML documents. + + . + Features of @HsYAML@ include: + . + * Pure Haskell implementation with small dependency footprint and emphasis on strict compliance with the [YAML 1.2 specification](http://yaml.org/spec/1.2/spec.html). + * Direct decoding to native Haskell types via (@aeson@-inspired) typeclass-based API (see "Data.YAML"). + * Allows round-tripping while preserving ordering, anchors, and comments at Event-level. + * Support for constructing custom YAML node graph representation (including support for cyclic YAML data structures). + * Support for the standard (untyped) /Failsafe/, (strict) /JSON/, and (flexible) /Core/ \"schemas\" providing implicit typing rules as defined in the YAML 1.2 specification (including support for user-defined custom schemas; see "Data.YAML.Schema"). + * Support for emitting YAML using /Failsafe/, (strict) /JSON/, and (flexible) /Core/ \"schemas\" (including support for user-defined custom encoding schemas; see "Data.YAML.Schema"). + * Event-based API resembling LibYAML's Event-based API (see "Data.YAML.Event"). + * Low-level API access to lexical token-based scanner (see "Data.YAML.Token"). + . + See also the package which allows to decode and encode YAML by leveraging @aeson@'s 'FromJSON' and 'ToJSON' instances. + +extra-source-files: + ChangeLog.md + +source-repository head + type: git + location: https://github.com/haskell-hvr/HsYAML.git + +flag exe + description: Enable @exe:yaml-test@ component + manual: True + default: False + +library + hs-source-dirs: src + exposed-modules: Data.YAML + , Data.YAML.Schema + , Data.YAML.Event + , Data.YAML.Token + other-modules: Data.YAML.Loader + , Data.YAML.Dumper + , Data.YAML.Internal + , Data.YAML.Event.Internal + , Data.YAML.Event.Writer + , Data.YAML.Pos + , Data.YAML.Schema.Internal + , Data.YAML.Token.Encoding + , Util + , Data.DList + + default-language: Haskell2010 + default-extensions: TypeOperators + other-extensions: DeriveGeneric + FlexibleContexts + FlexibleInstances + FunctionalDependencies + MultiParamTypeClasses + OverloadedStrings + PostfixOperators + RecordWildCards + RecursiveDo + Safe + ScopedTypeVariables + Trustworthy + TypeSynonymInstances + + build-depends: base >= 4.9 && < 5 + , bytestring >= 0.9 && < 0.13 + , containers >= 0.4.2 && < 0.8 + , deepseq >= 1.3.0 && < 1.6 + , text >= 1.2.3 && < 2.2 + , mtl >= 2.2.1 && < 2.4 + , parsec >= 3.1.13.0 && < 3.2 + , transformers >= 0.4 && < 0.7 + + ghc-options: + -Wall + -Wcompat + +executable yaml-test + hs-source-dirs: src-test + main-is: Main.hs + other-modules: TML + + default-language: Haskell2010 + + if flag(exe) + build-depends: HsYAML + -- inherited constraints + , bytestring >= 0.10.8.0 + , base + , text + , containers + , mtl + -- non-inherited + , megaparsec >= 7.0 && < 10 + , microaeson == 0.1.* + , filepath >= 1.4 && < 1.6 + , directory >= 1.2 && < 1.4 + else + buildable: False + + ghc-options: -rtsopts + +test-suite tests + default-language: Haskell2010 + type: exitcode-stdio-1.0 + hs-source-dirs: tests + main-is: Tests.hs + + ghc-options: -rtsopts + + build-depends: HsYAML + -- inherited constraints + , bytestring >= 0.10.8.0 + , base + , text + , containers + , mtl + -- non-inherited + -- lower bounds chosen from lts-11.22 (GHC 8.2) + , QuickCheck >= 2.10.1 && < 2.16 + , tasty >= 1.0.1.1 && < 1.6 + , tasty-quickcheck >= 0.9.2 && < 1 diff --git a/ghc-HsYAML.changes b/ghc-HsYAML.changes new file mode 100644 index 0000000..90373d9 --- /dev/null +++ b/ghc-HsYAML.changes @@ -0,0 +1,81 @@ +------------------------------------------------------------------- +Tue Jun 25 09:45:27 UTC 2024 - Peter Simons + +- Update HsYAML to version 0.2.1.4 revision 1. + Upstream has revised the Cabal build instructions on Hackage. + +------------------------------------------------------------------- +Thu Apr 25 10:29:23 UTC 2024 - Peter Simons + +- Update HsYAML to version 0.2.1.4. + ### 0.2.1.4 + + _2024-04-25_ + + * Drop support for GHC 7 + * Testsuite: relax lower bounds to accommodate LTS 11.22 (GHC 8.2) for new Stack CI + * Tested with GHC 8.0 - 9.10.0 (alpha3) + +------------------------------------------------------------------- +Tue Apr 16 18:46:43 UTC 2024 - Peter Simons + +- Update HsYAML to version 0.2.1.3 revision 1. + Upstream has revised the Cabal build instructions on Hackage. + +------------------------------------------------------------------- +Sat Oct 14 11:01:30 UTC 2023 - Peter Simons + +- Update HsYAML to version 0.2.1.3. + ### 0.2.1.3 + + _2023-10-14_ + + * Pacify `x-partial` warning of GHC 9.8 + * Tested with GHC 7.10 - 9.8.1 + +------------------------------------------------------------------- +Fri Sep 29 11:59:37 UTC 2023 - Peter Simons + +- Update HsYAML to version 0.2.1.2. + ### 0.2.1.2 + + _2023-09-29_ + + * Add `default-extensions: TypeOperators` to silence warning under GHC ≥ 9.4. + * Support latest versions of dependencies. + * Tested with GHC 7.10 - 9.8.0 + +------------------------------------------------------------------- +Thu Sep 14 07:42:47 UTC 2023 - Peter Simons + +- Update HsYAML to version 0.2.1.1 revision 6. + Upstream has revised the Cabal build instructions on Hackage. + +------------------------------------------------------------------- +Mon Aug 28 12:13:14 UTC 2023 - Peter Simons + +- Update HsYAML to version 0.2.1.1 revision 5. + Upstream has revised the Cabal build instructions on Hackage. + +------------------------------------------------------------------- +Tue Aug 1 16:05:18 UTC 2023 - Peter Simons + +- Update HsYAML to version 0.2.1.1 revision 4. + Upstream has revised the Cabal build instructions on Hackage. + +------------------------------------------------------------------- +Wed Jul 12 22:23:03 UTC 2023 - Peter Simons + +- Update HsYAML to version 0.2.1.1 revision 3. + Upstream has revised the Cabal build instructions on Hackage. + +------------------------------------------------------------------- +Thu Mar 30 17:07:07 UTC 2023 - Peter Simons + +- Updated spec file to conform with ghc-rpm-macros-2.5.2. + +------------------------------------------------------------------- +Sat Feb 25 11:26:38 UTC 2023 - Peter Simons + +- Add HsYAML at version 0.2.1.1 revision 2. + diff --git a/ghc-HsYAML.spec b/ghc-HsYAML.spec new file mode 100644 index 0000000..8216791 --- /dev/null +++ b/ghc-HsYAML.spec @@ -0,0 +1,142 @@ +# +# spec file for package ghc-HsYAML +# +# Copyright (c) 2024 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 HsYAML +%global pkgver %{pkg_name}-%{version} +%bcond_with tests +Name: ghc-%{pkg_name} +Version: 0.2.1.4 +Release: 0 +Summary: Pure Haskell YAML 1.2 processor +License: GPL-2.0-or-later +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 +BuildRequires: ghc-bytestring-devel +BuildRequires: ghc-bytestring-prof +BuildRequires: ghc-containers-devel +BuildRequires: ghc-containers-prof +BuildRequires: ghc-deepseq-devel +BuildRequires: ghc-deepseq-prof +BuildRequires: ghc-mtl-devel +BuildRequires: ghc-mtl-prof +BuildRequires: ghc-parsec-devel +BuildRequires: ghc-parsec-prof +BuildRequires: ghc-rpm-macros +BuildRequires: ghc-text-devel +BuildRequires: ghc-text-prof +BuildRequires: ghc-transformers-devel +BuildRequires: ghc-transformers-prof +ExcludeArch: %{ix86} +%if %{with tests} +BuildRequires: ghc-QuickCheck-devel +BuildRequires: ghc-QuickCheck-prof +BuildRequires: ghc-tasty-devel +BuildRequires: ghc-tasty-prof +BuildRequires: ghc-tasty-quickcheck-devel +BuildRequires: ghc-tasty-quickcheck-prof +%endif + +%description +'HsYAML' is a [YAML 1.2](http://yaml.org/spec/1.2/spec.html) processor, i.e. +a library for parsing and serializing YAML documents. + +Features of 'HsYAML' include: + +* Pure Haskell implementation with small dependency footprint and emphasis on +strict compliance with the [YAML 1.2 +specification](http://yaml.org/spec/1.2/spec.html). * Direct decoding to native +Haskell types via ('aeson'-inspired) typeclass-based API (see "Data.YAML"). +* Allows round-tripping while preserving ordering, anchors, and comments at +Event-level. * Support for constructing custom YAML node graph representation +(including support for cyclic YAML data structures). * Support for the standard +(untyped) /Failsafe/, (strict) /JSON/, and (flexible) /Core/ "schemas" +providing implicit typing rules as defined in the YAML 1.2 specification +(including support for user-defined custom schemas; see "Data.YAML.Schema"). +* Support for emitting YAML using /Failsafe/, (strict) /JSON/, and (flexible) +/Core/ "schemas" (including support for user-defined custom encoding schemas; +see "Data.YAML.Schema"). * Event-based API resembling LibYAML's Event-based API +(see "Data.YAML.Event"). * Low-level API access to lexical token-based scanner +(see "Data.YAML.Token"). + +See also the package +which allows to decode and encode YAML by leveraging 'aeson''s 'FromJSON' and +'ToJSON' instances. + +%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. + +%package -n ghc-%{pkg_name}-doc +Summary: Haskell %{pkg_name} library documentation +Requires: ghc-filesystem +BuildArch: noarch + +%description -n ghc-%{pkg_name}-doc +This package provides the Haskell %{pkg_name} library documentation. + +%package -n ghc-%{pkg_name}-prof +Summary: Haskell %{pkg_name} profiling library +Requires: ghc-%{pkg_name}-devel = %{version}-%{release} +Supplements: (ghc-%{pkg_name}-devel and ghc-prof) + +%description -n ghc-%{pkg_name}-prof +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 + +%install +%ghc_lib_install + +%check +%cabal_test + +%post devel +%ghc_pkg_recache + +%postun devel +%ghc_pkg_recache + +%files -f %{name}.files +%license LICENSE.GPLv2 +%license LICENSE.GPLv3 + +%files devel -f %{name}-devel.files +%doc ChangeLog.md + +%files -n ghc-%{pkg_name}-doc -f ghc-%{pkg_name}-doc.files +%license LICENSE.GPLv2 +%license LICENSE.GPLv3 + +%files -n ghc-%{pkg_name}-prof -f ghc-%{pkg_name}-prof.files + +%changelog