commit 4e6e5f44d6653ea3f4d43d33643410568a94c466 Author: Alexey Lyubimov Date: Sat Aug 19 11:40:46 2023 +0300 import ghc-aeson-1.5.6.0-2.el9 diff --git a/.ghc-aeson.metadata b/.ghc-aeson.metadata new file mode 100644 index 0000000..1fe4ae5 --- /dev/null +++ b/.ghc-aeson.metadata @@ -0,0 +1 @@ +e7861ce0c029568559a99a2d691741971c0521c0 SOURCES/aeson-1.5.6.0.tar.gz diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..8894d4d --- /dev/null +++ b/.gitignore @@ -0,0 +1 @@ +SOURCES/aeson-1.5.6.0.tar.gz diff --git a/SOURCES/aeson-1.5.6.0.cabal b/SOURCES/aeson-1.5.6.0.cabal new file mode 100644 index 0000000..6840e64 --- /dev/null +++ b/SOURCES/aeson-1.5.6.0.cabal @@ -0,0 +1,258 @@ +name: aeson +version: 1.5.6.0 +x-revision: 5 +license: BSD3 +license-file: LICENSE +category: Text, Web, JSON +copyright: (c) 2011-2016 Bryan O'Sullivan + (c) 2011 MailRank, Inc. +author: Bryan O'Sullivan +maintainer: Adam Bergmark +stability: experimental +tested-with: GHC == 7.8.4, GHC == 7.10.3, GHC == 8.0.2, GHC == 8.2.2, GHC == 8.4.4, GHC == 8.6.5, GHC == 8.8.3, GHC == 8.10.1 +synopsis: Fast JSON parsing and encoding +cabal-version: >= 1.10 +homepage: https://github.com/haskell/aeson +bug-reports: https://github.com/haskell/aeson/issues +build-type: Simple +description: + A JSON parsing and encoding library optimized for ease of use + and high performance. + . + To get started, see the documentation for the @Data.Aeson@ module + below. + . + (A note on naming: in Greek mythology, Aeson was the father of Jason.) + +extra-source-files: + *.yaml + README.markdown + cbits/*.c + changelog.md + include/*.h + tests/JSONTestSuite/test_parsing/*.json + tests/JSONTestSuite/test_transform/*.json + tests/golden/*.expected + src-ffi/Data/Aeson/Parser/*.hs + src-pure/Data/Aeson/Parser/*.hs + benchmarks/json-data/*.json + +flag developer + description: operate in developer mode + default: False + manual: True + +flag fast + description: compile without optimizations + default: False + manual: True + +flag bytestring-builder + description: Depend on the bytestring-builder package for backwards compatibility. + default: False + manual: False + +flag cffi + description: Controls whether to include c-ffi bits or pure haskell. Default to False for security. + default: False + manual: True + +library + default-language: Haskell2010 + hs-source-dirs: src attoparsec-iso8601/src + + exposed-modules: + Data.Aeson + Data.Aeson.Encoding + Data.Aeson.Parser + Data.Aeson.Text + Data.Aeson.Types + Data.Aeson.TH + Data.Aeson.QQ.Simple + + Data.Aeson.Encoding.Internal + Data.Aeson.Internal + Data.Aeson.Internal.Time + Data.Aeson.Parser.Internal + + -- Deprecated modules + exposed-modules: + Data.Aeson.Encode + + other-modules: + Data.Aeson.Encoding.Builder + Data.Aeson.Internal.Functions + Data.Aeson.Parser.Unescape + Data.Aeson.Parser.Time + Data.Aeson.Types.FromJSON + Data.Aeson.Types.Generic + Data.Aeson.Types.ToJSON + Data.Aeson.Types.Class + Data.Aeson.Types.Internal + Data.Attoparsec.Time + Data.Attoparsec.Time.Internal + + -- GHC bundled libs + build-depends: + base >= 4.7.0.0 && < 5, + bytestring >= 0.10.4.0 && < 0.11.2, + containers >= 0.5.5.1 && < 0.7, + deepseq >= 1.3.0.0 && < 1.5, + ghc-prim >= 0.2 && < 0.8, + template-haskell >= 2.9.0.0 && < 2.18, + text >= 1.2.3.0 && < 1.3, + time >= 1.4 && < 1.13 + + if impl(ghc >= 8.0) + build-depends: bytestring >= 0.10.8.1 + + -- Compat + build-depends: + base-compat-batteries >= 0.10.0 && < 0.13, + time-compat >= 1.9.4 && < 1.10 + + if !impl(ghc >= 8.6) + build-depends: + contravariant >=1.4.1 && <1.6 + + if !impl(ghc >= 8.0) + -- `Data.Semigroup` and `Control.Monad.Fail` and `Control.Monad.IO.Class` are available in base only since GHC 8.0 / base 4.9 + build-depends: + semigroups >= 0.18.5 && < 0.21, + transformers >= 0.3.0.0 && < 0.7, + transformers-compat >= 0.6.2 && < 0.8, + fail == 4.9.* + + if !impl(ghc >= 7.10) + -- `Numeric.Natural` is available in base only since GHC 7.10 / base 4.8 + build-depends: nats >= 1.1.1 && < 1.2, + void >= 0.7.2 && < 0.8 + + -- Other dependencies + build-depends: + attoparsec >= 0.13.2.2 && < 0.15, + data-fix >= 0.3 && < 0.4, + dlist >= 0.8.0.4 && < 1.1, + hashable >= 1.2.7.0 && < 1.4, + primitive >= 0.7.0.1 && < 0.8, + scientific >= 0.3.6.2 && < 0.4, + strict >= 0.4 && < 0.5, + tagged >= 0.8.6 && < 0.9, + th-abstraction >= 0.2.8.0 && < 0.5, + these >= 1.1 && < 1.2, + unordered-containers >= 0.2.10.0 && < 0.3, + uuid-types >= 1.0.3 && < 1.1, + vector >= 0.12.0.1 && < 0.13 + + ghc-options: -Wall + + if flag(developer) + ghc-options: -Werror + ghc-prof-options: -auto-all + + if flag(fast) + ghc-options: -O0 + else + ghc-options: -O2 + + include-dirs: include + if impl(ghcjs) || !flag(cffi) + hs-source-dirs: src-pure + other-modules: Data.Aeson.Parser.UnescapePure + else + c-sources: cbits/unescape_string.c + cpp-options: -DCFFI + hs-source-dirs: src-ffi + other-modules: Data.Aeson.Parser.UnescapeFFI + +test-suite aeson-tests + default-language: Haskell2010 + type: exitcode-stdio-1.0 + hs-source-dirs: tests src-ffi src-pure + main-is: Tests.hs + c-sources: cbits/unescape_string.c + ghc-options: -Wall -threaded -rtsopts + + other-modules: + Data.Aeson.Parser.UnescapeFFI + Data.Aeson.Parser.UnescapePure + DataFamilies.Properties + DataFamilies.Instances + DataFamilies.Encoders + DataFamilies.Types + Encoders + ErrorMessages + Functions + Instances + Options + PropUtils + Properties + PropertyGeneric + PropertyKeys + PropertyRoundTrip + PropertyRTFunctors + PropertyTH + SerializationFormatSpec + Types + UnitTests + UnitTests.NullaryConstructors + + build-depends: + QuickCheck >= 2.14.2 && < 2.15, + aeson, + integer-logarithms >= 1 && <1.1, + attoparsec, + base, + base-compat, + base-orphans >= 0.5.3 && <0.9, + base16-bytestring, + containers, + data-fix, + directory, + dlist, + Diff >= 0.4 && < 0.5, + filepath, + generic-deriving >= 1.10 && < 1.15, + ghc-prim >= 0.2, + hashable >= 1.2.4.0, + hashable-time >= 0.2.1 && <0.3, + scientific, + strict, + tagged, + template-haskell, + tasty, + tasty-golden, + tasty-hunit, + tasty-quickcheck, + text, + these, + time, + time-compat, + unordered-containers, + uuid-types, + vector, + quickcheck-instances >= 0.3.25.2 && <0.4 + + if flag(bytestring-builder) + build-depends: bytestring >= 0.9 && < 0.10.4, + bytestring-builder >= 0.10.4 && < 1 + else + build-depends: bytestring >= 0.10.4 + + if !impl(ghc >= 8.0) + build-depends: + semigroups >= 0.18.2 && < 0.20, + transformers >= 0.2.2.0, + transformers-compat >= 0.3 + + if !impl(ghc >= 7.10) + build-depends: nats >=1 && <1.2, + void >=0.7.2 && <0.8 + + + if flag(fast) + ghc-options: -fno-enable-rewrite-rules + +source-repository head + type: git + location: git://github.com/haskell/aeson.git diff --git a/SPECS/ghc-aeson.spec b/SPECS/ghc-aeson.spec new file mode 100644 index 0000000..617271f --- /dev/null +++ b/SPECS/ghc-aeson.spec @@ -0,0 +1,265 @@ +# generated by cabal-rpm-2.0.9 +# https://docs.fedoraproject.org/en-US/packaging-guidelines/Haskell/ + +%global pkg_name aeson +%global pkgver %{pkg_name}-%{version} + +# testsuite missing deps: hashable-time quickcheck-instances tasty-golden + +Name: ghc-%{pkg_name} +Version: 1.5.6.0 +Release: 2%{?dist} +Summary: Fast JSON parsing and encoding + +License: BSD +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: +BuildRequires: ghc-Cabal-devel +BuildRequires: ghc-rpm-macros +BuildRequires: ghc-attoparsec-prof +BuildRequires: ghc-base-prof +BuildRequires: ghc-base-compat-batteries-prof +BuildRequires: ghc-bytestring-prof +BuildRequires: ghc-containers-prof +BuildRequires: ghc-data-fix-prof +BuildRequires: ghc-deepseq-prof +BuildRequires: ghc-dlist-prof +BuildRequires: ghc-hashable-prof +BuildRequires: ghc-primitive-prof +BuildRequires: ghc-scientific-prof +BuildRequires: ghc-strict-prof +BuildRequires: ghc-tagged-prof +BuildRequires: ghc-template-haskell-prof +BuildRequires: ghc-text-prof +BuildRequires: ghc-th-abstraction-prof +BuildRequires: ghc-these-prof +BuildRequires: ghc-time-prof +BuildRequires: ghc-time-compat-prof +BuildRequires: ghc-unordered-containers-prof +BuildRequires: ghc-uuid-types-prof +BuildRequires: ghc-vector-prof +# End cabal-rpm deps + +%description +A JSON parsing and encoding library optimized for ease of use and +high performance. Aeson was the father of Jason in Greek mythology. + + +%package devel +Summary: Haskell %{pkg_name} library development files +Provides: %{name}-static = %{version}-%{release} +Provides: %{name}-static%{?_isa} = %{version}-%{release} +%if %{defined ghc_version} +Requires: ghc-compiler = %{ghc_version} +%endif +Requires: %{name}%{?_isa} = %{version}-%{release} + +%description devel +This package provides the Haskell %{pkg_name} library development files. + + +%if %{with haddock} +%package doc +Summary: Haskell %{pkg_name} library documentation +BuildArch: noarch +Requires: ghc-filesystem + +%description doc +This package provides the Haskell %{pkg_name} library documentation. +%endif + + +%if %{with ghc_prof} +%package prof +Summary: Haskell %{pkg_name} profiling library +Requires: %{name}-devel%{?_isa} = %{version}-%{release} +Supplements: (%{name}-devel and ghc-prof) + +%description prof +This package provides the Haskell %{pkg_name} profiling library. +%endif + + +%prep +# Begin cabal-rpm setup: +%setup -q -n %{pkgver} +cp -bp %{SOURCE1} %{pkg_name}.cabal +# End cabal-rpm setup + + +%build +# Begin cabal-rpm build: +%ghc_lib_build +# End cabal-rpm build + + +%install +# Begin cabal-rpm install +%ghc_lib_install +# End cabal-rpm install + + +%files -f %{name}.files +# Begin cabal-rpm files: +%license LICENSE +# End cabal-rpm files + + +%files devel -f %{name}-devel.files +%doc README.markdown changelog.md + + +%if %{with haddock} +%files doc -f %{name}-doc.files +%license LICENSE +%endif + + +%if %{with ghc_prof} +%files prof -f %{name}-prof.files +%endif + + +%changelog +* Sat Aug 19 2023 Alexey Lyubimov - 1.5.6.0-2 +- Rebuilt for MSVSphere 9.2 + +* Thu Jan 20 2022 Fedora Release Engineering - 1.5.6.0-2 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_36_Mass_Rebuild + +* Thu Aug 5 2021 Jens Petersen - 1.5.6.0-1 +- update to 1.5.6.0 + +* Thu Aug 5 2021 Jens Petersen - 1.5.5.1-1 +- update to 1.5.5.1 + +* Thu Jul 22 2021 Fedora Release Engineering - 1.4.7.1-4 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_35_Mass_Rebuild + +* Tue Jan 26 2021 Fedora Release Engineering - 1.4.7.1-3 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_34_Mass_Rebuild + +* Mon Jul 27 2020 Fedora Release Engineering - 1.4.7.1-2 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_33_Mass_Rebuild + +* Sun Jun 07 2020 Jens Petersen - 1.4.7.1-1 +- update to 1.4.7.1 + +* Sun Feb 09 2020 Jens Petersen - 1.4.6.0-1 +- update to 1.4.6.0 + +* Tue Jan 28 2020 Fedora Release Engineering - 1.4.2.0-2 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_32_Mass_Rebuild + +* Thu Jul 25 2019 Jens Petersen - 1.4.2.0-1 +- update to 1.4.2.0 + +* Thu Jul 25 2019 Fedora Release Engineering - 1.3.1.1-2 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_31_Mass_Rebuild + +* Thu Feb 21 2019 Jens Petersen - 1.3.1.1-1 +- update to 1.3.1.1 + +* Sun Feb 17 2019 Jens Petersen - 1.2.4.0-3 +- refresh to cabal-rpm-0.13 + +* Thu Jan 31 2019 Fedora Release Engineering - 1.2.4.0-2 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_30_Mass_Rebuild + +* Sat Jul 28 2018 Jens Petersen - 1.2.4.0-1 +- update to 1.2.4.0 + +* Mon Jul 23 2018 Miro HronĨok - 1.2.3.0-4 +- Rebuilt for #1607054 + +* Fri Jul 13 2018 Fedora Release Engineering - 1.2.3.0-3 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_29_Mass_Rebuild + +* Wed Feb 07 2018 Fedora Release Engineering - 1.2.3.0-2 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_28_Mass_Rebuild + +* Wed Jan 24 2018 Jens Petersen - 1.2.3.0-1 +- update to 1.2.3.0 + +* Fri Jan 12 2018 Jens Petersen - 1.0.2.1-8 +- time-locale-compat is now packaged + +* Wed Aug 02 2017 Fedora Release Engineering - 1.0.2.1-7 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Binutils_Mass_Rebuild + +* Wed Jul 26 2017 Fedora Release Engineering - 1.0.2.1-6 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Mass_Rebuild + +* Tue Feb 21 2017 Jens Petersen - 1.0.2.1-5 +- update to 1.0.2.1 +- subpackage time-locale-compat + +* Fri Feb 10 2017 Fedora Release Engineering - 0.8.0.2-5 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_26_Mass_Rebuild + +* Wed Feb 03 2016 Fedora Release Engineering - 0.8.0.2-4 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_24_Mass_Rebuild + +* Mon Aug 31 2015 Peter Robinson 0.8.0.2-3 +- Rebuild (aarch64 vector hashes) + +* Wed Jun 17 2015 Fedora Release Engineering - 0.8.0.2-2 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_23_Mass_Rebuild + +* Mon Jan 26 2015 Jens Petersen - 0.8.0.2-1 +- update to 0.8.0.2 + +* Sat Aug 16 2014 Fedora Release Engineering - 0.6.2.1-4 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_22_Mass_Rebuild + +* Sat Jun 07 2014 Fedora Release Engineering - 0.6.2.1-3 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_Mass_Rebuild + +* Sun Apr 20 2014 Jens Petersen - 0.6.2.1-2 +- disable TH module on arch's without ghci + +* Wed Jan 22 2014 Jens Petersen - 0.6.2.1-1 +- update to 0.6.2.1 + +* Sat Aug 03 2013 Fedora Release Engineering - 0.6.1.0-3 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_20_Mass_Rebuild + +* Fri Jun 07 2013 Jens Petersen - 0.6.1.0-2 +- update to new simplified Haskell Packaging Guidelines + +* Mon Mar 11 2013 Jens Petersen - 0.6.1.0-1 +- update to 0.6.1.0 + +* Wed Feb 13 2013 Fedora Release Engineering - 0.6.0.2-6 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_19_Mass_Rebuild + +* Sat Nov 17 2012 Jens Petersen - 0.6.0.2-5 +- update with cabal-rpm + +* Thu Jul 19 2012 Fedora Release Engineering - 0.6.0.2-4 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_18_Mass_Rebuild + +* Thu Jun 21 2012 Jens Petersen - 0.6.0.2-3 +- rebuild + +* Fri Jun 15 2012 Jens Petersen - 0.6.0.2-2 +- rebuild + +* Sun May 6 2012 Jens Petersen - 0.6.0.2-1 +- update to 0.6.0.2 +- build needs ghci + +* Sat Mar 24 2012 Jens Petersen - 0.6.0.0-2 +- depends on dlist for ghc > 7.2 + +* Mon Feb 27 2012 Jens Petersen - 0.6.0.0-1 +- BSD license +- doc files + +* Mon Feb 27 2012 Fedora Haskell SIG +- spec file template generated by cabal2spec-0.25.4