diff --git a/pandoc-1.8.2.1-use-iftex.patch b/pandoc-1.8.2.1-use-iftex.patch new file mode 100644 index 0000000..b5015da --- /dev/null +++ b/pandoc-1.8.2.1-use-iftex.patch @@ -0,0 +1,26 @@ +--- pandoc-1.8.2.1/templates/default.latex.orig 2011-08-02 03:02:52.000000000 +0900 ++++ pandoc-1.8.2.1/templates/default.latex 2011-11-17 17:57:27.933740728 +0900 +@@ -1,16 +1,17 @@ + \documentclass$if(fontsize)$[$fontsize$]$endif${article} + \usepackage{amssymb,amsmath} +-\usepackage{ifxetex,ifluatex} ++%\usepackage{ifxetex,ifluatex} ++\usepackage{ifxetex} + \ifxetex + \usepackage{fontspec,xltxtra,xunicode} + \defaultfontfeatures{Mapping=tex-text,Scale=MatchLowercase} + \else +- \ifluatex +- \usepackage{fontspec} +- \defaultfontfeatures{Mapping=tex-text,Scale=MatchLowercase} +- \else ++% \ifluatex ++% \usepackage{fontspec} ++% \defaultfontfeatures{Mapping=tex-text,Scale=MatchLowercase} ++% \else + \usepackage[utf8]{inputenc} +- \fi ++% \fi + \fi + $if(natbib)$ + \usepackage{natbib} diff --git a/pandoc.spec b/pandoc.spec index c2d2368..95e6d44 100644 --- a/pandoc.spec +++ b/pandoc.spec @@ -10,25 +10,58 @@ MediaWiki, groff man pages, EPUB, and S5 and Slidy HTML slide shows. Name: %{pkg_name} Version: 1.8.2.1 -Release: 2%{?dist}.2 +Release: 3%{?dist} Summary: Markup conversion tool for markdown Group: Applications/Publishing License: GPLv2+ +# BEGIN cabal2spec URL: http://hackage.haskell.org/package/%{name} Source0: http://hackage.haskell.org/packages/archive/%{name}/%{version}/%{name}-%{version}.tar.gz ExclusiveArch: %{ghc_arches} BuildRequires: ghc-Cabal-devel BuildRequires: ghc-rpm-macros BuildRequires: hscolour -BuildRequires: ghc-base64-bytestring-prof, ghc-citeproc-hs-prof, ghc-dlist-prof, ghc-highlighting-kate-prof, ghc-HTTP-prof, ghc-json-prof, ghc-mtl-prof, ghc-network-prof, ghc-pandoc-types-prof, ghc-parsec-prof, ghc-tagsoup-prof, ghc-texmath-prof, ghc-utf8-string-prof, ghc-xhtml-prof, ghc-xml-prof, ghc-zip-archive-prof, ghc-extensible-exceptions-prof, ghc-random-prof +# END cabal2spec +BuildRequires: ghc-base64-bytestring-prof +BuildRequires: ghc-citeproc-hs-prof +BuildRequires: ghc-dlist-prof +BuildRequires: ghc-highlighting-kate-prof +BuildRequires: ghc-HTTP-prof +BuildRequires: ghc-json-prof +BuildRequires: ghc-mtl-prof +BuildRequires: ghc-network-prof +BuildRequires: ghc-pandoc-types-prof +BuildRequires: ghc-parsec-prof +BuildRequires: ghc-tagsoup-prof +BuildRequires: ghc-texmath-prof +BuildRequires: ghc-utf8-string-prof +BuildRequires: ghc-xhtml-prof +BuildRequires: ghc-xml-prof +BuildRequires: ghc-zip-archive-prof +BuildRequires: ghc-extensible-exceptions-prof +BuildRequires: ghc-random-prof +Patch1: pandoc-1.8.2.1-use-iftex.patch %description %{common_description} +%package markdown2pdf +Summary: Convert markdown to PDF via LaTeX +Group: Applications/Publishing +Requires: pandoc = %{version}-%{release} +Requires: texlive-xetex + +%description markdown2pdf +%{common_description} + +This package provides pandoc's markdown2pdf convertion tool. + + %prep %setup -q +%patch1 -p1 -b .orig %build @@ -46,16 +79,23 @@ rm %{buildroot}%{_datadir}/%{name}-%{version}/{BUGS,COPYRIGHT,INSTALL,README,cha %files -%defattr(-,root,root,-) %doc BUGS COPYING COPYRIGHT README %attr(755,root,root) %{_bindir}/%{name} -%attr(755,root,root) %{_bindir}/markdown2pdf %{_datadir}/%{name}-%{version} -%attr(644,root,root) %{_mandir}/man1/* +%attr(644,root,root) %{_mandir}/man1/pandoc.1* %attr(644,root,root) %{_mandir}/man5/* +%files markdown2pdf +%attr(755,root,root) %{_bindir}/markdown2pdf +%attr(644,root,root) %{_mandir}/man1/markdown2pdf.1* + + %changelog +* 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