# cabal2spec-0.25 # https://fedoraproject.org/wiki/Packaging:Haskell # https://fedoraproject.org/wiki/PackagingDrafts/Haskell %global pkg_name happstack-server %global common_summary Happstack web server %global common_description Happstack Server provides an HTTP server and a rich set of functions\ for routing requests, handling query parameters, generating responses,\ working with cookies, serving files, and more. Name: ghc-%{pkg_name} Version: 7.0.0 Release: 2%{?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-base64-bytestring-devel BuildRequires: ghc-blaze-html-devel BuildRequires: ghc-extensible-exceptions-devel BuildRequires: ghc-hslogger-devel BuildRequires: ghc-html-devel BuildRequires: ghc-monad-control-devel BuildRequires: ghc-sendfile-devel BuildRequires: ghc-syb-devel BuildRequires: ghc-template-haskell-devel BuildRequires: ghc-utf8-string-devel BuildRequires: ghc-xhtml-devel BuildRequires: ghc-zlib-devel Patch1: happstack-server-default-to-base4.patch %description %{common_description} %prep %setup -q -n %{pkg_name}-%{version} %patch1 -p1 -b .orig %build %ghc_lib_build %install %ghc_lib_install # devel subpackage %ghc_devel_package %ghc_devel_description %ghc_devel_post_postun %ghc_files COPYING %changelog * Mon May 7 2012 Jens Petersen - 7.0.0-2 - turn on base4 flag - add syb depends * Fri Apr 13 2012 Jens Petersen - 7.0.0-1 - BSD license - dependencies * Fri Apr 13 2012 Fedora Haskell SIG - spec file template generated by cabal2spec-0.25.5