From 05d9964f0535f0df4c05634a273268d94695a781db875535962cc523b5f6dab3 Mon Sep 17 00:00:00 2001 From: Peter Simons Date: Fri, 10 Nov 2023 14:07:22 +0000 Subject: [PATCH 1/5] osc copypac from project:devel:languages:haskell:ghc-9.6.x package:ghc-yaml revision:5, using keep-link OBS-URL: https://build.opensuse.org/package/show/devel:languages:haskell/ghc-yaml?expand=0&rev=117 --- .gitattributes | 23 +++ .gitignore | 1 + ghc-yaml.changes | 427 ++++++++++++++++++++++++++++++++++++++++++ ghc-yaml.spec | 142 ++++++++++++++ yaml-0.11.11.2.tar.gz | 3 + yaml.cabal | 227 ++++++++++++++++++++++ 6 files changed, 823 insertions(+) create mode 100644 .gitattributes create mode 100644 .gitignore create mode 100644 ghc-yaml.changes create mode 100644 ghc-yaml.spec create mode 100644 yaml-0.11.11.2.tar.gz create mode 100644 yaml.cabal 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/ghc-yaml.changes b/ghc-yaml.changes new file mode 100644 index 0000000..f9a87fd --- /dev/null +++ b/ghc-yaml.changes @@ -0,0 +1,427 @@ +------------------------------------------------------------------- +Tue Jul 4 04:42:08 UTC 2023 - Peter Simons + +- Update yaml to version 0.11.11.2 revision 2. + Upstream has revised the Cabal build instructions on Hackage. + +------------------------------------------------------------------- +Sat Jul 1 18:43:54 UTC 2023 - Peter Simons + +- Update yaml to version 0.11.11.2. + ## 0.11.11.2 + + * Compat with aeson 2.2 + +------------------------------------------------------------------- +Wed Jun 14 12:46:51 UTC 2023 - Peter Simons + +- Update yaml to version 0.11.11.1. + ## 0.11.11.1 + + * For optparse-applicative-0.18: use `pretty` instead of `text` [#216](https://github.com/snoyberg/yaml/pull/216) + +------------------------------------------------------------------- +Thu Mar 30 17:09:10 UTC 2023 - Peter Simons + +- Updated spec file to conform with ghc-rpm-macros-2.5.2. + +------------------------------------------------------------------- +Fri Feb 24 05:17:15 UTC 2023 - Peter Simons + +- Update yaml to version 0.11.11.0. + ## 0.11.11.0 + + * Fix ambiguous occurrence `AesonException` + +------------------------------------------------------------------- +Tue Feb 7 04:04:26 UTC 2023 - Peter Simons + +- Update yaml to version 0.11.10.0. + ## 0.11.10.0 + + * Undo previous change (breakage with aeson 2) + + ## 0.11.9.0 + + * Data.Yaml.Pretty: provide key-sorting function with path to parent object [#206](https://github.com/snoyberg/yaml/pull/206) + +------------------------------------------------------------------- +Mon Oct 24 11:27:18 UTC 2022 - Peter Simons + +- Update yaml to version 0.11.8.0 revision 2. + Upstream has revised the Cabal build instructions on Hackage. + +------------------------------------------------------------------- +Thu Feb 24 12:19:07 UTC 2022 - Peter Simons + +- Update yaml to version 0.11.8.0. + ## 0.11.8.0 + + * Export `Parse` and `StringStyle` [#204](https://github.com/snoyberg/yaml/pull/204) + +------------------------------------------------------------------- +Tue Oct 12 10:51:16 UTC 2021 - psimons@suse.com + +- Update yaml to version 0.11.7.0. + ## 0.11.7.0 + + * Support `aeson` 2 [#202](https://github.com/snoyberg/yaml/pull/202) + +------------------------------------------------------------------- +Mon Sep 20 07:10:48 UTC 2021 - psimons@suse.com + +- Update yaml to version 0.11.6.0. + ## 0.11.6.0 + + * `yaml2json`: add `--help` and `--version` options [#197](https://github.com/snoyberg/yaml/pull/197) + * `json2yaml`: add `--help` and `--version` options [#198](https://github.com/snoyberg/yaml/pull/198) + * Add the `-o` options to both `yaml2json` and `json2yaml` [#200](https://github.com/snoyberg/yaml/pull/200) + +------------------------------------------------------------------- +Thu Dec 17 12:20:00 UTC 2020 - Ondřej Súkup + +- disable %{ix86} build + +------------------------------------------------------------------- +Fri Aug 21 11:18:55 UTC 2020 - psimons@suse.com + +- Update yaml to version 0.11.5.0. + ## 0.11.5.0 + + * New functions capable of parsing YAML streams containing multiple documents into a list of results: + * `decodeAllEither'` + * `decodeAllFileEither` + * `decodeAllFileWithWarnings` + * `decodeAllThrow` + * `decodeAllFileThrow` + +------------------------------------------------------------------- +Tue Aug 18 10:46:45 UTC 2020 - Peter Simons + +- Replace %setup -q with the more modern %autosetup macro. + +------------------------------------------------------------------- +Tue Jun 9 09:10:55 UTC 2020 - psimons@suse.com + +- Update yaml to version 0.11.4.0. + ## 0.11.4.0 + + * add `ToYaml` instance for `String` [#186](https://github.com/snoyberg/yaml/pull/186) + +------------------------------------------------------------------- +Wed May 6 06:54:10 UTC 2020 - psimons@suse.com + +- Update yaml to version 0.11.3.0. + ## 0.11.3.0 + + * Don't wrap up async exceptions [#185](https://github.com/snoyberg/yaml/issues/185) + +------------------------------------------------------------------- +Fri Nov 8 16:15:17 UTC 2019 - Peter Simons + +- Drop obsolete group attributes. + +------------------------------------------------------------------- +Thu Nov 7 06:41:50 UTC 2019 - psimons@suse.com + +- Update yaml to version 0.11.2.0. + ## 0.11.2.0 + + * Reduces some of the code duplication between the `encode` and `encodePretty` functions + * The output of `encodePretty` has been improved: + - Multiline strings now use `Literal` style instead of `SingleQuoted` + - Special keys are now quoted in mappings [#179](https://github.com/snoyberg/yaml/issues/179) + * Support for complex keys in mappings: [#182](https://github.com/snoyberg/yaml/issues/182) + - Adds `complexMapping` function to `Data.Yaml.Builder` + - Decode functions now return a `NonStringKey` error when attempting to decode a mapping with a complex key as it is not possible to decode these to an Aeson `Value` + * Adds missing `ToYaml` instances + +------------------------------------------------------------------- +Tue Aug 27 02:01:57 UTC 2019 - psimons@suse.com + +- Update yaml to version 0.11.1.2. + ## 0.11.1.2 + + * Compiles with GHC 8.8.1 (`MonadFail` split) + +------------------------------------------------------------------- +Sat Aug 24 02:01:14 UTC 2019 - psimons@suse.com + +- Update yaml to version 0.11.1.1. + ## 0.11.1.1 + + * Use the appropriate `Scientific` rendering function to avoid a memory overflow when rendering. The previously used function from `aeson` would not use scientific notation, and could use large amounts of memory for values such as `1e9999999999999`. + +------------------------------------------------------------------- +Sat Jun 29 02:01:17 UTC 2019 - psimons@suse.com + +- Update yaml to version 0.11.1.0. + ## 0.11.1.0 + + * Better error messages in the `Data.Yaml.Config` module [#168](https://github.com/snoyberg/yaml/issues/168) + * Add `LoadSettingsException` exception and remove error printing from `loadYamlSettings` [#172](https://github.com/snoyberg/yaml/pull/172) + +------------------------------------------------------------------- +Mon Oct 15 02:01:17 UTC 2018 - psimons@suse.com + +- Update yaml to version 0.11.0.0. + ## 0.11.0.0 + + * Split out the `libyaml` and `Text.Libyaml` code into its own package. [#145](https://github.com/snoyberg/yaml/issues/145) + +------------------------------------------------------------------- +Thu Oct 11 02:01:05 UTC 2018 - psimons@suse.com + +- Update yaml to version 0.10.4.0. + ## 0.10.4.0 + + * Add `decodeMarked` and `decodeFileMarked` functions to `Text.Libyaml`, and + extend native bindings to extract mark information. [#157](https://github.com/snoyberg/yaml/issues/157) + +------------------------------------------------------------------- +Wed Oct 10 19:23:55 UTC 2018 - psimons@suse.com + +- Update yaml to version 0.10.3.0. + ## 0.10.3.0 + + * Add support for anchors and aliases to Data.Yaml.Builder [#155](https://github.com/snoyberg/yaml/pull/155) + * Fix test suite for 32 bit machines [#158](https://github.com/snoyberg/yaml/issues/158) + + ## 0.10.2.0 + + * Add `EncodeOptions` and `FormatOptions` to control the style of the encoded YAML. [#153](https://github.com/snoyberg/yaml/pull/153) + * Default to using literal style for multiline strings [#152](https://github.com/snoyberg/yaml/issues/152) + + ## 0.10.1.1 + + * Correctly declare libyaml dependency on system-libyaml flag [#151](https://github.com/snoyberg/yaml/pull/151) + + ## 0.10.1 + + * Avoid incurring a `semigroups` dependency on recent GHCs. + * Fix a space leak that was introduced with `0.10.0` [#147](https://github.com/snoyberg/yaml/issues/147) + + ## 0.10.0 + + * Add `decodeFileWithWarnings` which returns warnings for duplicate fields + +------------------------------------------------------------------- +Wed Jul 18 14:26:49 UTC 2018 - psimons@suse.com + +- Cosmetic: replace tabs with blanks, strip trailing white space, + and update copyright headers with spec-cleaner. + +------------------------------------------------------------------- +Tue Jul 17 19:31:11 UTC 2018 - psimons@suse.com + +- Update yaml to version 0.9.0. + # ChangeLog for yaml + + ## 0.9.0 + + * Expose style and tags on mappings and sequences in Text.Libyaml [#141](https://github.com/snoyberg/yaml/pull/141) + + ## 0.8.32 + + * Escape keys as necessary [#137](https://github.com/snoyberg/yaml/issues/137) + * Support hexadecimal and octal number values [#135](https://github.com/snoyberg/yaml/issues/135) + * More resilient `isNumeric` (should reduce cases of unneeded quoting) + * hpackify + * src subdir + +------------------------------------------------------------------- +Fri Jul 13 14:31:38 UTC 2018 - psimons@suse.com + +- Update yaml to version 0.8.31.1. + ## 0.8.31.1 + + * Add a workaround for a cabal bug [haskell-infra/hackage-trustees#165](https://github.com/haskell-infra/hackage-trustees/issues/165) + + ## 0.8.31 + + * Add `decodeThrow` and `decodeFileThrow` convenience functions. + * Upgrade libyaml versions + * Deprecate `decode` and `decodeEither` + +------------------------------------------------------------------- +Mon May 14 17:02:11 UTC 2018 - psimons@suse.com + +- Update yaml to version 0.8.30. + * Removed `AppSettings` mentioned in `loadYamlSettings` error message. + * Deprecated `decodeFile` [#129](https://github.com/snoyberg/yaml/issues/129) + * Turn off executables by default [#103](https://github.com/snoyberg/yaml/issues/103) + * Add `Data.Yaml.TH.yamlQQ` + * Support conduit 1.3 + * Add `Semigroup` instance [#123](https://github.com/snoyberg/yaml/pull/123) + * Use `throwM` instead of `monadThrow` + * Drop aeson-qq dep (incompatible with Stackage Nightly) + * Tweaks to the executable `yaml2json` [#119](https://github.com/snoyberg/yaml/pull/119): + - Add command-line option `-h` and `--help` to show help message + - Error messages are now written to `stderr` instead of `stdout` + * New encodePretty option `setConfDropNull` to drop null values from objects [#116](https://github.com/snoyberg/yaml/issues/116) + +------------------------------------------------------------------- +Thu Aug 3 15:38:38 UTC 2017 - psimons@suse.com + +- Updated with latest spec-cleaner version 0.9.8-8-geadfbbf. + +------------------------------------------------------------------- +Mon Jul 17 03:01:35 UTC 2017 - psimons@suse.com + +- Update to version 0.8.23.3. + +------------------------------------------------------------------- +Mon Jun 19 21:01:49 UTC 2017 - psimons@suse.com + +- Update to version 0.8.23.1. + +------------------------------------------------------------------- +Wed May 31 14:01:08 UTC 2017 - psimons@suse.com + +- Update to version 0.8.23. + +------------------------------------------------------------------- +Thu May 18 09:52:25 UTC 2017 - psimons@suse.com + +- Update to version 0.8.22.1 with cabal2obs. + +------------------------------------------------------------------- +Mon Feb 27 10:12:13 UTC 2017 - psimons@suse.com + +- Update to version 0.8.22 with cabal2obs. + +------------------------------------------------------------------- +Mon Jan 30 09:29:22 UTC 2017 - psimons@suse.com + +- Update to version 0.8.21.2 with cabal2obs. + +------------------------------------------------------------------- +Sun Dec 4 19:47:38 UTC 2016 - psimons@suse.com + +- Update to version 0.8.21.1 with cabal2obs. + +------------------------------------------------------------------- +Thu Oct 27 15:55:14 UTC 2016 - psimons@suse.com + +- Update to version 0.8.20 with cabal2obs. + +------------------------------------------------------------------- +Mon Sep 26 06:52:12 UTC 2016 - psimons@suse.com + +- Update to version 0.8.18.7 with cabal2obs. + +------------------------------------------------------------------- +Thu Sep 15 06:35:46 UTC 2016 - psimons@suse.com + +- Update to version 0.8.18.6 revision 0 with cabal2obs. + +------------------------------------------------------------------- +Fri Jul 22 06:03:43 UTC 2016 - psimons@suse.com + +- Update to version 0.8.18.1 revision 0 with cabal2obs. + +------------------------------------------------------------------- +Sun Jul 10 17:27:47 UTC 2016 - psimons@suse.com + +- Update to version 0.8.18 revision 0 with cabal2obs. + +------------------------------------------------------------------- +Mon Jun 27 11:04:26 UTC 2016 - mimi.vx@gmail.com + +- update to 0.8.18 +* Switched yaml decode function for config file readers in Data.Yaml.Config + to the one from Data.Yaml.Include that supports !include syntax. + +------------------------------------------------------------------- +Fri Jun 10 06:57:00 UTC 2016 - mimi.vx@gmail.com + +- update to 0.8.17.2 +* Fix pretty-printing order of UnexpectedEvent's fields + +------------------------------------------------------------------- +Sat Apr 16 07:43:00 UTC 2016 - mimi.vx@gmail.com + +- update to 0.8.17.1 +* workaround for Cabal bug + +------------------------------------------------------------------- +Tue Apr 12 10:26:04 UTC 2016 - mimi.vx@gmail.com + +- update to 0.8.17 +* loadYamlSettingsArgs + +------------------------------------------------------------------- +Tue Feb 16 20:01:56 UTC 2016 - mimi.vx@gmail.com + +- update to 0.8.16 +* Add env variable parsing. loadYamlSettings can read config values from the + environment with Yaml that specifies an env var. The syntax is + var: _env:ENV_VAR:default + +------------------------------------------------------------------- +Wed Jan 20 13:48:32 UTC 2016 - mimi.vx@gmail.com + +- update to 0.8.15.3 +* Give a warning when compiling with GHCJS + +------------------------------------------------------------------- +Mon Dec 7 12:15:09 UTC 2015 - mimi.vx@gmail.com + +- update to 0.8.15.2 +* Canonicalise Monad instances + +------------------------------------------------------------------- +Sun Sep 13 13:22:11 UTC 2015 - mimi.vx@gmail.com + +- update to 0.8.15.1 +* Parse Scientific directly, avoiding loss in precision. + +------------------------------------------------------------------- +Mon Aug 31 08:46:59 UTC 2015 - mimi.vx@gmail.com + +- update to 0.8.14 +* Pretty print improvements for exceptions + +------------------------------------------------------------------- +Sun Aug 16 17:53:49 UTC 2015 - mimi.vx@gmail.com + +- update 0.8.13 +* Pretty module + +------------------------------------------------------------------- +Mon Jul 27 07:52:19 UTC 2015 - mimi.vx@gmail.com + +- update to 0.8.12 +* Proper handling of String "+123" + +------------------------------------------------------------------- +Tue Apr 28 10:44:08 UTC 2015 - mimi.vx@gmail.com + +- change libyaml deps from pkgconfig to direct libyaml-devel for SLE12 support + +------------------------------------------------------------------- +Mon Apr 27 08:33:55 UTC 2015 - mimi.vx@gmail.com + +- update to 0.8.11 +* Function to print prettier parse exceptions [#59](https://github.com/snoyberg/yaml/pull/59) + +------------------------------------------------------------------- +Wed Feb 25 08:18:36 UTC 2015 - mpluskal@suse.com + +- Update to 0.8.10.1: + * Add the Data.Yaml.Include module + +------------------------------------------------------------------- +Thu Oct 17 17:17:33 UTC 2013 - peter.trommler@ohm-hochschule.de + +- build against system libyaml + +------------------------------------------------------------------- +Wed Oct 9 05:58:06 UTC 2013 - sbahling@suse.com + +- add %defattr(-,root,root,-) to devel files + +------------------------------------------------------------------- +Sun Oct 6 13:45:56 UTC 2013 - sbahling@suse.com + +- Initial build version 0.8.5 diff --git a/ghc-yaml.spec b/ghc-yaml.spec new file mode 100644 index 0000000..2c20767 --- /dev/null +++ b/ghc-yaml.spec @@ -0,0 +1,142 @@ +# +# spec file for package ghc-yaml +# +# Copyright (c) 2023 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 yaml +%global pkgver %{pkg_name}-%{version} +%bcond_with tests +Name: ghc-%{pkg_name} +Version: 0.11.11.2 +Release: 0 +Summary: Support for parsing and rendering YAML documents +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/2.cabal#/%{pkg_name}.cabal +BuildRequires: ghc-Cabal-devel +BuildRequires: ghc-aeson-devel +BuildRequires: ghc-aeson-prof +BuildRequires: ghc-attoparsec-devel +BuildRequires: ghc-attoparsec-prof +BuildRequires: ghc-base-devel +BuildRequires: ghc-base-prof +BuildRequires: ghc-bytestring-devel +BuildRequires: ghc-bytestring-prof +BuildRequires: ghc-conduit-devel +BuildRequires: ghc-conduit-prof +BuildRequires: ghc-containers-devel +BuildRequires: ghc-containers-prof +BuildRequires: ghc-directory-devel +BuildRequires: ghc-directory-prof +BuildRequires: ghc-filepath-devel +BuildRequires: ghc-filepath-prof +BuildRequires: ghc-libyaml-devel +BuildRequires: ghc-libyaml-prof +BuildRequires: ghc-mtl-devel +BuildRequires: ghc-mtl-prof +BuildRequires: ghc-resourcet-devel +BuildRequires: ghc-resourcet-prof +BuildRequires: ghc-rpm-macros +BuildRequires: ghc-scientific-devel +BuildRequires: ghc-scientific-prof +BuildRequires: ghc-template-haskell-devel +BuildRequires: ghc-template-haskell-prof +BuildRequires: ghc-text-devel +BuildRequires: ghc-text-prof +BuildRequires: ghc-transformers-devel +BuildRequires: ghc-transformers-prof +BuildRequires: ghc-unordered-containers-devel +BuildRequires: ghc-unordered-containers-prof +BuildRequires: ghc-vector-devel +BuildRequires: ghc-vector-prof +ExcludeArch: %{ix86} +%if %{with tests} +BuildRequires: ghc-HUnit-devel +BuildRequires: ghc-HUnit-prof +BuildRequires: ghc-base-compat-devel +BuildRequires: ghc-base-compat-prof +BuildRequires: ghc-hspec-devel +BuildRequires: ghc-hspec-prof +BuildRequires: ghc-mockery-devel +BuildRequires: ghc-mockery-prof +BuildRequires: ghc-raw-strings-qq-devel +BuildRequires: ghc-raw-strings-qq-prof +BuildRequires: ghc-temporary-devel +BuildRequires: ghc-temporary-prof +%endif + +%description +README and API documentation are available at +. + +%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 + +%files devel -f %{name}-devel.files +%doc ChangeLog.md README.md + +%files -n ghc-%{pkg_name}-doc -f ghc-%{pkg_name}-doc.files +%license LICENSE + +%files -n ghc-%{pkg_name}-prof -f ghc-%{pkg_name}-prof.files + +%changelog diff --git a/yaml-0.11.11.2.tar.gz b/yaml-0.11.11.2.tar.gz new file mode 100644 index 0000000..a814c54 --- /dev/null +++ b/yaml-0.11.11.2.tar.gz @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:ee74923ee5b0fef74413c58aaa20ea59baf5d29d256a62fb47cc279570d9dc2f +size 31926 diff --git a/yaml.cabal b/yaml.cabal new file mode 100644 index 0000000..66de8b0 --- /dev/null +++ b/yaml.cabal @@ -0,0 +1,227 @@ +cabal-version: 1.12 + +-- This file has been generated from package.yaml by hpack version 0.35.1. +-- +-- see: https://github.com/sol/hpack + +name: yaml +version: 0.11.11.2 +x-revision: 2 +synopsis: Support for parsing and rendering YAML documents. +description: README and API documentation are available at +category: Data +stability: stable +homepage: https://github.com/snoyberg/yaml#readme +bug-reports: https://github.com/snoyberg/yaml/issues +author: Michael Snoyman , Anton Ageev ,Kirill Simonov +maintainer: Michael Snoyman +license: BSD3 +license-file: LICENSE +build-type: Simple +extra-source-files: + test/largest-string.yaml + test/json.yaml + test/resources/foo.yaml + test/resources/bar.yaml + test/resources/baz.yaml + test/resources/accent/foo.yaml + test/resources/loop/foo.yaml + test/resources/loop/bar.yaml + test/resources/empty.yaml + test/resources/empty2.yaml + README.md + ChangeLog.md + +source-repository head + type: git + location: https://github.com/snoyberg/yaml + +flag no-examples + description: don't build the examples + manual: False + default: True + +flag no-exe + description: don't install the yaml2json or json2yaml executables + manual: False + default: True + +library + exposed-modules: + Data.Yaml + Data.Yaml.Aeson + Data.Yaml.Builder + Data.Yaml.Config + Data.Yaml.Include + Data.Yaml.Internal + Data.Yaml.Parser + Data.Yaml.Pretty + Data.Yaml.TH + other-modules: + Paths_yaml + hs-source-dirs: + src + other-extensions: + LambdaCase + ghc-options: -Wall -Wcompat + build-depends: + aeson >=0.11 + , attoparsec >=0.11.3.0 + , base >=4.9.1 && <5 + , bytestring >=0.9.1.4 + , conduit >=1.2.8 && <1.4 + , containers + , directory + , filepath + , libyaml ==0.1.* + , mtl + , resourcet >=0.3 && <1.4 + , scientific >=0.3 + , template-haskell + , text + , transformers >=0.1 + , unordered-containers + , vector + default-language: Haskell2010 + +executable examples + main-is: Main.hs + other-modules: + Config + Simple + Paths_yaml + hs-source-dirs: + examples + ghc-options: -Wall -Wcompat + build-depends: + aeson >=0.11 + , attoparsec >=0.11.3.0 + , base >=4.9.1 && <5 + , bytestring >=0.9.1.4 + , conduit >=1.2.8 && <1.4 + , containers + , directory + , filepath + , libyaml ==0.1.* + , mtl + , resourcet >=0.3 && <1.4 + , scientific >=0.3 + , template-haskell + , text + , transformers >=0.1 + , unordered-containers + , vector + default-language: Haskell2010 + if flag(no-examples) + buildable: False + else + build-depends: + raw-strings-qq + , yaml + +executable json2yaml + main-is: json2yaml.hs + other-modules: + Common + Paths_yaml + hs-source-dirs: + exe + ghc-options: -Wall -Wcompat + build-depends: + aeson >=0.11 + , attoparsec >=0.11.3.0 + , base >=4.9.1 && <5 + , bytestring >=0.9.1.4 + , conduit >=1.2.8 && <1.4 + , containers + , directory + , filepath + , libyaml ==0.1.* + , mtl + , optparse-applicative + , resourcet >=0.3 && <1.4 + , scientific >=0.3 + , template-haskell + , text + , transformers >=0.1 + , unordered-containers + , vector + , yaml + default-language: Haskell2010 + if flag(no-exe) + buildable: False + +executable yaml2json + main-is: yaml2json.hs + other-modules: + Common + Paths_yaml + hs-source-dirs: + exe + other-extensions: + CPP + LambdaCase + NamedFieldPuns + ghc-options: -Wall -Wcompat + build-depends: + aeson >=0.11 + , attoparsec >=0.11.3.0 + , base >=4.9.1 && <5 + , bytestring >=0.9.1.4 + , conduit >=1.2.8 && <1.4 + , containers + , directory + , filepath + , libyaml ==0.1.* + , mtl + , optparse-applicative + , resourcet >=0.3 && <1.4 + , scientific >=0.3 + , template-haskell + , text + , transformers >=0.1 + , unordered-containers + , vector + , yaml + default-language: Haskell2010 + if flag(no-exe) + buildable: False + +test-suite spec + type: exitcode-stdio-1.0 + main-is: Spec.hs + other-modules: + Data.Yaml.IncludeSpec + Data.Yaml.THSpec + Data.YamlSpec + Paths_yaml + hs-source-dirs: + test + ghc-options: -Wall -Wcompat -with-rtsopts=-K1K + cpp-options: -DTEST + build-depends: + HUnit + , aeson >=0.11 + , attoparsec >=0.11.3.0 + , base >=4.9.1 && <5 + , base-compat + , bytestring >=0.9.1.4 + , conduit >=1.2.8 && <1.4 + , containers + , directory + , filepath + , hspec >=1.3 + , libyaml ==0.1.* + , mockery + , mtl + , raw-strings-qq + , resourcet >=0.3 && <1.4 + , scientific >=0.3 + , template-haskell + , temporary + , text + , transformers >=0.1 + , unordered-containers + , vector + , yaml + default-language: Haskell2010 From 2a8ccab0a11861f32028f5cfbd42e3b259fc6e8703c845f734875cc1aeb9e634 Mon Sep 17 00:00:00 2001 From: Peter Simons Date: Thu, 16 Nov 2023 16:59:38 +0000 Subject: [PATCH 2/5] osc copypac from project:devel:languages:haskell:ghc-9.6.x package:ghc-yaml revision:6, using keep-link OBS-URL: https://build.opensuse.org/package/show/devel:languages:haskell/ghc-yaml?expand=0&rev=118 --- ghc-yaml.changes | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/ghc-yaml.changes b/ghc-yaml.changes index f9a87fd..acc2d9d 100644 --- a/ghc-yaml.changes +++ b/ghc-yaml.changes @@ -1,3 +1,8 @@ +------------------------------------------------------------------- +Thu Nov 16 13:27:04 UTC 2023 - Peter Simons + +- Strip CRLF line endings from the bundled Cabal file. + ------------------------------------------------------------------- Tue Jul 4 04:42:08 UTC 2023 - Peter Simons From dce67e50af0501b834735225823e411a97e4ee5891cb860dccb9b6655c860bb7 Mon Sep 17 00:00:00 2001 From: Peter Simons Date: Wed, 22 Nov 2023 09:17:23 +0000 Subject: [PATCH 3/5] osc copypac from project:devel:languages:haskell:ghc-9.6.x package:ghc-yaml revision:7, using keep-link OBS-URL: https://build.opensuse.org/package/show/devel:languages:haskell/ghc-yaml?expand=0&rev=119 --- ghc-yaml.changes | 5 - yaml.cabal | 454 +++++++++++++++++++++++------------------------ 2 files changed, 227 insertions(+), 232 deletions(-) diff --git a/ghc-yaml.changes b/ghc-yaml.changes index acc2d9d..f9a87fd 100644 --- a/ghc-yaml.changes +++ b/ghc-yaml.changes @@ -1,8 +1,3 @@ -------------------------------------------------------------------- -Thu Nov 16 13:27:04 UTC 2023 - Peter Simons - -- Strip CRLF line endings from the bundled Cabal file. - ------------------------------------------------------------------- Tue Jul 4 04:42:08 UTC 2023 - Peter Simons diff --git a/yaml.cabal b/yaml.cabal index 66de8b0..d0b2e42 100644 --- a/yaml.cabal +++ b/yaml.cabal @@ -1,227 +1,227 @@ -cabal-version: 1.12 - --- This file has been generated from package.yaml by hpack version 0.35.1. --- --- see: https://github.com/sol/hpack - -name: yaml -version: 0.11.11.2 -x-revision: 2 -synopsis: Support for parsing and rendering YAML documents. -description: README and API documentation are available at -category: Data -stability: stable -homepage: https://github.com/snoyberg/yaml#readme -bug-reports: https://github.com/snoyberg/yaml/issues -author: Michael Snoyman , Anton Ageev ,Kirill Simonov -maintainer: Michael Snoyman -license: BSD3 -license-file: LICENSE -build-type: Simple -extra-source-files: - test/largest-string.yaml - test/json.yaml - test/resources/foo.yaml - test/resources/bar.yaml - test/resources/baz.yaml - test/resources/accent/foo.yaml - test/resources/loop/foo.yaml - test/resources/loop/bar.yaml - test/resources/empty.yaml - test/resources/empty2.yaml - README.md - ChangeLog.md - -source-repository head - type: git - location: https://github.com/snoyberg/yaml - -flag no-examples - description: don't build the examples - manual: False - default: True - -flag no-exe - description: don't install the yaml2json or json2yaml executables - manual: False - default: True - -library - exposed-modules: - Data.Yaml - Data.Yaml.Aeson - Data.Yaml.Builder - Data.Yaml.Config - Data.Yaml.Include - Data.Yaml.Internal - Data.Yaml.Parser - Data.Yaml.Pretty - Data.Yaml.TH - other-modules: - Paths_yaml - hs-source-dirs: - src - other-extensions: - LambdaCase - ghc-options: -Wall -Wcompat - build-depends: - aeson >=0.11 - , attoparsec >=0.11.3.0 - , base >=4.9.1 && <5 - , bytestring >=0.9.1.4 - , conduit >=1.2.8 && <1.4 - , containers - , directory - , filepath - , libyaml ==0.1.* - , mtl - , resourcet >=0.3 && <1.4 - , scientific >=0.3 - , template-haskell - , text - , transformers >=0.1 - , unordered-containers - , vector - default-language: Haskell2010 - -executable examples - main-is: Main.hs - other-modules: - Config - Simple - Paths_yaml - hs-source-dirs: - examples - ghc-options: -Wall -Wcompat - build-depends: - aeson >=0.11 - , attoparsec >=0.11.3.0 - , base >=4.9.1 && <5 - , bytestring >=0.9.1.4 - , conduit >=1.2.8 && <1.4 - , containers - , directory - , filepath - , libyaml ==0.1.* - , mtl - , resourcet >=0.3 && <1.4 - , scientific >=0.3 - , template-haskell - , text - , transformers >=0.1 - , unordered-containers - , vector - default-language: Haskell2010 - if flag(no-examples) - buildable: False - else - build-depends: - raw-strings-qq - , yaml - -executable json2yaml - main-is: json2yaml.hs - other-modules: - Common - Paths_yaml - hs-source-dirs: - exe - ghc-options: -Wall -Wcompat - build-depends: - aeson >=0.11 - , attoparsec >=0.11.3.0 - , base >=4.9.1 && <5 - , bytestring >=0.9.1.4 - , conduit >=1.2.8 && <1.4 - , containers - , directory - , filepath - , libyaml ==0.1.* - , mtl - , optparse-applicative - , resourcet >=0.3 && <1.4 - , scientific >=0.3 - , template-haskell - , text - , transformers >=0.1 - , unordered-containers - , vector - , yaml - default-language: Haskell2010 - if flag(no-exe) - buildable: False - -executable yaml2json - main-is: yaml2json.hs - other-modules: - Common - Paths_yaml - hs-source-dirs: - exe - other-extensions: - CPP - LambdaCase - NamedFieldPuns - ghc-options: -Wall -Wcompat - build-depends: - aeson >=0.11 - , attoparsec >=0.11.3.0 - , base >=4.9.1 && <5 - , bytestring >=0.9.1.4 - , conduit >=1.2.8 && <1.4 - , containers - , directory - , filepath - , libyaml ==0.1.* - , mtl - , optparse-applicative - , resourcet >=0.3 && <1.4 - , scientific >=0.3 - , template-haskell - , text - , transformers >=0.1 - , unordered-containers - , vector - , yaml - default-language: Haskell2010 - if flag(no-exe) - buildable: False - -test-suite spec - type: exitcode-stdio-1.0 - main-is: Spec.hs - other-modules: - Data.Yaml.IncludeSpec - Data.Yaml.THSpec - Data.YamlSpec - Paths_yaml - hs-source-dirs: - test - ghc-options: -Wall -Wcompat -with-rtsopts=-K1K - cpp-options: -DTEST - build-depends: - HUnit - , aeson >=0.11 - , attoparsec >=0.11.3.0 - , base >=4.9.1 && <5 - , base-compat - , bytestring >=0.9.1.4 - , conduit >=1.2.8 && <1.4 - , containers - , directory - , filepath - , hspec >=1.3 - , libyaml ==0.1.* - , mockery - , mtl - , raw-strings-qq - , resourcet >=0.3 && <1.4 - , scientific >=0.3 - , template-haskell - , temporary - , text - , transformers >=0.1 - , unordered-containers - , vector - , yaml - default-language: Haskell2010 +cabal-version: 1.12 + +-- This file has been generated from package.yaml by hpack version 0.35.1. +-- +-- see: https://github.com/sol/hpack + +name: yaml +version: 0.11.11.2 +x-revision: 2 +synopsis: Support for parsing and rendering YAML documents. +description: README and API documentation are available at +category: Data +stability: stable +homepage: https://github.com/snoyberg/yaml#readme +bug-reports: https://github.com/snoyberg/yaml/issues +author: Michael Snoyman , Anton Ageev ,Kirill Simonov +maintainer: Michael Snoyman +license: BSD3 +license-file: LICENSE +build-type: Simple +extra-source-files: + test/largest-string.yaml + test/json.yaml + test/resources/foo.yaml + test/resources/bar.yaml + test/resources/baz.yaml + test/resources/accent/foo.yaml + test/resources/loop/foo.yaml + test/resources/loop/bar.yaml + test/resources/empty.yaml + test/resources/empty2.yaml + README.md + ChangeLog.md + +source-repository head + type: git + location: https://github.com/snoyberg/yaml + +flag no-examples + description: don't build the examples + manual: False + default: True + +flag no-exe + description: don't install the yaml2json or json2yaml executables + manual: False + default: True + +library + exposed-modules: + Data.Yaml + Data.Yaml.Aeson + Data.Yaml.Builder + Data.Yaml.Config + Data.Yaml.Include + Data.Yaml.Internal + Data.Yaml.Parser + Data.Yaml.Pretty + Data.Yaml.TH + other-modules: + Paths_yaml + hs-source-dirs: + src + other-extensions: + LambdaCase + ghc-options: -Wall -Wcompat + build-depends: + aeson >=0.11 + , attoparsec >=0.11.3.0 + , base >=4.9.1 && <5 + , bytestring >=0.9.1.4 + , conduit >=1.2.8 && <1.4 + , containers + , directory + , filepath + , libyaml ==0.1.* + , mtl + , resourcet >=0.3 && <1.4 + , scientific >=0.3 + , template-haskell + , text + , transformers >=0.1 + , unordered-containers + , vector + default-language: Haskell2010 + +executable examples + main-is: Main.hs + other-modules: + Config + Simple + Paths_yaml + hs-source-dirs: + examples + ghc-options: -Wall -Wcompat + build-depends: + aeson >=0.11 + , attoparsec >=0.11.3.0 + , base >=4.9.1 && <5 + , bytestring >=0.9.1.4 + , conduit >=1.2.8 && <1.4 + , containers + , directory + , filepath + , libyaml ==0.1.* + , mtl + , resourcet >=0.3 && <1.4 + , scientific >=0.3 + , template-haskell + , text + , transformers >=0.1 + , unordered-containers + , vector + default-language: Haskell2010 + if flag(no-examples) + buildable: False + else + build-depends: + raw-strings-qq + , yaml + +executable json2yaml + main-is: json2yaml.hs + other-modules: + Common + Paths_yaml + hs-source-dirs: + exe + ghc-options: -Wall -Wcompat + build-depends: + aeson >=0.11 + , attoparsec >=0.11.3.0 + , base >=4.9.1 && <5 + , bytestring >=0.9.1.4 + , conduit >=1.2.8 && <1.4 + , containers + , directory + , filepath + , libyaml ==0.1.* + , mtl + , optparse-applicative + , resourcet >=0.3 && <1.4 + , scientific >=0.3 + , template-haskell + , text + , transformers >=0.1 + , unordered-containers + , vector + , yaml + default-language: Haskell2010 + if flag(no-exe) + buildable: False + +executable yaml2json + main-is: yaml2json.hs + other-modules: + Common + Paths_yaml + hs-source-dirs: + exe + other-extensions: + CPP + LambdaCase + NamedFieldPuns + ghc-options: -Wall -Wcompat + build-depends: + aeson >=0.11 + , attoparsec >=0.11.3.0 + , base >=4.9.1 && <5 + , bytestring >=0.9.1.4 + , conduit >=1.2.8 && <1.4 + , containers + , directory + , filepath + , libyaml ==0.1.* + , mtl + , optparse-applicative + , resourcet >=0.3 && <1.4 + , scientific >=0.3 + , template-haskell + , text + , transformers >=0.1 + , unordered-containers + , vector + , yaml + default-language: Haskell2010 + if flag(no-exe) + buildable: False + +test-suite spec + type: exitcode-stdio-1.0 + main-is: Spec.hs + other-modules: + Data.Yaml.IncludeSpec + Data.Yaml.THSpec + Data.YamlSpec + Paths_yaml + hs-source-dirs: + test + ghc-options: -Wall -Wcompat -with-rtsopts=-K1K + cpp-options: -DTEST + build-depends: + HUnit + , aeson >=0.11 + , attoparsec >=0.11.3.0 + , base >=4.9.1 && <5 + , base-compat + , bytestring >=0.9.1.4 + , conduit >=1.2.8 && <1.4 + , containers + , directory + , filepath + , hspec >=1.3 + , libyaml ==0.1.* + , mockery + , mtl + , raw-strings-qq + , resourcet >=0.3 && <1.4 + , scientific >=0.3 + , template-haskell + , temporary + , text + , transformers >=0.1 + , unordered-containers + , vector + , yaml + default-language: Haskell2010 From 6859c809856efc0498e21694d536945e15ba58797be43b9a1886db5785cd9caa Mon Sep 17 00:00:00 2001 From: Peter Simons Date: Tue, 10 Dec 2024 11:26:01 +0000 Subject: [PATCH 4/5] osc copypac from project:devel:languages:haskell:ghc-9.10.x package:ghc-yaml revision:3, using keep-link OBS-URL: https://build.opensuse.org/package/show/devel:languages:haskell/ghc-yaml?expand=0&rev=120 --- ghc-yaml.spec | 12 ++++++++++-- 1 file changed, 10 insertions(+), 2 deletions(-) diff --git a/ghc-yaml.spec b/ghc-yaml.spec index 2c20767..05424a9 100644 --- a/ghc-yaml.spec +++ b/ghc-yaml.spec @@ -27,6 +27,7 @@ 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/2.cabal#/%{pkg_name}.cabal +BuildRequires: chrpath BuildRequires: ghc-Cabal-devel BuildRequires: ghc-aeson-devel BuildRequires: ghc-aeson-prof @@ -48,6 +49,10 @@ BuildRequires: ghc-libyaml-devel BuildRequires: ghc-libyaml-prof BuildRequires: ghc-mtl-devel BuildRequires: ghc-mtl-prof +BuildRequires: ghc-optparse-applicative-devel +BuildRequires: ghc-optparse-applicative-prof +BuildRequires: ghc-raw-strings-qq-devel +BuildRequires: ghc-raw-strings-qq-prof BuildRequires: ghc-resourcet-devel BuildRequires: ghc-resourcet-prof BuildRequires: ghc-rpm-macros @@ -73,8 +78,6 @@ BuildRequires: ghc-hspec-devel BuildRequires: ghc-hspec-prof BuildRequires: ghc-mockery-devel BuildRequires: ghc-mockery-prof -BuildRequires: ghc-raw-strings-qq-devel -BuildRequires: ghc-raw-strings-qq-prof BuildRequires: ghc-temporary-devel BuildRequires: ghc-temporary-prof %endif @@ -114,10 +117,12 @@ This package provides the Haskell %{pkg_name} profiling library. cp -p %{SOURCE1} %{pkg_name}.cabal %build +%define cabal_configure_options -f-no-examples -f-no-exe %ghc_lib_build %install %ghc_lib_install +%ghc_fix_rpath %{pkg_name}-%{version} %check %cabal_test @@ -130,6 +135,9 @@ cp -p %{SOURCE1} %{pkg_name}.cabal %files -f %{name}.files %license LICENSE +%{_bindir}/examples +%{_bindir}/json2yaml +%{_bindir}/yaml2json %files devel -f %{name}-devel.files %doc ChangeLog.md README.md From 2bad3628959ecde968a89f5e16b36dec59f9f3df28d94c86efbff9d891a62bd7 Mon Sep 17 00:00:00 2001 From: Peter Simons Date: Mon, 16 Dec 2024 09:30:51 +0000 Subject: [PATCH 5/5] osc copypac from project:devel:languages:haskell:ghc-9.10.x package:ghc-yaml revision:4, using keep-link OBS-URL: https://build.opensuse.org/package/show/devel:languages:haskell/ghc-yaml?expand=0&rev=121 --- ghc-yaml.changes | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/ghc-yaml.changes b/ghc-yaml.changes index f9a87fd..2725536 100644 --- a/ghc-yaml.changes +++ b/ghc-yaml.changes @@ -1,3 +1,8 @@ +------------------------------------------------------------------- +Mon Dec 16 07:58:52 UTC 2024 - Peter Simons + +- Disable building of the examples and yaml executable. + ------------------------------------------------------------------- Tue Jul 4 04:42:08 UTC 2023 - Peter Simons