# https://fedoraproject.org/wiki/Packaging:Haskell %global pkg_name pandoc-citeproc %bcond_without tests # no useful debuginfo for Haskell packages without C sources %global debug_package %{nil} Name: %{pkg_name} Version: 0.3.1 Release: 1%{?dist} Summary: Citeproc support for pandoc License: BSD URL: http://hackage.haskell.org/package/%{name} Source0: http://hackage.haskell.org/package/%{name}-%{version}/%{name}-%{version}.tar.gz BuildRequires: ghc-Cabal-devel BuildRequires: ghc-rpm-macros # Begin cabal-rpm deps: BuildRequires: chrpath BuildRequires: ghc-HTTP-devel BuildRequires: ghc-aeson-devel BuildRequires: ghc-aeson-pretty-devel BuildRequires: ghc-attoparsec-devel BuildRequires: ghc-bytestring-devel BuildRequires: ghc-containers-devel BuildRequires: ghc-directory-devel BuildRequires: ghc-filepath-devel BuildRequires: ghc-hs-bibutils-devel BuildRequires: ghc-mtl-devel BuildRequires: ghc-network-devel BuildRequires: ghc-old-locale-devel BuildRequires: ghc-pandoc-devel BuildRequires: ghc-pandoc-types-devel BuildRequires: ghc-parsec-devel BuildRequires: ghc-process-devel BuildRequires: ghc-rfc5051-devel BuildRequires: ghc-split-devel BuildRequires: ghc-syb-devel BuildRequires: ghc-tagsoup-devel BuildRequires: ghc-temporary-devel BuildRequires: ghc-texmath-devel BuildRequires: ghc-text-devel BuildRequires: ghc-time-devel BuildRequires: ghc-vector-devel BuildRequires: ghc-xml-devel BuildRequires: ghc-yaml-devel # End cabal-rpm deps %description The pandoc-citeproc library exports functions for using the citeproc system with pandoc. It relies on citeproc-hs, a library for rendering bibliographic reference citations into a variety of styles using a macro language called Citation Style Language (CSL). More details on CSL can be found here: . Currently this package includes a copy of the citeproc-hs code. When citeproc-hs is updated to be compatible, this package will simply depend on citeproc-hs. This package also contains an executable: pandoc-citeproc, which works as a pandoc filter (pandoc >= 1.12), and also has a mode for converting bibliographic databases a YAML format suitable for inclusion in pandoc YAML metadata. %package -n ghc-%{name} Summary: Haskell %{name} library %description -n ghc-%{name} This package provides the Haskell %{name} shared library. %package -n ghc-%{name}-devel Summary: Haskell %{name} library development files Provides: ghc-%{name}-static = %{version}-%{release} Requires: ghc-compiler = %{ghc_version} Requires(post): ghc-compiler = %{ghc_version} Requires(postun): ghc-compiler = %{ghc_version} Requires: ghc-%{name}%{?_isa} = %{version}-%{release} %description -n ghc-%{name}-devel This package provides the Haskell %{name} library development files. %prep %setup -q cabal-tweak-flag hexpat False %build # avoid "ghc: out of memory" for Bibtex.hs cabal_configure_extra_options=--ghc-option="-O1" %ghc_lib_build %install %ghc_lib_install %ghc_fix_dynamic_rpath %{name} %check %if %{with tests} %cabal test %endif %post -n ghc-%{name}-devel %ghc_pkg_recache %postun -n ghc-%{name}-devel %ghc_pkg_recache %files %doc LICENSE %doc README.md %{_bindir}/%{name} %{_datadir}/%{name}-%{version} %{_mandir}/man1/%{name}.1* %files -n ghc-%{name} -f ghc-%{name}.files %doc LICENSE %files -n ghc-%{name}-devel -f ghc-%{name}-devel.files %doc README.md %changelog * Fri May 9 2014 Jens Petersen - 0.3.1-1 - update to 0.3.1 - build with -O1 to avoid exhausting memory in koji - enable tests * Thu May 1 2014 Jens Petersen - 0.3.0.1-1 - use xml instead of hexpat * Wed Jan 22 2014 Fedora Haskell SIG - 0.3.0.1 - spec file generated by cabal-rpm-0.8.8