# https://fedoraproject.org/wiki/PackagingDrafts/Haskell %global pkg_name hs-bibutils %global common_summary Haskell bindings to bibutils %global common_description Haskell bindings to Chris Putnam's bibutils, a library that\ converts between various bibliography formats using a common\ MODS-format XML intermediate. Name: ghc-%{pkg_name} Version: 4.15 Release: 1%{?dist} Summary: %{common_summary} License: GPL+ URL: http://hackage.haskell.org/package/%{pkg_name} Source0: http://hackage.haskell.org/packages/archive/%{pkg_name}/%{version}/%{pkg_name}-%{version}.tar.gz BuildRequires: ghc-Cabal-devel BuildRequires: ghc-rpm-macros %{!?without_hscolour:hscolour} # Begin cabal-rpm deps: BuildRequires: ghc-base-devel >= 4 BuildRequires: ghc-syb-devel # End cabal-rpm deps BuildRequires: bibutils-devel Patch1: hs-bibutils-4.15-pkgconfig.patch %description %{common_description} %prep %setup -q -n %{pkg_name}-%{version} %patch1 -p1 -b .orig # remove copylib rm -r bibutils %build %ghc_lib_build %install %ghc_lib_install %ghc_devel_package %ghc_devel_description %ghc_devel_post_postun %ghc_files LICENSE %doc README %changelog * Mon Oct 1 2012 Jens Petersen - 4.15-1 - simplify summary and description - use pkgconfig to build with bibutils * Mon Oct 1 2012 Fedora Haskell SIG - spec file generated by cabal-rpm-0.6.3