%define pkg_name pandoc-citeproc %define pkg_version 0.14.3.1 %define pkg_release 3%{?_dist_release} %define pandoc_version 2.2.3.2 Summary: Library and executable for using citeproc with pandoc Name: %{pkg_name} Version: %{pkg_version} Release: %{pkg_release} License: BSD3 Group: Applications/Text URL: http://hackage.haskell.org Source0: packages Source11: base-orphans-0.8.tar.gz Source12: base-orphans.cabal Source13: hs-bibutils-6.6.0.0.tar.gz Source14: hs-bibutils.cabal Source15: rfc5051-0.1.0.3.tar.gz Source16: rfc5051.cabal Source17: setenv-0.1.1.3.tar.gz Source18: setenv.cabal Source19: typed-process-0.2.2.0.tar.gz Source20: typed-process.cabal Source21: unliftio-core-0.1.1.0.tar.gz Source22: unliftio-core.cabal Source23: vector-algorithms-0.7.0.1.tar.gz Source24: vector-algorithms.cabal Source25: xml-types-0.3.6.tar.gz Source26: xml-types.cabal Source27: transformers-base-0.4.5.2.tar.gz Source28: transformers-base.cabal Source29: resourcet-1.2.1.tar.gz Source30: resourcet.cabal Source31: mono-traversable-1.0.9.0.tar.gz Source32: mono-traversable.cabal Source33: monad-control-1.0.2.3.tar.gz Source34: monad-control.cabal Source35: conduit-1.3.0.3.tar.gz Source36: conduit.cabal Source37: yaml-0.9.0.tar.gz Source38: yaml.cabal Source39: conduit-extra-1.3.0.tar.gz Source40: conduit-extra.cabal Source41: xml-conduit-1.8.0.tar.gz Source42: xml-conduit.cabal Source43: pandoc-citeproc-0.14.3.1.tar.gz Source44: pandoc-citeproc.cabal BuildRoot: %{_tmppath}/%{pkg_name}-%{version}-root BuildRequires: ghc haskell-platform BuildRequires: libffi-devel gmp-devel zlib-devel BuildRequires: libghc-build-pandoc BuildRequires: pandoc-libs = %{pandoc_version} BuildRequires: docbook-utils docbook-utils-pdf docbook-style-xsl Requires: pandoc = %{pandoc_version} Vendor: Project Vine Distribution: Vine Linux Packager: ara_t %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: http://citationstyles.org/. %prep %{__rm} -rf ${RPM_BUILD_ROOT} %build %ghc_pkg_init cd %{_builddir} for pkg in `sed '$d' %{SOURCE0}`; do %{__tar} xzf %{_sourcedir}/${pkg}.tar.gz pushd ${pkg} %ghc_fix_dependencies ${pkg} %{__cabal} configure %{__cabal} build %{__cabal} copy %{__cabal} register --inplace popd done for pkg in `tail -n 1 %{SOURCE0}`; do %{__tar} xzf %{_sourcedir}/${pkg}.tar.gz pushd ${pkg} %ghc_fix_dependencies ${pkg} %cabal_configure1 ${pkg} %cabal_build %cabal_haddock %cabal_copy_resister ${pkg} popd done %install %{__rm} -rf ${RPM_BUILD_ROOT}%{_libdir} %{__mv} \ ${RPM_BUILD_ROOT}%{_datadir}/%{name}-%{version}/{changelog,README.md} \ ${RPM_BUILD_ROOT}%{_docdir}/%{name}-%{version}/ %{__mv} \ ${RPM_BUILD_ROOT}%{_datadir}/%{name}-%{version}/man \ ${RPM_BUILD_ROOT}%{_datadir}/ %clean %{__rm} -rf ${RPM_BUILD_ROOT} %files %defattr(-, root, root) %{_bindir}/pandoc-citeproc %{_datadir}/%{name}-%{version}/ %{_docdir}/%{name}-%{version}/ %{_mandir}/man1/ %changelog * Thu Aug 09 2018 Toshiaki Ara 0.14.3.1-3 - build using ghc-8.4.3-2 and pandoc-2.2.3.2 * Sat Jul 21 2018 Toshiaki Ara 0.14.3.1-2 - build using ghc-8.4.3 and pandoc-2.2.2 * Fri May 18 2018 Toshiaki Ara 0.14.3.1-1 - update to 0.14.3.1 - rebuild using ghc-8.4.2 and pandoc-2.2.1 - rewrite using macro * Tue Jan 09 2018 Toshiaki Ara 0.12.2.5-1 - update to 0.12.2.5 - build using ghc-8.2.2 * Tue Feb 21 2017 Toshiaki Ara 0.10.4.1-1 - update to 0.10.4.1 - build using ghc-8.0.2 * Fri Feb 03 2017 Toshiaki Ara 0.10.4-1 - update to 0.10.4 - build using ghc-8.0.1 * Sat Jun 18 2016 Toshiaki Ara 0.10-1 - update to 0.10 * Fri May 06 2016 Toshiaki Ara 0.9.1.1-1 - new package (devide from pandoc)