|
|
|
@ -1,17 +1,23 @@
|
|
|
|
|
# generated by cabal-rpm-0.11.1
|
|
|
|
|
# https://fedoraproject.org/wiki/Packaging:Haskell
|
|
|
|
|
|
|
|
|
|
%global pkg_name pandoc
|
|
|
|
|
%global pkgver %{pkg_name}-%{version}
|
|
|
|
|
|
|
|
|
|
%global doctemplates doctemplates-0.1.0.2
|
|
|
|
|
%global subpkgs %{doctemplates}
|
|
|
|
|
|
|
|
|
|
%bcond_with tests
|
|
|
|
|
|
|
|
|
|
Name: %{pkg_name}
|
|
|
|
|
Version: 1.17.0.3
|
|
|
|
|
Release: 5%{?dist}
|
|
|
|
|
Version: 1.19.1
|
|
|
|
|
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
|
|
|
|
|
Source0: https://hackage.haskell.org/package/%{pkgver}/%{pkgver}.tar.gz
|
|
|
|
|
Source1: https://hackage.haskell.org/package/%{doctemplates}/%{doctemplates}.tar.gz
|
|
|
|
|
|
|
|
|
|
BuildRequires: ghc-Cabal-devel
|
|
|
|
|
BuildRequires: ghc-rpm-macros
|
|
|
|
@ -32,6 +38,7 @@ BuildRequires: ghc-containers-devel
|
|
|
|
|
BuildRequires: ghc-data-default-devel
|
|
|
|
|
BuildRequires: ghc-deepseq-devel
|
|
|
|
|
BuildRequires: ghc-directory-devel
|
|
|
|
|
#BuildRequires: ghc-doctemplates-devel
|
|
|
|
|
BuildRequires: ghc-extensible-exceptions-devel
|
|
|
|
|
BuildRequires: ghc-filemanip-devel
|
|
|
|
|
BuildRequires: ghc-filepath-devel
|
|
|
|
@ -53,6 +60,7 @@ 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
|
|
|
|
@ -81,10 +89,10 @@ Markdown and (subsets of) HTML, reStructuredText, LaTeX, DocBook, MediaWiki
|
|
|
|
|
markup, TWiki markup, Haddock markup, OPML, Emacs Org-Mode, txt2tags, Word
|
|
|
|
|
Docx, ODT, and Textile, and it can write Markdown, reStructuredText, XHTML,
|
|
|
|
|
HTML 5, LaTeX, ConTeXt, DocBook, OPML, TEI, OpenDocument, ODT, Word docx, RTF,
|
|
|
|
|
MediaWiki, DokuWiki, Textile, groff man pages, plain text, Emacs Org-Mode,
|
|
|
|
|
AsciiDoc, Haddock markup, EPUB (v2 and v3), FictionBook2, InDesign ICML, and
|
|
|
|
|
several kinds of HTML/javascript slide shows (S5, Slidy, Slideous, DZSlides,
|
|
|
|
|
reveal.js).
|
|
|
|
|
MediaWiki, DokuWiki, ZimWiki, Textile, groff man pages, plain text, Emacs
|
|
|
|
|
Org-Mode, AsciiDoc, Haddock markup, EPUB (v2 and v3), FictionBook2, InDesign
|
|
|
|
|
ICML, 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
|
|
|
|
@ -129,25 +137,41 @@ To use --latex-engine=xelatex or lualatex, install texlive-collection-xetex
|
|
|
|
|
or texlive-collection-luatex respectively.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
%global main_version %{version}
|
|
|
|
|
|
|
|
|
|
%if %{defined ghclibdir}
|
|
|
|
|
%ghc_lib_subpackage %{doctemplates}
|
|
|
|
|
%endif
|
|
|
|
|
|
|
|
|
|
%global version %{main_version}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
%prep
|
|
|
|
|
%setup -q
|
|
|
|
|
%setup -q -a1
|
|
|
|
|
cabal-tweak-flag https False
|
|
|
|
|
cabal-tweak-dep-ver directory '< 1.3' '< 1.4'
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
%build
|
|
|
|
|
%ghc_libs_build %{subpkgs}
|
|
|
|
|
%ghc_lib_build
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
%install
|
|
|
|
|
%ghc_libs_install %{subpkgs}
|
|
|
|
|
%ghc_lib_install
|
|
|
|
|
%ghc_fix_dynamic_rpath %{pkg_name}
|
|
|
|
|
%ghc_fix_rpath %{subpkgs} %{pkgver}
|
|
|
|
|
|
|
|
|
|
rm %{buildroot}%{_datadir}/%{name}-%{version}/{COPYRIGHT,README}
|
|
|
|
|
rm %{buildroot}%{_datadir}/%{name}-%{version}/COPYRIGHT
|
|
|
|
|
|
|
|
|
|
ln -s pandoc %{buildroot}%{_bindir}/hsmarkdown
|
|
|
|
|
|
|
|
|
|
install -m 0644 -p -D man/pandoc.1 %{buildroot}%{_mandir}/man1/pandoc.1
|
|
|
|
|
|
|
|
|
|
mkdir -p %{buildroot}%{_docdir}
|
|
|
|
|
mv %{buildroot}%{_datadir}/%{doctemplates} %{buildroot}%{_docdir}/ghc-doctemplates-devel
|
|
|
|
|
echo "%%doc %{doctemplates}/README.md" >> %{doctemplates}/ghc-doctemplates-devel.files
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
%check
|
|
|
|
|
%cabal_test
|
|
|
|
@ -162,7 +186,7 @@ install -m 0644 -p -D man/pandoc.1 %{buildroot}%{_mandir}/man1/pandoc.1
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
%files
|
|
|
|
|
%license COPYING COPYRIGHT
|
|
|
|
|
%license COPYING.md COPYRIGHT
|
|
|
|
|
%doc BUGS README* changelog
|
|
|
|
|
%attr(755,root,root) %{_bindir}/%{name}
|
|
|
|
|
%attr(-,root,root) %{_bindir}/hsmarkdown
|
|
|
|
@ -173,7 +197,7 @@ install -m 0644 -p -D man/pandoc.1 %{buildroot}%{_mandir}/man1/pandoc.1
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
%files -n ghc-%{name} -f ghc-%{name}.files
|
|
|
|
|
%license COPYING COPYRIGHT
|
|
|
|
|
%license COPYING.md COPYRIGHT
|
|
|
|
|
%{_datadir}/%{name}-%{version}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
@ -181,6 +205,9 @@ install -m 0644 -p -D man/pandoc.1 %{buildroot}%{_mandir}/man1/pandoc.1
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
%changelog
|
|
|
|
|
* Wed Feb 22 2017 Jens Petersen <petersen@redhat.com> - 1.19.1-1
|
|
|
|
|
- update to 1.19.1
|
|
|
|
|
|
|
|
|
|
* Wed Feb 15 2017 Björn Esser <besser82@fedoraproject.org> - 1.17.0.3-5
|
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_26_Mass_Rebuild
|
|
|
|
|
to get back in sync with Haskell so-names
|
|
|
|
|