# generated by cabal-rpm-0.11.2 # https://fedoraproject.org/wiki/Packaging:Haskell %global pkg_name yesod-form %global pkgver %{pkg_name}-%{version} %bcond_with tests Name: ghc-%{pkg_name} Version: 1.4.16 Release: 1%{?dist} Summary: Form handling support for Yesod Web Framework License: MIT Url: https://hackage.haskell.org/package/%{pkg_name} Source0: https://hackage.haskell.org/package/%{pkgver}/%{pkgver}.tar.gz BuildRequires: ghc-Cabal-devel BuildRequires: ghc-rpm-macros # Begin cabal-rpm deps: BuildRequires: ghc-aeson-devel BuildRequires: ghc-attoparsec-devel BuildRequires: ghc-blaze-builder-devel BuildRequires: ghc-blaze-html-devel BuildRequires: ghc-blaze-markup-devel BuildRequires: ghc-byteable-devel BuildRequires: ghc-bytestring-devel BuildRequires: ghc-containers-devel BuildRequires: ghc-data-default-devel BuildRequires: ghc-email-validate-devel BuildRequires: ghc-network-uri-devel BuildRequires: ghc-persistent-devel BuildRequires: ghc-resourcet-devel BuildRequires: ghc-semigroups-devel BuildRequires: ghc-shakespeare-devel BuildRequires: ghc-template-haskell-devel BuildRequires: ghc-text-devel BuildRequires: ghc-time-devel BuildRequires: ghc-transformers-devel BuildRequires: ghc-wai-devel BuildRequires: ghc-xss-sanitize-devel BuildRequires: ghc-yesod-core-devel BuildRequires: ghc-yesod-persistent-devel %if %{with tests} BuildRequires: ghc-hspec-devel %endif # End cabal-rpm deps %description Form handling for Yesod, in the same style as formlets. See the forms chapter of the Yesod book. This package provides a set of basic form inputs such as text, number, time, checkbox, select, textarea, and etc. via Yesod.Form.Fields module. %package devel Summary: Haskell %{pkg_name} library development files Provides: %{name}-static = %{version}-%{release} Requires: ghc-compiler = %{ghc_version} Requires(post): ghc-compiler = %{ghc_version} Requires(postun): ghc-compiler = %{ghc_version} Requires: %{name}%{?_isa} = %{version}-%{release} %description devel This package provides the Haskell %{pkg_name} library development files. %prep %setup -q -n %{pkgver} %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 %changelog * Wed Nov 8 2017 Fedora Haskell SIG - 1.4.16-1 - spec file generated by cabal-rpm-0.11.2