diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..e79c224 --- /dev/null +++ b/.gitignore @@ -0,0 +1 @@ +SOURCES/pandoc-2.0.6.tar.gz diff --git a/.pandoc.metadata b/.pandoc.metadata new file mode 100644 index 0000000..dbd9999 --- /dev/null +++ b/.pandoc.metadata @@ -0,0 +1 @@ +441c604691a13c39ce72da7e01df2477702bce5c SOURCES/pandoc-2.0.6.tar.gz diff --git a/SPECS/pandoc.spec b/SPECS/pandoc.spec new file mode 100644 index 0000000..7a51604 --- /dev/null +++ b/SPECS/pandoc.spec @@ -0,0 +1,480 @@ +# generated by cabal-rpm-0.12.1 +# https://fedoraproject.org/wiki/Packaging:Haskell + +%global pkg_name pandoc +%global pkgver %{pkg_name}-%{version} + +# link statically to Haskell libs for module portability +%global ghc_without_dynamic 1 + +%bcond_with tests + +Name: %{pkg_name} +Version: 2.0.6 +Release: 4%{?dist} +Summary: Conversion between markup formats + +License: GPLv2+ +Url: https://hackage.haskell.org/package/%{name} +Source0: https://hackage.haskell.org/package/%{pkgver}/%{pkgver}.tar.gz + +BuildRequires: ghc-Cabal-devel +BuildRequires: ghc-rpm-macros +# Begin cabal-rpm deps: +BuildRequires: chrpath +BuildRequires: ghc-Glob-devel +BuildRequires: ghc-HTTP-devel +BuildRequires: ghc-JuicyPixels-devel +BuildRequires: ghc-SHA-devel +BuildRequires: ghc-aeson-devel +BuildRequires: ghc-aeson-pretty-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-cmark-gfm-devel +BuildRequires: ghc-containers-devel +BuildRequires: ghc-data-default-devel +BuildRequires: ghc-deepseq-devel +BuildRequires: ghc-directory-devel +BuildRequires: ghc-doctemplates-devel +BuildRequires: ghc-filepath-devel +BuildRequires: ghc-haddock-library-devel +BuildRequires: ghc-hslua-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-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-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-unix-devel +BuildRequires: ghc-unordered-containers-devel +BuildRequires: ghc-vector-devel +BuildRequires: ghc-xml-devel +BuildRequires: ghc-yaml-devel +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 +# added for F26 +Obsoletes: pandoc-static < %{version}-%{release} +Requires: %{name}-common = %{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, JATS, +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, LaTeX beamer slides, PowerPoint, 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. + +For pdf output please also install pandoc-pdf. + + +%package common +Summary: Pandoc data files +BuildArch: noarch + +%description common +This package contains the common data files used by pandoc. + + +%package -n ghc-%{name} +Summary: Haskell %{name} library +Requires: %{name}-common = %{version}-%{release} + +%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} +Provides: ghc-%{name}-doc = %{version}-%{release} +%if %{defined ghc_version} +Requires: ghc-compiler = %{ghc_version} +Requires(post): ghc-compiler = %{ghc_version} +Requires(postun): ghc-compiler = %{ghc_version} +%endif +Requires: ghc-%{name}%{?_isa} = %{version}-%{release} + +%description -n ghc-%{name}-devel +This package provides the Haskell %{name} library development files. + + +%package pdf +Summary: Metapackage for pandoc pdf support +Requires: %{name} = %{version} +Requires: texlive-collection-latex +Requires: texlive-ec +Obsoletes: pandoc-markdown2pdf < %{version}-%{release} + +%description pdf +This package pulls in the TeXLive latex package collection needed by +pandoc to generate pdf output using pdflatex. + +To use --latex-engine=xelatex or lualatex, install texlive-collection-xetex +or texlive-collection-luatex respectively. + + +%prep +%setup -q + + +%build +%ghc_lib_build + + +%install +%ghc_lib_install +%ghc_fix_rpath %{pkgver} +mv %{buildroot}%{_ghclicensedir}/{,ghc-}%{name} + +rm %{buildroot}%{_datadir}/%{pkgver}/COPYRIGHT + +ln -s pandoc %{buildroot}%{_bindir}/hsmarkdown + +install -m 0644 -p -D man/pandoc.1 %{buildroot}%{_mandir}/man1/pandoc.1 + + +%check +%cabal_test + + +%post -n ghc-%{name}-devel +%ghc_pkg_recache + + +%postun -n ghc-%{name}-devel +%ghc_pkg_recache + + +%files +%license COPYING.md COPYRIGHT +%doc BUGS README* changelog +%attr(755,root,root) %{_bindir}/%{name} +%attr(-,root,root) %{_bindir}/hsmarkdown +%attr(644,root,root) %{_mandir}/man1/pandoc.1* + + +%files common +%{_datadir}/%{pkgver} + + +%files pdf + + +%files -n ghc-%{name} -f ghc-%{name}.files +%license COPYING.md COPYRIGHT + + +%files -n ghc-%{name}-devel -f ghc-%{name}-devel.files + + +%changelog +* Wed Dec 12 2018 Jens Petersen - 2.0.6-4 +- link executable statically to its Haskell deps for portability (#1657278) +- add common subpackage for shared data files + +* Thu May 31 2018 Jens Petersen - 2.0.6-3 +- no longer subpackage cmark-gfm and hslua-module-text + +* Thu Feb 08 2018 Fedora Release Engineering - 2.0.6-2 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_28_Mass_Rebuild + +* Wed Jan 24 2018 Jens Petersen - 2.0.6-1 +- update to 2.0.6 +- subpackage 2 new deps + +* Mon Dec 11 2017 Jens Petersen - 1.19.2.4-2 +- refresh to cabal-rpm-0.12 + +* Thu Nov 16 2017 Jens Petersen - 1.19.2.4-1 +- update to 1.19.2.4 +- uses skylighting instead of highlighting-kate + +* Sun Oct 22 2017 Jens Petersen - 1.19.1-5 +- doc-templates is now packaged in Fedora + +* Tue Oct 10 2017 Jens Petersen - 1.19.1-4 +- enable https (#1497456) + +* Thu Aug 03 2017 Fedora Release Engineering - 1.19.1-3 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Binutils_Mass_Rebuild + +* Thu Jul 27 2017 Fedora Release Engineering - 1.19.1-2 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Mass_Rebuild + +* Wed Feb 22 2017 Jens Petersen - 1.19.1-1 +- update to 1.19.1 + +* Wed Feb 15 2017 Björn Esser - 1.17.0.3-5 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_26_Mass_Rebuild + to get back in sync with Haskell so-names + +* Wed Feb 8 2017 Jens Petersen - 1.17.0.3-4 +- drop the static and common subpackages + +* Sat Jan 07 2017 Adam Williamson - 1.17.0.3-3 +- Rebuild for new ghc + +* Thu Sep 8 2016 Jens Petersen - 1.17.0.3-2 +- bump release + +* Mon Jun 27 2016 Jens Petersen - 1.17.0.3-1 +- update to 1.17.0.3 + +* Thu Jun 16 2016 Jens Petersen - 1.16.0.2-4 +- build with network-uri + +* Mon May 02 2016 Zbigniew Jędrzejewski-Szmek - 1.16.0.2-3 +- Rebuild for cmark 0.25 + +* Tue Apr 26 2016 Zbigniew Jędrzejewski-Szmek - 1.16.0.2-2 +- Rebuild for ghc(tagsoup) + +* Sat Mar 05 2016 Jens Petersen - 1.16.0.2-1 +- update to 1.16.0.2 +- patches no longer needed +- move hsmarkdown and pandoc.1 to base package + +* Thu Mar 03 2016 Adam Williamson - 1.13.2-6 +- backport patches to allow build with newer haddock +- rebuild for new ghc-haddock + +* Thu Feb 04 2016 Fedora Release Engineering - 1.13.2-5 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_24_Mass_Rebuild + +* Mon Aug 31 2015 Peter Robinson 1.13.2-4 +- Rebuild (aarch64 vector hashes) + +* Thu Jun 18 2015 Fedora Release Engineering - 1.13.2-3 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_23_Mass_Rebuild + +* Wed Mar 4 2015 Jens Petersen - 1.13.2-2 +- rebuild + +* Mon Jan 26 2015 Jens Petersen - 1.13.2-1 +- update to 1.13.2 + +* Thu Dec 11 2014 Jens Petersen - 1.12.3.3-6 +- add a static alternative subpackage and a common subpackage + +* Sun Aug 17 2014 Fedora Release Engineering - 1.12.3.3-5 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_22_Mass_Rebuild + +* 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