Blame dhall-json.spec

cd5fbe7
# generated by cabal-rpm-2.0.9
37716cf
# https://docs.fedoraproject.org/en-US/packaging-guidelines/Haskell/
37716cf
37716cf
%global pkg_name dhall-json
37716cf
%global pkgver %{pkg_name}-%{version}
37716cf
a97f6f1
# testsuite missing deps: tasty-silver
37716cf
37716cf
Name:           %{pkg_name}
2d04bdc
Version:        1.7.7
ad0c966
Release:        4%{?dist}
37716cf
Summary:        Convert between Dhall and JSON or YAML
37716cf
37716cf
License:        BSD
37716cf
Url:            https://hackage.haskell.org/package/%{name}
37716cf
# Begin cabal-rpm sources:
37716cf
Source0:        https://hackage.haskell.org/package/%{pkgver}/%{pkgver}.tar.gz
37716cf
# End cabal-rpm sources
37716cf
37716cf
# Begin cabal-rpm deps:
37716cf
BuildRequires:  ghc-Cabal-devel
37716cf
BuildRequires:  ghc-rpm-macros
37716cf
BuildRequires:  ghc-aeson-prof
37716cf
BuildRequires:  ghc-aeson-pretty-prof
37716cf
BuildRequires:  ghc-aeson-yaml-prof
37716cf
BuildRequires:  ghc-ansi-terminal-prof
37716cf
BuildRequires:  ghc-base-prof
37716cf
BuildRequires:  ghc-bytestring-prof
37716cf
BuildRequires:  ghc-containers-prof
37716cf
BuildRequires:  ghc-dhall-prof
37716cf
BuildRequires:  ghc-exceptions-prof
37716cf
BuildRequires:  ghc-filepath-prof
a97f6f1
BuildRequires:  ghc-lens-family-core-prof
37716cf
BuildRequires:  ghc-optparse-applicative-prof
37716cf
BuildRequires:  ghc-prettyprinter-prof
37716cf
BuildRequires:  ghc-prettyprinter-ansi-terminal-prof
37716cf
BuildRequires:  ghc-scientific-prof
37716cf
BuildRequires:  ghc-text-prof
37716cf
BuildRequires:  ghc-unordered-containers-prof
37716cf
BuildRequires:  ghc-vector-prof
37716cf
# End cabal-rpm deps
37716cf
37716cf
%description
37716cf
Use this package if you want to convert between Dhall expressions and JSON or
37716cf
YAML. You can use this package as a library or an executable:
37716cf
37716cf
* See the "Dhall.JSON" or "Dhall.JSONToDhall" modules if you want to use this
37716cf
package as a library
37716cf
37716cf
* Use the 'dhall-to-json', 'dhall-to-yaml', or 'json-to-dhall' programs from
37716cf
this package if you want an executable
37716cf
37716cf
The "Dhall.JSON" and "Dhall.JSONToDhall" modules also contains instructions for
37716cf
how to use this package.
37716cf
37716cf
37716cf
%package -n ghc-%{name}
37716cf
Summary:        Haskell %{name} library
37716cf
37716cf
%description -n ghc-%{name}
37716cf
This package provides the Haskell %{name} shared library.
37716cf
37716cf
37716cf
%package -n ghc-%{name}-devel
37716cf
Summary:        Haskell %{name} library development files
37716cf
Provides:       ghc-%{name}-static = %{version}-%{release}
37716cf
Provides:       ghc-%{name}-static%{?_isa} = %{version}-%{release}
37716cf
%if %{defined ghc_version}
37716cf
Requires:       ghc-compiler = %{ghc_version}
37716cf
%endif
37716cf
Requires:       ghc-%{name}%{?_isa} = %{version}-%{release}
37716cf
37716cf
%description -n ghc-%{name}-devel
37716cf
This package provides the Haskell %{name} library development files.
37716cf
37716cf
37716cf
%if %{with haddock}
37716cf
%package -n ghc-%{name}-doc
37716cf
Summary:        Haskell %{name} library documentation
37716cf
BuildArch:      noarch
cd5fbe7
Requires:       ghc-filesystem
37716cf
37716cf
%description -n ghc-%{name}-doc
37716cf
This package provides the Haskell %{name} library documentation.
37716cf
%endif
37716cf
37716cf
37716cf
%if %{with ghc_prof}
37716cf
%package -n ghc-%{name}-prof
37716cf
Summary:        Haskell %{name} profiling library
37716cf
Requires:       ghc-%{name}-devel%{?_isa} = %{version}-%{release}
37716cf
Supplements:    (ghc-%{name}-devel and ghc-prof)
37716cf
37716cf
%description -n ghc-%{name}-prof
37716cf
This package provides the Haskell %{name} profiling library.
37716cf
%endif
37716cf
37716cf
37716cf
%prep
37716cf
# Begin cabal-rpm setup:
37716cf
%setup -q
37716cf
# End cabal-rpm setup
37716cf
37716cf
37716cf
%build
37716cf
# Begin cabal-rpm build:
37716cf
%ghc_lib_build
37716cf
# End cabal-rpm build
37716cf
37716cf
37716cf
%install
37716cf
# Begin cabal-rpm install
37716cf
%ghc_lib_install
652e490
mkdir -p %{buildroot}%{_datadir}/bash-completion/completions/
cd5fbe7
%{buildroot}%{_bindir}/dhall-to-json --bash-completion-script dhall-to-json | sed s/filenames/default/ > %{buildroot}%{_datadir}/bash-completion/completions/dhall-to-json
cd5fbe7
%{buildroot}%{_bindir}/dhall-to-yaml --bash-completion-script dhall-to-yaml | sed s/filenames/default/ > %{buildroot}%{_datadir}/bash-completion/completions/dhall-to-yaml
cd5fbe7
%{buildroot}%{_bindir}/json-to-dhall --bash-completion-script json-to-dhall | sed s/filenames/default/ > %{buildroot}%{_datadir}/bash-completion/completions/json-to-dhall
37716cf
# End cabal-rpm install
37716cf
37716cf
37716cf
%files
37716cf
# Begin cabal-rpm files:
37716cf
%license LICENSE
37716cf
%doc CHANGELOG.md
37716cf
%{_bindir}/dhall-to-json
37716cf
%{_bindir}/dhall-to-yaml
37716cf
%{_bindir}/json-to-dhall
652e490
%{_datadir}/bash-completion/completions/dhall-to-json
652e490
%{_datadir}/bash-completion/completions/dhall-to-yaml
652e490
%{_datadir}/bash-completion/completions/json-to-dhall
37716cf
# End cabal-rpm files
37716cf
37716cf
37716cf
%files -n ghc-%{name} -f ghc-%{name}.files
37716cf
# Begin cabal-rpm files:
37716cf
%license LICENSE
37716cf
# End cabal-rpm files
37716cf
37716cf
37716cf
%files -n ghc-%{name}-devel -f ghc-%{name}-devel.files
37716cf
%doc CHANGELOG.md
37716cf
37716cf
37716cf
%if %{with haddock}
37716cf
%files -n ghc-%{name}-doc -f ghc-%{name}-doc.files
37716cf
%license LICENSE
37716cf
%endif
37716cf
37716cf
37716cf
%if %{with ghc_prof}
37716cf
%files -n ghc-%{name}-prof -f ghc-%{name}-prof.files
37716cf
%endif
37716cf
37716cf
37716cf
%changelog
ad0c966
* Fri Jun 17 2022 Jens Petersen <petersen@redhat.com> - 1.7.7-4
ad0c966
- rebuild
ad0c966
73a8c4a
* Thu Jan 20 2022 Fedora Release Engineering <releng@fedoraproject.org> - 1.7.7-3
73a8c4a
- Rebuilt for https://fedoraproject.org/wiki/Fedora_36_Mass_Rebuild
73a8c4a
afa2a08
* Sat Jan 08 2022 Miro HronĨok <mhroncok@redhat.com> - 1.7.7-2
afa2a08
- Rebuilt for https://fedoraproject.org/wiki/Changes/LIBFFI34
afa2a08
2d04bdc
* Thu Aug  5 2021 Jens Petersen <petersen@redhat.com> - 1.7.7-1
2d04bdc
- update to 1.7.7
2d04bdc
2d04bdc
* Thu Aug  5 2021 Jens Petersen <petersen@redhat.com> - 1.7.4-1
a97f6f1
- update to 1.7.4
a97f6f1
d7bb065
* Wed Jul 21 2021 Fedora Release Engineering <releng@fedoraproject.org> - 1.6.4-4
d7bb065
- Rebuilt for https://fedoraproject.org/wiki/Fedora_35_Mass_Rebuild
d7bb065
7627767
* Tue Jan 26 2021 Fedora Release Engineering <releng@fedoraproject.org> - 1.6.4-3
7627767
- Rebuilt for https://fedoraproject.org/wiki/Fedora_34_Mass_Rebuild
7627767
652e490
* Sun Oct  4 2020 Jens Petersen <petersen@redhat.com> - 1.6.4-2
9c2e855
- enable bash completions
652e490
37716cf
* Tue Sep  1 2020 Jens Petersen <petersen@redhat.com> - 1.6.4-1
37716cf
- spec file generated by cabal-rpm-2.0.6