diff --git a/.gitignore b/.gitignore index e69de29..98bb011 100644 --- a/.gitignore +++ b/.gitignore @@ -0,0 +1 @@ +/blaze-html-0.4.1.3.tar.gz diff --git a/ghc-blaze-html.spec b/ghc-blaze-html.spec new file mode 100644 index 0000000..3622dfa --- /dev/null +++ b/ghc-blaze-html.spec @@ -0,0 +1,69 @@ +# For Haskell Packaging Guidelines see: +# - https://fedoraproject.org/wiki/Packaging:Haskell +# - https://fedoraproject.org/wiki/PackagingDrafts/Haskell + +%global pkg_name blaze-html + +# common part of summary for all the subpackages +%global common_summary Fast HTML combinator library for Haskell + +# main description used for all the subpackages +%global common_description BlazeHtml is a blazingly fast HTML combinator library for\ +the Haskell programming language. It embeds HTML templates in Haskell code\ +for optimal efficiency and composability.\ +The project is aimed at those who seek to write web applications in Haskell\ + — it integrates well with all Haskell web frameworks. + +Name: ghc-%{pkg_name} +Version: 0.4.1.3 +Release: 1%{?dist} +Summary: %{common_summary} + +Group: System Environment/Libraries +License: BSD +URL: http://hackage.haskell.org/package/%{pkg_name} +Source0: http://hackage.haskell.org/packages/archive/%{pkg_name}/%{version}/%{pkg_name}-%{version}.tar.gz +# fedora ghc archs: +ExclusiveArch: %{ix86} x86_64 ppc alpha sparcv9 ppc64 +BuildRequires: ghc-Cabal-devel +# macros for building haskell packages +BuildRequires: ghc-rpm-macros +BuildRequires: hscolour +BuildRequires: ghc-blaze-builder-prof, ghc-text-prof + +%description +%{common_description} + + +%prep +%setup -q -n %{pkg_name}-%{version} + + +%build +%ghc_lib_build + + +%install +%ghc_lib_install + + +# define the devel subpkg, post[un] scripts, +# and filelists ghc-blaze-html{,devel}.files +%ghc_lib_package + + +%changelog +* Wed Jun 15 2011 Jens Petersen - 0.4.1.3-1 +- update to 0.4.1.3 +- cabal2spec-0.23 + +* Tue May 3 2011 Jens Petersen - 0.4.1.1-1 +- update to 0.4.1.1 +- cabal2spec-0.22.6 + +* Sat Mar 26 2011 Jens Petersen - 0.4.1.0-1 +- BSD license +- depends on ghc-text and ghc-blaze-builder + +* Sat Mar 26 2011 Fedora Haskell SIG - 0.4.1.0-0 +- initial packaging for Fedora automatically generated by cabal2spec-0.22.5 diff --git a/sources b/sources index e69de29..ca84fb3 100644 --- a/sources +++ b/sources @@ -0,0 +1 @@ +599933bc2d3f583be06aed4350e68bc0 blaze-html-0.4.1.3.tar.gz