# generated by cabal-rpm-2.0.9 --standalone --stream hackage # https://docs.fedoraproject.org/en-US/packaging-guidelines/Haskell/ %global ghc_without_dynamic 1 %global ghc_without_shared 1 %undefine with_ghc_prof %undefine with_haddock %global without_prof 1 %global without_haddock 1 %global debug_package %{nil} %global pkg_name pandoc %global pkgver %{pkg_name}-%{version} Name: %{pkg_name} Version: 2.11.4 Release: 1%{?dist} Summary: Conversion between markup formats License: GPLv2+ Url: https://hackage.haskell.org/package/%{name} # Begin cabal-rpm sources: Source0: https://hackage.haskell.org/package/%{pkgver}/%{pkgver}.tar.gz # End cabal-rpm sources # Begin cabal-rpm deps: BuildRequires: ghc-Cabal-devel BuildRequires: ghc-rpm-macros BuildRequires: ghc-Glob-devel BuildRequires: ghc-HTTP-devel BuildRequires: ghc-HsYAML-devel BuildRequires: ghc-JuicyPixels-devel BuildRequires: ghc-SHA-devel BuildRequires: ghc-aeson-devel BuildRequires: ghc-aeson-pretty-devel BuildRequires: ghc-attoparsec-devel BuildRequires: ghc-base-devel 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-citeproc-devel #BuildRequires: ghc-commonmark-devel #BuildRequires: ghc-commonmark-extensions-devel #BuildRequires: ghc-commonmark-pandoc-devel BuildRequires: ghc-connection-devel BuildRequires: ghc-containers-devel BuildRequires: ghc-data-default-devel BuildRequires: ghc-deepseq-devel BuildRequires: ghc-directory-devel %if 0%{?fedora} >= 33 BuildRequires: ghc-doclayout-devel %endif BuildRequires: ghc-doctemplates-devel %if 0%{?fedora} >= 33 BuildRequires: ghc-emojis-devel %endif BuildRequires: ghc-exceptions-devel BuildRequires: ghc-file-embed-devel BuildRequires: ghc-filepath-devel BuildRequires: ghc-haddock-library-devel BuildRequires: ghc-hslua-devel BuildRequires: ghc-hslua-module-system-devel BuildRequires: ghc-hslua-module-text-devel BuildRequires: ghc-http-client-devel BuildRequires: ghc-http-client-tls-devel BuildRequires: ghc-http-types-devel BuildRequires: ghc-ipynb-devel %if 0%{?fedora} >= 33 BuildRequires: ghc-jira-wiki-markup-devel %endif BuildRequires: ghc-mtl-devel BuildRequires: ghc-network-devel BuildRequires: ghc-network-uri-devel BuildRequires: ghc-pandoc-types-devel BuildRequires: ghc-parsec-devel BuildRequires: ghc-process-devel BuildRequires: ghc-random-devel BuildRequires: ghc-safe-devel BuildRequires: ghc-scientific-devel BuildRequires: ghc-skylighting-devel BuildRequires: ghc-skylighting-core-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 %if 0%{?fedora} >= 33 BuildRequires: ghc-text-conversions-devel %endif BuildRequires: ghc-time-devel BuildRequires: ghc-unicode-transforms-devel BuildRequires: ghc-unix-devel BuildRequires: ghc-unordered-containers-devel BuildRequires: ghc-xml-devel BuildRequires: ghc-zip-archive-devel BuildRequires: ghc-zlib-devel BuildRequires: cabal-install > 1.18 # for missing dep 'citeproc': BuildRequires: ghc-rfc5051-devel BuildRequires: ghc-transformers-devel BuildRequires: ghc-uniplate-devel BuildRequires: ghc-vector-devel BuildRequires: ghc-xml-conduit-devel # for missing dep 'commonmark': BuildRequires: ghc-transformers-devel # for missing dep 'commonmark-extensions': BuildRequires: ghc-transformers-devel # End cabal-rpm deps BuildRequires: alex # for pretty-show BuildRequires: happy # for missing dep: text-conversions: %if 0%{?fedora} < 33 BuildRequires: ghc-base16-bytestring-devel %endif #BuildRequires: ghc-errors-devel BuildRequires: hsb2hs Obsoletes: pandoc-pdf < %{version}-%{release} Obsoletes: pandoc-citeproc < 0.17.0.3 %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, JATS, MediaWiki markup, DokuWiki markup, TWiki markup, TikiWiki markup, Jira markup, Creole 1.0, Haddock markup, OPML, Emacs Org-Mode, Emacs Muse, txt2tags, ipynb (Jupyter notebooks), Vimwiki, Word Docx, ODT, EPUB, FictionBook2, roff man, Textile, BibTeX, BibLaTeX, CSL JSON, , and CSV, and it can write Markdown, reStructuredText, XHTML, HTML 5, LaTeX, ConTeXt, DocBook, JATS, OPML, TEI, OpenDocument, ODT, Word docx, PowerPoint pptx, RTF, MediaWiki, DokuWiki, XWiki, ZimWiki, Textile, Jira, roff man, roff ms, plain text, Emacs Org-Mode, AsciiDoc, Haddock markup, EPUB (v2 and v3), ipynb, FictionBook2, InDesign ICML, Muse, CSL JSON, LaTeX beamer slides, 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. %prep # Begin cabal-rpm setup: %setup -q # End cabal-rpm setup %build # Begin cabal-rpm build: %global cabal cabal %cabal update %if 0%{?fedora} >= 33 %global cabal_store $HOME/.cabal/store/ghc-%{ghc_version} if [ -d "%{cabal_store}" ]; then # force reinstall - prevent cabal from keeping any old cached build # (removing bin/ seems insufficient) for pkg in pandoc-%{pandoc_ver}; do for d in %{cabal_store}/$pkg-*; do if [ -d $d/bin ]; then rm -r $d; fi done done fi %else %cabal sandbox init # for haddock-library hGetContents export LANG=en_US.utf8 %cabal install happy %cabal install -f "embed_data_files" \ %if 0%{?fedora} < 29 --force-reinstalls \ %endif %endif %install # Begin cabal-rpm install mkdir -p %{buildroot}%{_bindir} mkdir -p %{buildroot}%{_mandir}/man1 %if 0%{?fedora} >= 33 cabal install --disable-shared --installdir=%{buildroot}%{_bindir} --enable-executable-stripping -f "embed_data_files" exe:pandoc %else for pkg in pandoc-%{pandoc_ver}; do for f in %{cabal_store}/$pkg-*/bin/*; do [ -x $f ] && strip -s $f done done install -p .cabal-sandbox/bin/%{name} %{buildroot}%{_bindir} %endif install -m 0644 -p -D man/pandoc.1 %{buildroot}%{_mandir}/man1/pandoc.1 ln -s pandoc %{buildroot}%{_bindir}/hsmarkdown %files # Begin cabal-rpm files: %license COPYING.md COPYRIGHT %doc AUTHORS.md BUGS CONTRIBUTING.md README.md changelog.md %{_bindir}/%{name} %doc MANUAL.txt %{_bindir}/hsmarkdown %{_mandir}/man1/pandoc.1* %changelog * Mon May 3 2021 Jens Petersen - 2.11.4-1 - update to pandoc-2.11.4 (obsoletes pandoc-citeproc) * Mon May 3 2021 Jens Petersen - 2.10.1-2 - update to pandoc-2.10.1 * Fri Apr 30 2021 Jens Petersen - 2.9.2.1-1 - update to pandoc-2.9.2.1 and pandoc-citeproc-0.17.0.2 * Tue Jan 14 2020 Jens Petersen - 2.9.1.1-1 - update to pandoc-2.9.1.1 and pandoc-citeproc-0.16.4.1 * Mon Jan 13 2020 Jens Petersen - 2.7.3-2 - update to cabal-rpm-1.0.4 - use cabal v2 instead of sandbox - strip binaries - add bcond for pandoc-citeproc * Mon Jul 22 2019 Jens Petersen - 2.7.3-1 - pandoc-2.7.3 and pandoc-citeproc-0.16.2 * Mon Mar 18 2019 Jens Petersen - 2.7.1-1 - pandoc-2.7.1 and pandoc-citeproc-0.16.1.3 * Fri Dec 7 2018 Jens Petersen - 2.5-1 - pandoc-2.5 and pandoc-citeproc-0.15.0.1 * Tue Nov 6 2018 Jens Petersen - 2.4-1 - pandoc-2.4 and pandoc-citeproc-0.14.8 - always cabal update * Tue Oct 2 2018 Jens Petersen - 2.3.1-1 - pandoc-2.3.1 and pandoc-citeproc-0.14.5 * Thu Sep 20 2018 Jens Petersen - 2.3-1 - pandoc-2.3 and pandoc-citeproc-0.14.4 * Sun Jun 24 2018 Jens Petersen - 2.2.1-1 - pandoc-2.2.1 and pandoc-citeproc-0.14.3.1 * Fri Apr 20 2018 Jens Petersen - 2.1.3-1 - update to pandoc-2.1.3 and pandoc-citeproc-0.14.3 * Tue Feb 20 2018 Jens Petersen - 2.1.1-1 - update to pandoc-2.1.1 and pandoc-citeproc-0.14.1.4 * 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