This commit is contained in:
Jens Petersen 2012-05-15 09:53:48 +09:00
parent 712d3256a6
commit 870c550c84
4 changed files with 93 additions and 0 deletions

1
.gitignore vendored
View File

@ -0,0 +1 @@
/happstack-server-7.0.0.tar.gz

80
ghc-happstack-server.spec Normal file
View File

@ -0,0 +1,80 @@
# 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 <petersen@redhat.com> - 7.0.0-2
- turn on base4 flag
- add syb depends
* Fri Apr 13 2012 Jens Petersen <petersen@redhat.com> - 7.0.0-1
- BSD license
- dependencies
* Fri Apr 13 2012 Fedora Haskell SIG <haskell-devel@lists.fedoraproject.org>
- spec file template generated by cabal2spec-0.25.5

View File

@ -0,0 +1,11 @@
diff -u happstack-server-7.0.0/happstack-server.cabal\~ happstack-server-7.0.0/happstack-server.cabal
--- happstack-server-7.0.0/happstack-server.cabal~ 2012-03-30 01:00:41.000000000 +0900
+++ happstack-server-7.0.0/happstack-server.cabal 2012-05-07 11:52:44.798215227 +0900
@@ -18,6 +18,7 @@
Flag base4
Description: Choose the even newer, even smaller, split-up base package.
+ Default: True
Flag network_2_2_3
Description: Choose newer network library with merged in network-bytestring.

View File

@ -0,0 +1 @@
ade8cc2a071293515a1d2c85e63f71ad happstack-server-7.0.0.tar.gz