# generated by cabal-rpm-0.12 # https://fedoraproject.org/wiki/Packaging:Haskell %global pandoc_ver 2.0.0.1 %global pandoc_citeproc_ver 0.12.1 # nothing to see here %global debug_package %{nil} Name: pandoc Version: %{pandoc_ver} # reset only when both versioned bumped Release: 1%{?dist} Summary: Conversion between markup formats License: GPLv2+ Url: https://hackage.haskell.org/package/%{name} Source0: https://hackage.haskell.org/package/%{name}/%{version}/%{name}-%{version}.tar.gz Source1: https://hackage.haskell.org/package/%{name}-citeproc/%{pandoc_citeproc_ver}/%{name}-citeproc-%{pandoc_citeproc_ver}.tar.gz BuildRequires: ghc-Cabal-devel #BuildRequires: ghc-rpm-macros # Begin cabal-rpm deps: %if 0%{?fedora} >= 22 #BuildRequires: chrpath #BuildRequires: ghc-Glob-devel BuildRequires: ghc-HTTP-devel BuildRequires: ghc-JuicyPixels-devel BuildRequires: ghc-SHA-devel # f25 aeson too old %if 0%{?fedora} >= 26 BuildRequires: ghc-aeson-devel BuildRequires: ghc-aeson-pretty-devel %endif BuildRequires: ghc-base64-bytestring-devel BuildRequires: ghc-binary-devel BuildRequires: ghc-blaze-html-devel BuildRequires: ghc-blaze-markup-devel BuildRequires: ghc-bytestring-devel BuildRequires: ghc-case-insensitive-devel #BuildRequires: ghc-cmark-gfm-devel BuildRequires: ghc-containers-devel %if 0%{?fedora} >= 26 BuildRequires: ghc-data-default-devel %endif BuildRequires: ghc-deepseq-devel BuildRequires: ghc-directory-devel %if 0%{?fedora} >= 26 BuildRequires: ghc-doctemplates-devel %endif BuildRequires: ghc-filepath-devel BuildRequires: ghc-haddock-library-devel BuildRequires: ghc-hslua-devel %if 0%{?fedora} >= 27 BuildRequires: ghc-http-client-devel BuildRequires: ghc-http-client-tls-devel %endif BuildRequires: ghc-http-types-devel BuildRequires: ghc-mtl-devel BuildRequires: ghc-network-devel BuildRequires: ghc-network-uri-devel %if 0%{?fedora} >= 26 BuildRequires: ghc-pandoc-types-devel %endif BuildRequires: ghc-parsec-devel BuildRequires: ghc-process-devel BuildRequires: ghc-random-devel BuildRequires: ghc-safe-devel BuildRequires: ghc-scientific-devel %if 0%{?fedora} >= 28 BuildRequires: ghc-skylighting-devel %endif BuildRequires: ghc-split-devel BuildRequires: ghc-syb-devel BuildRequires: ghc-tagsoup-devel BuildRequires: ghc-temporary-devel %if 0%{?fedora} >= 26 BuildRequires: ghc-texmath-devel %endif BuildRequires: ghc-text-devel BuildRequires: ghc-time-devel BuildRequires: ghc-unix-devel BuildRequires: ghc-unordered-containers-devel BuildRequires: ghc-vector-devel BuildRequires: ghc-xml-devel # f25 aeson too old %if 0%{?fedora} >= 26 BuildRequires: ghc-yaml-devel %endif BuildRequires: ghc-zip-archive-devel BuildRequires: ghc-zlib-devel %if %{with tests} BuildRequires: ghc-Diff-devel BuildRequires: ghc-QuickCheck-devel BuildRequires: ghc-executable-path-devel BuildRequires: ghc-tasty-devel BuildRequires: ghc-tasty-golden-devel BuildRequires: ghc-tasty-hunit-devel BuildRequires: ghc-tasty-quickcheck-devel %endif # End cabal-rpm deps BuildRequires: alex # for pretty-show BuildRequires: happy %else BuildRequires: ghc-libraries %endif BuildRequires: zlib-devel BuildRequires: cabal-install > 1.18 BuildRequires: hsb2hs Obsoletes: pandoc-pdf < %{version}-%{release} %description Pandoc is a Haskell library for converting from one markup format to another, and a command-line tool that uses this library. It can read several dialects of Markdown and (subsets of) HTML, reStructuredText, LaTeX, DocBook, MediaWiki markup, TWiki markup, TikiWiki markup, Creole 1.0, Haddock markup, OPML, Emacs Org-Mode, Emacs Muse, txt2tags, Vimwiki, Word Docx, ODT, and Textile, and it can write Markdown, reStructuredText, XHTML, HTML 5, LaTeX, ConTeXt, DocBook, JATS, OPML, TEI, OpenDocument, ODT, Word docx, RTF, MediaWiki, DokuWiki, ZimWiki, Textile, groff man, groff ms, plain text, Emacs Org-Mode, AsciiDoc, Haddock markup, EPUB (v2 and v3), FictionBook2, InDesign ICML, Muse, and several kinds of HTML/JavaScript slide shows (S5, Slidy, Slideous, DZSlides, reveal.js). In contrast to most existing tools for converting Markdown to HTML, pandoc has a modular design: it consists of a set of readers, which parse text in a given format and produce a native representation of the document, and a set of writers, which convert this native representation into a target format. Thus, adding an input or output format requires only adding a reader or writer. %package citeproc Summary: Supports using pandoc with citeproc Version: %{pandoc_citeproc_ver} Group: Text/Processing License: BSD and GPLv2+ %description citeproc This package contains an executable: pandoc-citeproc, which works as a pandoc filter, and also has a mode for converting bibliographic databases a YAML format suitable for inclusion in pandoc YAML metadata. %prep %setup -q -a1 %build %global cabal cabal [ -d "$HOME/.cabal" ] || %cabal update %cabal sandbox init # for haddock-library hGetContents export LANG=en_US.utf8 %if 0%{?rhel} %cabal install happy %endif %cabal install -f "embed_data_files" pandoc-%{pandoc_ver} pandoc-citeproc-%{pandoc_citeproc_ver} \ %if 0%{?fedora} < 25 --force-reinstalls %else %{nil} %endif %install mkdir -p %{buildroot}%{_bindir} install -p .cabal-sandbox/bin/%{name} .cabal-sandbox/bin/%{name}-citeproc %{buildroot}%{_bindir} mkdir -p %{buildroot}%{_mandir}/man1 install -m 0644 -p -D man/pandoc.1 %{buildroot}%{_mandir}/man1/pandoc.1 install -m 0644 -p pandoc-citeproc-%{pandoc_citeproc_ver}/man/man1/pandoc-citeproc.1 %{buildroot}%{_mandir}/man1 ln -s pandoc %{buildroot}%{_bindir}/hsmarkdown %files %doc BUGS COPYING.md COPYRIGHT README.md changelog %doc .cabal-sandbox/share/doc/* %{_bindir}/%{name} %{_bindir}/hsmarkdown %{_mandir}/man1/pandoc.1* %files citeproc %doc pandoc-citeproc-%{pandoc_citeproc_ver}/README.md %doc .cabal-sandbox/share/doc/* %{_bindir}/%{name}-citeproc %{_mandir}/man1/pandoc-citeproc.1* %changelog * Tue Dec 5 2017 Jens Petersen - 2.0.0.1-1 - update to pandoc-2.0.0.1 and pandoc-citeproc-0.12.1 * Wed Nov 1 2017 Jens Petersen - 1.19.2.4-1 - update to pandoc-1.19.2.4 and pandoc-citeproc-0.11.1.1 * Tue Oct 31 2017 Jens Petersen - 1.19.2.1-4 - update to pandoc-citeproc-0.10.5.1 * Thu Mar 16 2017 Jens Petersen - 1.19.2.1-3 - update pandoc-citeproc to 0.10.4.1 - refresh spec updating deps - just BR ghc-libraries for EPEL (pre-ghc-7.8) releases * Fri Feb 3 2017 Jens Petersen - 1.19.2.1-2 - allow latest blaze-html (snoyberg/xml#95) * Wed Feb 1 2017 Jens Petersen - 1.19.2.1-1 - update to pandoc-1.19.2.1 and pandoc-citeproc-0.10.4 - build with blaze-markup-0.7.1.1 * Fri Dec 16 2016 Jens Petersen - 1.19.1-1 - 1.19.1 release - http://pandoc.org/releases.html#pandoc-1.19.1-10-dec-2016 * Fri Dec 2 2016 Jens Petersen - 1.19-1 - pandoc 1.19 and pandoc-citeproc 0.10.3 * Mon Oct 31 2016 Jens Petersen - 1.18-1 - pandoc 1.18 and pandoc-citeproc 0.10.2.2 - obsolete pandoc-pdf (#5) * Wed Jul 20 2016 Jens Petersen - 1.17.2-1 - update to pandoc-1.17.2 and pandoc-citeproc-0.10.1 * Thu Jun 16 2016 Jens Petersen - cryptonite-0.17 should fix the i686 build issue * Wed Jun 8 2016 Jens Petersen - 1.17.1-2 - try forcing cryptonite-0.15 * Tue Jun 7 2016 Jens Petersen - 1.17.1-1 - update to pandoc-1.17.1 and pandoc-citeproc-0.10 * Tue Mar 29 2016 Jens Petersen - 1.17.0.3-1 - update to pandoc-1.17.0.3 and pandoc-citeproc-0.9.1.1 * Tue Jan 19 2016 Jens Petersen - 1.16.0.2-1 - update to pandoc-1.16.0.2 - ship manpage with versioned filename * Fri Jan 8 2016 Jens Petersen - 1.16-1 - update to pandoc-1.16 and pandoc-citeproc-0.9 * Wed Nov 18 2015 Jens Petersen - 1.15.2.1-1 - update to pandoc-1.15.2.1 and pandoc-citeproc-0.8.1.3 * Mon Oct 26 2015 Jens Petersen - 1.15.1.1-2 - add el6 BR conditions * Wed Oct 21 2015 Jens Petersen - 1.15.1.1-1 - update to pandoc-1.15.1.1 and pandoc-citeproc-0.8.0.1 * Tue Oct 6 2015 Jens Petersen - 1.15.0.6-3 - revert the obsoletes - move manpage to docdir to avoid conflict with pandoc-common * Tue Oct 6 2015 Jens Petersen - 1.15.0.6-2 - obsoletes pandoc-common and pandoc-static * Sun Oct 4 2015 Jens Petersen - 1.15.0.6-1 - pandoc-1.15.0.6 and pandoc-citeproc-0.7.4 * Tue Jun 23 2015 Jens Petersen - 1.14.0.4-2 - embed data files with hsb2hs - add pandoc-citeproc subpackage * Mon Jun 8 2015 Jens Petersen - 1.14.0.4-1 - update to 1.14.0.4 * Wed Dec 3 2014 Jens Petersen - 1.13.1-1 - drop epoch - update deps - use cabal sandbox instead of cabal-dev - build with yaml < 0.8.10 - install manpages by hand * Tue Jul 15 2014 Jens Petersen - 1:1.12.3.3-4.1 - Epoch 1 for copr - statically link against Haskell libraries - turn off shared and prof libs and do not package static lib - turn off haddock - no pdf subpackage * Fri Jun 06 2014 Fedora Release Engineering - 1.12.3.3-4 - Rebuilt for https://fedoraproject.org/wiki/Fedora_21_Mass_Rebuild * Mon May 26 2014 Adam Williamson - 1.12.3.3-3 - rebuild for new ghc-scientific * Tue May 13 2014 Jens Petersen - 1.12.3.3-2 - fix building on ARM (llvm) by using -O1 (#992430) * Thu May 08 2014 Jens Petersen - 1.12.3.3-1 - update to 1.12.3.3 * Wed Jan 22 2014 Jens Petersen - 1.12.3.1-1 - update to 1.12.3.1 - disable http-conduit * Wed Aug 28 2013 Jens Petersen - 1.11.1-6 - temporarily exclude armv7hl since build with ghc-7.6.3 and llvm-3.3 hanging mysteriously (#992430) * Tue Aug 06 2013 Adam Williamson - 1.11.1-5 - rebuild for new libbibutils * Sat Aug 03 2013 Fedora Release Engineering - 1.11.1-4 - Rebuilt for https://fedoraproject.org/wiki/Fedora_20_Mass_Rebuild * Mon Jun 10 2013 Jens Petersen - update to new simplified Haskell Packaging Guidelines * Wed May 1 2013 Jens Petersen - 1.11.1-2 - pandoc-pdf now requires texlive-collection-latex and texlive-ec (#957876) * Fri Mar 22 2013 Jens Petersen - 1.11.1-1 - update to 1.11.1 * Sun Mar 10 2013 Jens Petersen - 1.10.1-1 - update to 1.10.1 - allow blaze-html-0.6 * Thu Feb 14 2013 Fedora Release Engineering - 1.9.4.5-5 - Rebuilt for https://fedoraproject.org/wiki/Fedora_19_Mass_Rebuild * Wed Nov 21 2012 Jens Petersen - 1.9.4.5-4 - rebuild * Mon Nov 19 2012 Jens Petersen - 1.9.4.5-3 - rebuild * Wed Oct 31 2012 Jens Petersen - 1.9.4.5-2 - drop the latex template patch for old TeXLive * Fri Oct 26 2012 Jens Petersen - 1.9.4.5-1 - update to 1.9.4.5 - refresh with cabal-rpm * Fri Oct 26 2012 Jens Petersen - 1.9.4.2-6 - disable threaded rts with upstream patch copied from Debian (#862543) * Tue Oct 2 2012 Jens Petersen - 1.9.4.2-5 - add a files section for the pdf subpackage so it is actually created * Tue Oct 2 2012 Jens Petersen - 1.9.4.2-4 - add a pdf meta-subpackage for the texlive packages needed for pdf output * Fri Sep 28 2012 Jens Petersen - 1.9.4.2-3 - also disable luatex in the default.beamer template (#861300) * Fri Jul 20 2012 Fedora Release Engineering - 1.9.4.2-2 - Rebuilt for https://fedoraproject.org/wiki/Fedora_18_Mass_Rebuild * Sun Jul 15 2012 Jens Petersen - 1.9.4.2-1 - update to 1.9.4.2 - add hsmarkdown symlink - change prof BRs to devel * Thu Jun 21 2012 Jens Petersen - 1.9.4.1-2 - rebuild * Sun Jun 10 2012 Jens Petersen - 1.9.4.1-1 - update to 1.9.4.1 * Wed Apr 25 2012 Jens Petersen - 1.9.2-1 - update to 1.9.2 * Wed Mar 21 2012 Jens Petersen - 1.9.1.2-1 - update to 1.9.1.2 * Wed Mar 7 2012 Jens Petersen - 1.9.1.1-2 - rebuild * Mon Feb 13 2012 Jens Petersen - 1.9.1.1-1 - update to 1.9.1.1 http://johnmacfarlane.net/pandoc/releases.html#pandoc-1.9-2012-02-05 - new depends on blaze-html, temporary, zlib - markdown2pdf is now handled by pandoc itself: add README.fedora file documenting required texlive packages - add changelog file * Fri Feb 10 2012 Petr Pisar - 1.8.2.1-9 - Rebuild against PCRE 8.30 * Tue Feb 7 2012 Jens Petersen - 1.8.2.1-8 - rebuild * Thu Jan 26 2012 Jens Petersen - 1.8.2.1-7 - set highlighting build flag by patching instead to help dependency tracking * Fri Jan 6 2012 Jens Petersen - 1.8.2.1-6 - update to cabal2spec-0.25.2 * Thu Dec 22 2011 Jens Petersen - 1.8.2.1-5 - workaround texlive-2007 xelatex outputting to current dir * Wed Nov 30 2011 Jens Petersen - 1.8.2.1-4 - add missing requires for pdflatex * Thu Nov 17 2011 Jens Petersen - 1.8.2.1-3 - disable ifluatex in default.latex for texlive-2007 (Luis Villa, #752621) - subpackage markdown2pdf and make it require texlive-xetex * Wed Oct 26 2011 Marcela Mašláňová - 1.8.2.1-2.2 - rebuild with new gmp without compat lib * Wed Oct 12 2011 Peter Schiffer - 1.8.2.1-2.1 - rebuild with new gmp * Mon Oct 3 2011 Jens Petersen - 1.8.2.1-2 - rebuild against newer dependencies * Thu Aug 4 2011 Jens Petersen - 1.8.2.1-1 - update to 1.8.2.1 - depends on base64-bytestring * Wed Jul 27 2011 Jens Petersen - 1.8.1.2-3 - rebuild for xml-1.3.9 * Fri Jul 22 2011 Jens Petersen - 1.8.1.2-2 - rebuild for highlighting-kate-0.2.10 * Thu Jul 21 2011 Jens Petersen - 1.8.1.2-1 - update to 1.8.1.2 * Wed Jul 13 2011 Jens Petersen - 1.8.1.1-3 - build with code highlighting support using highlighting-kate * Wed Jun 22 2011 Jens Petersen - 1.8.1.1-2 - BR ghc-Cabal-devel instead of ghc-prof and use ghc_arches (cabal2spec-0.23.2) * Sat May 28 2011 Jens Petersen - 1.8.1.1-1 - update to 1.8.1.1 - update to cabal2spec-0.23: add ppc64 - new depends on citeproc-hs, dlist, json, pandoc-types, tagsoup - new pandoc_markdown.5 manpage * Thu Mar 10 2011 Fabio M. Di Nitto - 1.6.0.1-5 - Enable build on sparcv9 * Tue Feb 15 2011 Jens Petersen - 1.6.0.1-4 - rebuild for latest zip-archive and haskell-platform-2011.1 updates * Tue Feb 08 2011 Fedora Release Engineering - 1.6.0.1-3 - Rebuilt for https://fedoraproject.org/wiki/Fedora_15_Mass_Rebuild * Mon Jan 31 2011 Jens Petersen - 1.6.0.1-2 - fix manpage perms (narasim) - improve the summary (#652582) * Fri Jan 14 2011 Jens Petersen - 1.6.0.1-1 - 1.6.0.1 - add description - update to cabal2spec-0.22.4 * Fri Nov 12 2010 Jens Petersen - 1.6-1 - GPLv2+ - take care of docdir files - add dependencies * Thu Nov 11 2010 Fedora Haskell SIG - 1.6-0 - initial packaging for Fedora automatically generated by cabal2spec-0.22.2