# cabal2spec-0.25.4 # https://fedoraproject.org/wiki/Packaging:Haskell # https://fedoraproject.org/wiki/PackagingDrafts/Haskell %global pkg_name shakespeare-text %global common_summary Interpolation with quasi-quotation: put variables into strings %global common_description Interpolation with quasi-quotation: stick haskell \ variables into haskell strings. \ \ Note there is no dependency on haskell-src-extras. If you don't mind that \ dependency, you may want to look at using these packages: Interpolation, \ interpolatedstring-perl6, interpolatedstring-qq. \ \ This package has 1 other general feature that those others may not (but would \ be easy to duplicate): instead of using quasi-quoting you can also use an \ external file. It also has url/embeding interpolation, with \@ and \^, which \ are used in Yesod. \ \ This package also uses blaze-builder for efficiently constructing strings (I am \ not sure what the other packages use). This might be of interest to you for \ large templates or performance sensitive code, or otherwise having a nice \ interface to blaze-builder. \ \ Shakespeare is a template family for type-safe, efficient templates with simple \ variable interpolation . Shakespeare templates can be used inline with a \ quasi-quoter or in an external file. Shakespeare interpolates variables \ according to the type being inserted. In this case, the variable type needs a \ ToText instance. \ \ Please see http://docs.yesodweb.com/book/templates for a more thorough \ description and examples of the shakespeare family of template languages. Name: ghc-%{pkg_name} Version: 1.0.0.2 Release: 1%{?dist} Summary: %{common_summary} Group: System Environment/Libraries License: BSD # BEGIN cabal2spec URL: http://hackage.haskell.org/package/%{pkg_name} Source0: http://hackage.haskell.org/packages/archive/%{pkg_name}/%{version}/%{pkg_name}-%{version}.tar.gz ExclusiveArch: %{ghc_arches} BuildRequires: ghc-Cabal-devel BuildRequires: ghc-rpm-macros %{!?without_hscolour:hscolour} # END cabal2spec BuildRequires: ghc-shakespeare-devel BuildRequires: ghc-template-haskell-devel BuildRequires: ghc-text-devel %description %{common_description} %prep %setup -q -n %{pkg_name}-%{version} %build %ghc_lib_build %install %ghc_lib_install # devel subpackage %ghc_devel_package %ghc_devel_description %ghc_devel_post_postun %ghc_files LICENSE %changelog * Tue Jul 10 2012 Ben Boeckel - 1.0.0.2-1 - Update to 1.0.0.2 * Mon Apr 23 2012 Ben Boeckel - 1.0.0.1-1 - Update to 1.0.0.1 * Mon Mar 26 2012 Ben Boeckel - 0.11-1 - Initial package * Sun Mar 4 2012 Fedora Haskell SIG - spec file template generated by cabal2spec-0.25.4