[10163] | 1 | %define pkg_name pandoc |
---|
[11989] | 2 | %define pkg_version 2.4 |
---|
[11217] | 3 | %define pkg_release 1%{?_dist_release} |
---|
[10163] | 4 | |
---|
| 5 | Summary: general markup converter |
---|
| 6 | Summary(ja): 汎用マークアップ変換ツール |
---|
| 7 | |
---|
| 8 | Name: %{pkg_name} |
---|
| 9 | Version: %{pkg_version} |
---|
| 10 | Release: %{pkg_release} |
---|
| 11 | |
---|
| 12 | License: GPLv2+ |
---|
| 13 | Group: Applications/Text |
---|
| 14 | URL: http://hackage.haskell.org |
---|
| 15 | |
---|
[11635] | 16 | Source0: packages |
---|
[10163] | 17 | |
---|
[11989] | 18 | Source11: pandoc-2.4.tar.gz |
---|
[11635] | 19 | Source12: pandoc.cabal |
---|
| 20 | |
---|
[10163] | 21 | BuildRoot: %{_tmppath}/%{pkg_name}-%{version}-root |
---|
| 22 | |
---|
[10917] | 23 | BuildRequires: ghc haskell-platform |
---|
[10163] | 24 | BuildRequires: libffi-devel gmp-devel zlib-devel |
---|
| 25 | |
---|
| 26 | BuildRequires: libghc-data-default-class |
---|
| 27 | BuildRequires: libghc-dlist |
---|
[11635] | 28 | BuildRequires: libghc-old-locale |
---|
[10163] | 29 | BuildRequires: libghc-aeson |
---|
[11635] | 30 | BuildRequires: libghc-semigroups |
---|
| 31 | BuildRequires: libghc-http-client-tls |
---|
| 32 | BuildRequires: libghc-haddock-library |
---|
[10241] | 33 | BuildRequires: libghc-build-pandoc |
---|
[10163] | 34 | |
---|
| 35 | BuildRequires: docbook-utils docbook-utils-pdf docbook-style-xsl |
---|
| 36 | |
---|
| 37 | Requires: libffi |
---|
| 38 | |
---|
| 39 | Vendor: Project Vine |
---|
| 40 | Distribution: Vine Linux |
---|
| 41 | Packager: ara_t |
---|
| 42 | |
---|
| 43 | |
---|
| 44 | %description |
---|
| 45 | Pandoc is a Haskell library for converting from one markup format to another, |
---|
| 46 | and a command-line tool that uses this library. |
---|
| 47 | It can read markdown and (subsets of) HTML, reStructuredText, LaTeX, DocBook, |
---|
| 48 | MediaWiki markup, Haddock markup, OPML, Emacs Org-mode, and Textile, |
---|
| 49 | and it can write markdown, reStructuredText, HTML, |
---|
| 50 | LaTeX (including rendering as plain PDF or beamer slide shows), |
---|
| 51 | ConTeXt, DocBook, OPML, OpenDocument, ODT, Word docx, RTF, MediaWiki, Textile, |
---|
[10167] | 52 | groff man pages, GNU Texinfo, plain text, Emacs Org-Mode, AsciiDoc, InDesign |
---|
| 53 | ICML, EPUB (v2 or v3), FictionBook2, and several kinds of HTML/javascript |
---|
| 54 | slide shows (S5, Slidy, Slideous, DZSlides, reveal.js). |
---|
[10163] | 55 | |
---|
| 56 | Pandoc extends standard markdown syntax with footnotes, embedded LaTeX, |
---|
| 57 | definition lists, tables, and other features. |
---|
[10167] | 58 | A compatibility mode is provided for those who need a drop-in replacement for |
---|
| 59 | Markdown.pl. |
---|
[10163] | 60 | |
---|
| 61 | In contrast to existing tools for converting markdown to HTML, |
---|
| 62 | which use regex substitutions, pandoc has a modular design: |
---|
| 63 | it consists of a set of readers, which parse text in a given format |
---|
| 64 | and produce a native representation of the document, |
---|
[10167] | 65 | and a set of writers, which convert this native representation into a target |
---|
| 66 | format. |
---|
[10163] | 67 | Thus, adding an input or output format requires only adding a reader or writer. |
---|
| 68 | |
---|
| 69 | %description -l ja |
---|
| 70 | Pandoc はあるマークアップ形式から別の形式に変換するHaskellライブラリで、 |
---|
| 71 | また、このライブラリを使ったコマンドラインツールです。 |
---|
| 72 | markdown、HTML (のサブセット)、reStructuredText、 LaTeX、DocBook、 |
---|
| 73 | MediaWikiマークアップ、Haddockマークアップ、OPML、Emacs Org-mode、 |
---|
| 74 | およびTextileを読み取り、 |
---|
[10167] | 75 | markdown、reStructuredText、HTML、LaTeX (プレインPDFまたはbeamerスライドショー |
---|
| 76 | での描画を含む)、ConTeXt、DocBook、OPML、OpenDocument、ODT、Word docx、RTF、 |
---|
| 77 | MediaWiki、Textile、groff manページ、GNU Texinfo、プレーンテキスト、 |
---|
| 78 | Emacs Org-Mode、AsciiDoc、InDesign ICML、EPUB (v2 または v3)、FictionBook2、 |
---|
| 79 | およびいくつかの種類のHTML/javascriptスライドショー |
---|
[10163] | 80 | (S5, Slidy, Slideous, DZSlides, reveal.js) に書き出せます。 |
---|
| 81 | |
---|
| 82 | Pandocは標準的なmarkdownの文法に脚注、組み込み LaTeX、定義リスト、表、 |
---|
| 83 | およびその他の機能を拡張しています。 |
---|
| 84 | Markdown.plの気軽な置き換えを希望する方向けに互換モードを提供しています。 |
---|
| 85 | |
---|
| 86 | markdownからHTMLに変換する既存のツールは正規表現で置換していますが、 |
---|
| 87 | これらとは異なり、pandoc はモジュール式の設計になっています: |
---|
| 88 | テキストを指定された形式でパースし、文書のネイティブ表現を生成するリーダ一式、 |
---|
[10167] | 89 | および、このネイティブ表現を対象とする形式に変換するライタ一式で構成されて |
---|
| 90 | います。したがって、入力または出力形式を追加するにはリーダやライタを追加する |
---|
| 91 | ことだけが必要です。 |
---|
[10163] | 92 | |
---|
| 93 | |
---|
[10241] | 94 | %package libs |
---|
| 95 | Summary: Library of pandoc |
---|
| 96 | Group: Development/Libraries |
---|
[10163] | 97 | |
---|
[11635] | 98 | Requires: haskell-platform-dep |
---|
| 99 | Requires: libghc-data-default-class |
---|
| 100 | Requires: libghc-dlist |
---|
| 101 | Requires: libghc-old-locale |
---|
| 102 | Requires: libghc-aeson |
---|
| 103 | Requires: libghc-semigroups |
---|
| 104 | Requires: libghc-http-client-tls |
---|
| 105 | Requires: libghc-haddock-library |
---|
| 106 | Requires: libghc-build-pandoc |
---|
| 107 | |
---|
[10241] | 108 | %description libs |
---|
| 109 | Librariy of pandoc for building pandoc-citeproc and pandoc-crossref |
---|
[10163] | 110 | |
---|
| 111 | |
---|
| 112 | %prep |
---|
| 113 | %{__rm} -rf ${RPM_BUILD_ROOT} |
---|
| 114 | |
---|
| 115 | %build |
---|
[11635] | 116 | %ghc_pkg_init |
---|
[10163] | 117 | |
---|
[11635] | 118 | cd %{_builddir} |
---|
| 119 | for pkg in `cat %{SOURCE0}`; do |
---|
| 120 | %{__tar} xzf %{_sourcedir}/${pkg}.tar.gz |
---|
| 121 | pushd ${pkg} |
---|
| 122 | %ghc_fix_dependencies ${pkg} |
---|
| 123 | %cabal_configure1 ${pkg} |
---|
| 124 | %cabal_build |
---|
| 125 | %cabal_haddock |
---|
| 126 | %cabal_copy_resister ${pkg} |
---|
| 127 | popd |
---|
| 128 | done |
---|
[10163] | 129 | |
---|
| 130 | |
---|
| 131 | %install |
---|
[11635] | 132 | %{__mkdir_p} ${RPM_BUILD_ROOT}%{_mandir}/man1 |
---|
[10163] | 133 | |
---|
[11635] | 134 | # copy documents and mannual |
---|
| 135 | pushd %{_builddir}/%{name}-%{version} |
---|
| 136 | %{__cp} \ |
---|
| 137 | BUGS changelog CONTRIBUTING.md COPYING.md COPYRIGHT \ |
---|
| 138 | MANUAL.txt README.md \ |
---|
| 139 | ${RPM_BUILD_ROOT}%{_docdir}/%{name}-%{version} |
---|
| 140 | %{__cp} man/pandoc.1 ${RPM_BUILD_ROOT}%{_mandir}/man1/ |
---|
| 141 | popd |
---|
[10163] | 142 | |
---|
[11635] | 143 | |
---|
[10163] | 144 | %clean |
---|
| 145 | %{__rm} -rf ${RPM_BUILD_ROOT} |
---|
| 146 | |
---|
[10241] | 147 | %post libs |
---|
[11635] | 148 | %ghc_pkg_recache |
---|
[10163] | 149 | |
---|
[10241] | 150 | %postun libs |
---|
[11635] | 151 | %ghc_pkg_recache |
---|
[10241] | 152 | |
---|
| 153 | |
---|
[10163] | 154 | %files |
---|
| 155 | %defattr(-, root, root) |
---|
| 156 | %{_bindir}/pandoc |
---|
[10241] | 157 | %{_datadir}/%{name}-%{version}/ |
---|
| 158 | %{_docdir}/%{name}-%{version}/ |
---|
[11635] | 159 | %{_mandir}/man1/ |
---|
[10163] | 160 | |
---|
[10241] | 161 | %files libs |
---|
[10163] | 162 | %defattr(-, root, root) |
---|
[10241] | 163 | %{_libdir}/ghc-%{ghc_version}/ |
---|
[11635] | 164 | %{_libdir}/ghc-lib/%{name}-%{version}/ |
---|
[10163] | 165 | |
---|
| 166 | |
---|
| 167 | %changelog |
---|
[11989] | 168 | * Mon Dec 17 2018 Toshiaki Ara <ara_t@384.jp> 2.4-1 |
---|
| 169 | - update to 2.4 |
---|
| 170 | - build using ghc-8.6.3 |
---|
| 171 | |
---|
[11762] | 172 | * Thu Aug 09 2018 Toshiaki Ara <ara_t@384.jp> 2.2.3.2-1 |
---|
| 173 | - update to 2.2.3.2 |
---|
| 174 | - build using ghc-8.4.3-2 |
---|
| 175 | - drop BuildRequires: yaml |
---|
| 176 | |
---|
[11745] | 177 | * Sat Jul 21 2018 Toshiaki Ara <ara_t@384.jp> 2.2.2-1 |
---|
| 178 | - update to 2.2.2 |
---|
| 179 | - build using ghc-8.4.3 |
---|
| 180 | |
---|
[11635] | 181 | * Fri May 18 2018 Toshiaki Ara <ara_t@384.jp> 2.2.1-1 |
---|
| 182 | - update to 2.2.1 |
---|
| 183 | - rebuild using ghc-8.4.2 |
---|
| 184 | - rewrite using macro |
---|
| 185 | |
---|
[11383] | 186 | * Tue Jan 09 2018 Toshiaki Ara <ara_t@384.jp> 2.0.6-1 |
---|
| 187 | - update to 2.0.6 |
---|
| 188 | - build using ghc-8.2.2 |
---|
[11217] | 189 | |
---|
[11383] | 190 | * Tue Feb 21 2017 Toshiaki Ara <ara_t@384.jp> 1.19.2.1-2 |
---|
| 191 | - update to 1.19.2.1 |
---|
| 192 | - build using ghc-8.0.2 |
---|
| 193 | |
---|
[10917] | 194 | * Fri Feb 03 2017 Toshiaki Ara <ara_t@384.jp> 1.17.1-2 |
---|
| 195 | - rebuild using ghc-8.0.1 |
---|
| 196 | |
---|
[10380] | 197 | * Sat Jun 18 2016 Toshiaki Ara <ara_t@384.jp> 1.17.1-1 |
---|
| 198 | - update to 1.17.1 |
---|
| 199 | |
---|
[10241] | 200 | * Fri May 06 2016 Toshiaki Ara <ara_t@384.jp> 1.17.0.3-5 |
---|
| 201 | - update to 1.17.0.3 |
---|
| 202 | - add BuildRequires: libghc-build-pandoc |
---|
| 203 | - provide pandoc-libs for building pandoc-citeproc and pacdoc-crossref |
---|
| 204 | - delete subpackages: pandoc-citeproc and pacdoc-crossref |
---|
| 205 | |
---|
| 206 | * Tue Apr 12 2016 Toshiaki Ara <ara_t@384.jp> 1.16.0.2-5 |
---|
[10163] | 207 | - correct SPEC file |
---|
| 208 | |
---|
[10241] | 209 | * Mon Mar 07 2016 Toshiaki Ara <ara_t@384.jp> 1.16.0.2-4 |
---|
[10163] | 210 | - correct pandoc-citeproc error |
---|
| 211 | |
---|
[10241] | 212 | * Tue Mar 01 2016 Toshiaki Ara <ara_t@384.jp> 1.16.0.2-2 |
---|
[10163] | 213 | - rebuild under dependent rpm packages |
---|
| 214 | |
---|
| 215 | * Sun Feb 21 2016 Toshiaki Ara <ara_t@384.jp> 1.16.0.2-2 |
---|
| 216 | - rebuild under ghc-7.10.3 and haskell-platform-2015.7.10.3 |
---|
| 217 | |
---|
| 218 | * Sun Feb 07 2016 Toshiaki Ara <ara_t@384.jp> 1.16.0.2-1 |
---|
| 219 | - new package |
---|