## START: Set by rpmautospec ## (rpmautospec version 0.7.2) ## RPMAUTOSPEC: autorelease, autochangelog %define autorelease(e:s:pb:n) %{?-p:0.}%{lua: release_number = 1; base_release_number = tonumber(rpm.expand("%{?-b*}%{!?-b:1}")); print(release_number + base_release_number - 1); }%{?-e:.%{-e*}}%{?-s:.%{-s*}}%{!?-n:%{?dist}} ## END: Set by rpmautospec # generated by cabal-rpm-2.2.1 # https://docs.fedoraproject.org/en-US/packaging-guidelines/Haskell/ %global pkg_name dhall-json %global pkgver %{pkg_name}-%{version} %{?haskell_setup} # testsuite missing deps: tasty-silver Name: %{pkg_name} Version: 1.7.12 Release: %autorelease Summary: Convert between Dhall and JSON or YAML License: BSD-3-Clause Url: https://hackage.haskell.org/package/%{name} # https://github.com/well-typed/cborg/issues/309 ExcludeArch: %{ix86} # Begin cabal-rpm sources: Source0: https://hackage.haskell.org/package/%{pkgver}/%{pkgver}.tar.gz Source1: https://hackage.haskell.org/package/%{pkgver}/%{name}.cabal#/%{pkgver}.cabal # End cabal-rpm sources # Begin cabal-rpm deps: BuildRequires: ghc-Cabal-devel BuildRequires: ghc-rpm-macros BuildRequires: ghc-aeson-devel BuildRequires: ghc-aeson-pretty-devel BuildRequires: ghc-aeson-yaml-devel BuildRequires: ghc-ansi-terminal-devel BuildRequires: ghc-base-devel BuildRequires: ghc-bytestring-devel BuildRequires: ghc-containers-devel BuildRequires: ghc-dhall-devel BuildRequires: ghc-exceptions-devel BuildRequires: ghc-filepath-devel BuildRequires: ghc-lens-family-core-devel BuildRequires: ghc-optparse-applicative-devel BuildRequires: ghc-prettyprinter-devel BuildRequires: ghc-prettyprinter-ansi-terminal-devel BuildRequires: ghc-scientific-devel BuildRequires: ghc-text-devel BuildRequires: ghc-unordered-containers-devel BuildRequires: ghc-vector-devel %if %{with ghc_prof} BuildRequires: ghc-aeson-prof BuildRequires: ghc-aeson-pretty-prof BuildRequires: ghc-aeson-yaml-prof BuildRequires: ghc-ansi-terminal-prof BuildRequires: ghc-base-prof BuildRequires: ghc-bytestring-prof BuildRequires: ghc-containers-prof BuildRequires: ghc-dhall-prof BuildRequires: ghc-exceptions-prof BuildRequires: ghc-filepath-prof BuildRequires: ghc-lens-family-core-prof BuildRequires: ghc-optparse-applicative-prof BuildRequires: ghc-prettyprinter-prof BuildRequires: ghc-prettyprinter-ansi-terminal-prof BuildRequires: ghc-scientific-prof BuildRequires: ghc-text-prof BuildRequires: ghc-unordered-containers-prof BuildRequires: ghc-vector-prof %endif BuildRequires: help2man # End cabal-rpm deps %description Use this package if you want to convert between Dhall expressions and JSON or YAML. You can use this package as a library or an executable: * See the "Dhall.JSON" or "Dhall.JSONToDhall" modules if you want to use this package as a library * Use the 'dhall-to-json', 'dhall-to-yaml', or 'json-to-dhall' programs from this package if you want an executable The "Dhall.JSON" and "Dhall.JSONToDhall" modules also contains instructions for how to use this package. %package -n ghc-%{name} Summary: Haskell %{name} library %description -n ghc-%{name} This package provides the Haskell %{name} shared library. %package -n ghc-%{name}-devel Summary: Haskell %{name} library development files Provides: ghc-%{name}-static = %{version}-%{release} Provides: ghc-%{name}-static%{?_isa} = %{version}-%{release} %if %{defined ghc_version} Requires: ghc-compiler = %{ghc_version} %endif Requires: ghc-%{name}%{?_isa} = %{version}-%{release} %description -n ghc-%{name}-devel This package provides the Haskell %{name} library development files. %if %{with haddock} %package -n ghc-%{name}-doc Summary: Haskell %{name} library documentation BuildArch: noarch Requires: ghc-filesystem %description -n ghc-%{name}-doc This package provides the Haskell %{name} library documentation. %endif %if %{with ghc_prof} %package -n ghc-%{name}-prof Summary: Haskell %{name} profiling library Requires: ghc-%{name}-devel%{?_isa} = %{version}-%{release} Supplements: (ghc-%{name}-devel and ghc-prof) %description -n ghc-%{name}-prof This package provides the Haskell %{name} profiling library. %endif %prep # Begin cabal-rpm setup: %setup -q cp -bp %{SOURCE1} %{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 set noclobber mkdir -p %{buildroot}%{bash_completions_dir} %{buildroot}%{_bindir}/dhall-to-json --bash-completion-script dhall-to-json | sed s/filenames/default/ > %{buildroot}%{bash_completions_dir}/dhall-to-json %{buildroot}%{_bindir}/dhall-to-yaml --bash-completion-script dhall-to-yaml | sed s/filenames/default/ > %{buildroot}%{bash_completions_dir}/dhall-to-yaml %{buildroot}%{_bindir}/json-to-dhall --bash-completion-script json-to-dhall | sed s/filenames/default/ > %{buildroot}%{bash_completions_dir}/json-to-dhall mkdir -p %{buildroot}%{_mandir}/man1/ help2man --no-info %{buildroot}%{_bindir}/dhall-to-json > %{buildroot}%{_mandir}/man1/dhall-to-json.1 help2man --no-info %{buildroot}%{_bindir}/dhall-to-yaml > %{buildroot}%{_mandir}/man1/dhall-to-yaml.1 help2man --no-info %{buildroot}%{_bindir}/json-to-dhall > %{buildroot}%{_mandir}/man1/json-to-dhall.1 # End cabal-rpm install %files # Begin cabal-rpm files: %license LICENSE %doc CHANGELOG.md %{_bindir}/dhall-to-json %{_bindir}/dhall-to-yaml %{_bindir}/json-to-dhall %{bash_completions_dir}/dhall-to-json %{bash_completions_dir}/dhall-to-yaml %{bash_completions_dir}/json-to-dhall %{_mandir}/man1/dhall-to-json.1* %{_mandir}/man1/dhall-to-yaml.1* %{_mandir}/man1/json-to-dhall.1* # End cabal-rpm files %files -n ghc-%{name} -f ghc-%{name}.files # Begin cabal-rpm files: %license LICENSE # End cabal-rpm files %files -n ghc-%{name}-devel -f ghc-%{name}-devel.files %doc CHANGELOG.md %if %{with haddock} %files -n ghc-%{name}-doc -f ghc-%{name}-doc.files %license LICENSE %endif %if %{with ghc_prof} %files -n ghc-%{name}-prof -f ghc-%{name}-prof.files %endif %changelog ## START: Generated by rpmautospec * Sat Jul 20 2024 Jens Petersen - 1.7.12-1 - https://hackage.haskell.org/package/dhall-json-1.7.12/changelog * Wed Jul 17 2024 Fedora Release Engineering - 1.7.11-9 - Rebuilt for https://fedoraproject.org/wiki/Fedora_41_Mass_Rebuild * Sun Jul 14 2024 Jens Petersen - 1.7.11-8 - refresh to cabal-rpm-2.2.1 * Wed Jan 24 2024 Fedora Release Engineering - 1.7.11-7 - Rebuilt for https://fedoraproject.org/wiki/Fedora_40_Mass_Rebuild * Fri Jan 19 2024 Fedora Release Engineering - 1.7.11-6 - Rebuilt for https://fedoraproject.org/wiki/Fedora_40_Mass_Rebuild * Sat Jul 29 2023 Jens Petersen - 1.7.11-5 - bump release * Wed Jul 19 2023 Fedora Release Engineering - 1.7.11-4 - Rebuilt for https://fedoraproject.org/wiki/Fedora_39_Mass_Rebuild * Sun Jan 22 2023 Jens Petersen - 1.7.11-1 - https://hackage.haskell.org/package/dhall-json-1.7.11/changelog - refresh to cabal-rpm-2.1.0 with SPDX migration * Thu Jul 21 2022 Fedora Release Engineering - 1.7.7-5 - Rebuilt for https://fedoraproject.org/wiki/Fedora_37_Mass_Rebuild * Fri Jun 17 2022 Jens Petersen - 1.7.7-4 - rebuild * Thu Jan 20 2022 Fedora Release Engineering - 1.7.7-3 - Rebuilt for https://fedoraproject.org/wiki/Fedora_36_Mass_Rebuild * Sat Jan 08 2022 Miro HronĨok - 1.7.7-2 - Rebuilt for https://fedoraproject.org/wiki/Changes/LIBFFI34 * Thu Aug 5 2021 Jens Petersen - 1.7.7-1 - update to 1.7.7 * Thu Aug 5 2021 Jens Petersen - 1.7.4-1 - update to 1.7.4 * Wed Jul 21 2021 Fedora Release Engineering - 1.6.4-4 - Rebuilt for https://fedoraproject.org/wiki/Fedora_35_Mass_Rebuild * Tue Jan 26 2021 Fedora Release Engineering - 1.6.4-3 - Rebuilt for https://fedoraproject.org/wiki/Fedora_34_Mass_Rebuild * Sun Oct 4 2020 Jens Petersen - 1.6.4-2 - enable bash completions * Tue Sep 1 2020 Jens Petersen - 1.6.4-1 - spec file generated by cabal-rpm-2.0.6 ## END: Generated by rpmautospec