# https://fedoraproject.org/wiki/Packaging:Haskell %global pkg_name blaze-markup %bcond_with tests # no useful debuginfo for Haskell packages without C sources %global debug_package %{nil} Name: ghc-%{pkg_name} Version: 0.6.1.0 Release: 1%{?dist} Summary: A blazingly fast markup combinator library for Haskell License: BSD URL: http://hackage.haskell.org/package/%{pkg_name} Source0: http://hackage.haskell.org/package/%{pkg_name}-%{version}/%{pkg_name}-%{version}.tar.gz BuildRequires: ghc-Cabal-devel BuildRequires: ghc-rpm-macros # Begin cabal-rpm deps: BuildRequires: ghc-blaze-builder-devel BuildRequires: ghc-bytestring-devel BuildRequires: ghc-text-devel %if %{with tests} BuildRequires: ghc-HUnit-devel BuildRequires: ghc-QuickCheck-devel BuildRequires: ghc-containers-devel BuildRequires: ghc-test-framework-devel BuildRequires: ghc-test-framework-hunit-devel BuildRequires: ghc-test-framework-quickcheck2-devel %endif # End cabal-rpm deps %description Core modules of a blazingly fast markup combinator library for the Haskell programming language. The Text.Blaze module is a good starting point, as well as this tutorial: . %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 %{pkg_name}-%{version} %build %ghc_lib_build %install %ghc_lib_install %check %if %{with tests} %cabal test %endif %post devel %ghc_pkg_recache %postun devel %ghc_pkg_recache %files -f %{name}.files %doc LICENSE %files devel -f %{name}-devel.files %changelog * Thu Aug 28 2014 Jens Petersen - 0.6.1.0-1 - update to 0.6.1.0 - refresh to cblrpm-0.8.11 * Sat Aug 16 2014 Fedora Release Engineering - 0.5.1.5-5 - Rebuilt for https://fedoraproject.org/wiki/Fedora_21_22_Mass_Rebuild * Sat Jun 07 2014 Fedora Release Engineering - 0.5.1.5-4 - Rebuilt for https://fedoraproject.org/wiki/Fedora_21_Mass_Rebuild * Sat Aug 03 2013 Fedora Release Engineering - 0.5.1.5-3 - Rebuilt for https://fedoraproject.org/wiki/Fedora_20_Mass_Rebuild * Fri Jun 07 2013 Jens Petersen - 0.5.1.5-2 - update to new simplified Haskell Packaging Guidelines * Tue Mar 12 2013 Jens Petersen - 0.5.1.5-1 - update to 0.5.1.5 * Wed Feb 13 2013 Fedora Release Engineering - 0.5.1.1-3 - Rebuilt for https://fedoraproject.org/wiki/Fedora_19_Mass_Rebuild * Mon Nov 19 2012 Jens Petersen - 0.5.1.1-2 - update with cabal-rpm-0.6.5 * Thu Oct 25 2012 Jens Petersen - 0.5.1.1-1 - update to 0.5.1.1 * Mon Sep 10 2012 Jens Petersen - 0.5.1.0-1 - improve description format * Mon Sep 10 2012 Fedora Haskell SIG - spec file generated by cabal-rpm-0.6.2