# generated by cabal-rpm-2.3.0 # https://docs.fedoraproject.org/en-US/packaging-guidelines/Haskell/ %global pkg_name aeson %global pkgver %{pkg_name}-%{version} %global commit aab7b5a14d6c5ea64c64dcaee418de1bb00dcc2b %global shortcommit %(c=%{commit}; echo ${c:0:7}) %{?haskell_setup} # testsuite missing deps: Diff OneTuple QuickCheck attoparsec base-compat base-orphans base16-bytestring data-fix dlist generic-deriving generically hashable indexed-traversable integer-logarithms primitive quickcheck-instances scientific strict tagged tasty tasty-golden tasty-hunit tasty-quickcheck text-short these time-compat unordered-containers uuid-types vector Name: ghc-%{pkg_name} Version: 2.2.1.0 Release: 1.%{shortcommit}%{?dist} Summary: Fast JSON parsing and encoding License: BSD-3-Clause URL: https://github.com/simplex-chat/aeson # Begin cabal-rpm sources: Source0: https://github.com/simplex-chat/%{pkg_name}/archive/%{commit}/%{pkg_name}-%{commit}.tar.gz # End cabal-rpm sources # Begin cabal-rpm deps: BuildRequires: ghc-Cabal-devel BuildRequires: ghc-rpm-macros BuildRequires: ghc-OneTuple-devel BuildRequires: ghc-QuickCheck-devel BuildRequires: ghc-attoparsec-devel BuildRequires: ghc-base-devel BuildRequires: ghc-base-compat-batteries-devel BuildRequires: ghc-bytestring-devel BuildRequires: ghc-containers-devel BuildRequires: ghc-data-fix-devel BuildRequires: ghc-deepseq-devel BuildRequires: ghc-dlist-devel BuildRequires: ghc-exceptions-devel BuildRequires: ghc-generically-devel BuildRequires: ghc-hashable-devel BuildRequires: ghc-indexed-traversable-devel BuildRequires: ghc-primitive-devel BuildRequires: ghc-scientific-devel BuildRequires: ghc-semialign-devel BuildRequires: ghc-strict-devel BuildRequires: ghc-tagged-devel BuildRequires: ghc-template-haskell-devel BuildRequires: ghc-text-devel BuildRequires: ghc-text-short-devel BuildRequires: ghc-th-abstraction-devel BuildRequires: ghc-these-devel BuildRequires: ghc-time-devel BuildRequires: ghc-time-compat-devel BuildRequires: ghc-unordered-containers-devel BuildRequires: ghc-uuid-types-devel BuildRequires: ghc-vector-devel BuildRequires: ghc-witherable-devel BuildRequires: ghc-integer-conversion-devel BuildRequires: ghc-network-uri-devel BuildRequires: ghc-text-iso8601-devel %if %{with ghc_prof} BuildRequires: ghc-OneTuple-prof BuildRequires: ghc-QuickCheck-prof 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-exceptions-prof BuildRequires: ghc-generically-prof BuildRequires: ghc-hashable-prof BuildRequires: ghc-indexed-traversable-prof BuildRequires: ghc-primitive-prof BuildRequires: ghc-scientific-prof BuildRequires: ghc-semialign-prof BuildRequires: ghc-strict-prof BuildRequires: ghc-tagged-prof BuildRequires: ghc-template-haskell-prof BuildRequires: ghc-text-prof BuildRequires: ghc-text-short-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 BuildRequires: ghc-witherable-prof BuildRequires: ghc-integer-conversion-prof BuildRequires: ghc-network-uri-prof BuildRequires: ghc-text-iso8601-prof %endif # End cabal-rpm deps %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.). %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 %{pkg_name}-%{commit} # 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 * Mon Aug 11 2025 Luca Magrone - 2.2.1.0-1.aab7b5a - Switch to simplex fork * Mon Aug 11 2025 Luca Magrone - 2.1.2.1-1 - spec file generated by cabal-rpm-2.3.0