]>
Commit | Line | Data |
---|---|---|
5645600e JR |
1 | # TODO: |
2 | # - ghc panics on ix86 when building with optimizations: | |
3 | # ghc: panic! (the 'impossible' happened) | |
4 | # (GHC version 8.10.1: | |
5 | # piResultTy | |
6 | # [(Text, ParsecT [Tok] LaTeXState PandocPure Inlines)] | |
7 | # Int | |
8 | # Call stack: | |
9 | # CallStack (from HasCallStack): | |
10 | # callStackDoc, called at compiler/utils/Outputable.hs:1179:37 in ghc:Outputable | |
11 | # pprPanic, called at compiler/types/Type.hs:1051:35 in ghc:Type | |
611d066d JB |
12 | # |
13 | # Conditional build: | |
14 | %bcond_without prof # profiling library | |
15 | # | |
16 | Summary: Conversion between markup formats | |
17 | Summary(pl.UTF-8): Konwersja między różnymi formatami znaczników | |
18 | Name: pandoc | |
11d83b2d | 19 | Version: 2.9.2.1 |
611d066d JB |
20 | Release: 1 |
21 | License: GPL v2+ | |
22 | Group: Applications/Publishing | |
11d83b2d JR |
23 | Source0: https://github.com/jgm/pandoc/archive/%{version}/%{name}-%{version}.tar.gz |
24 | # Source0-md5: 3a403a40c9e5f7179f36c7817b97e83d | |
611d066d | 25 | Patch0: %{name}-deps.patch |
11d83b2d | 26 | Patch1: jira-wiki-markup-1.3.patch |
611d066d JB |
27 | URL: http://johnmacfarlane.net/pandoc/ |
28 | BuildRequires: alex | |
29 | BuildRequires: ghc >= 6.12.3 | |
11d83b2d | 30 | BuildRequires: ghc-Glob >= 0.7 |
611d066d | 31 | BuildRequires: ghc-HTTP >= 4000.0.5 |
11d83b2d JR |
32 | BuildRequires: ghc-HsYAML >= 0.2 |
33 | BuildRequires: ghc-JuicyPixels >= 3.1.6.1 | |
34 | BuildRequires: ghc-SHA >= 1.6 | |
35 | BuildRequires: ghc-aeson >= 0.7 | |
36 | BuildRequires: ghc-aeson-pretty >= 0.8.5 | |
37 | BuildRequires: ghc-attoparsec >= 0.12 | |
611d066d | 38 | BuildRequires: ghc-base64-bytestring >= 0.1 |
11d83b2d JR |
39 | BuildRequires: ghc-base-compat >= 0.9, |
40 | BuildRequires: ghc-base-noprelude >= 4.9 | |
41 | BuildRequires: ghc-binary >= 0.5 | |
42 | BuildRequires: ghc-blaze-html >= 0.9 | |
43 | BuildRequires: ghc-blaze-markup >= 0.8 | |
611d066d | 44 | BuildRequires: ghc-bytestring >= 0.9 |
11d83b2d JR |
45 | BuildRequires: ghc-case-insensitive >= 1.2 |
46 | BuildRequires: ghc-cmark-gfm >= 0.2 | |
47 | BuildRequires: ghc-containers >= 0.4.2.1 | |
611d066d | 48 | BuildRequires: ghc-data-default >= 0.4 |
11d83b2d JR |
49 | BuildRequires: ghc-deepseq >= 1.3 |
50 | BuildRequires: ghc-directory >= 1.2.3 | |
51 | BuildRequires: ghc-doclayout >= 0.3 | |
52 | BuildRequires: ghc-doctemplates >= 0.8 | |
53 | BuildRequires: ghc-emojis >= 0.1 | |
54 | BuildRequires: ghc-exceptions >= 0.8 | |
55 | BuildRequires: ghc-file-embed >= 0.0 | |
611d066d | 56 | BuildRequires: ghc-filepath >= 1.1 |
11d83b2d JR |
57 | BuildRequires: ghc-haddock-library >= 1.8 |
58 | BuildRequires: ghc-hslua >= 1.0.1 | |
59 | BuildRequires: ghc-hslua-module-system >= 0.2 | |
60 | BuildRequires: ghc-hslua-module-text >= 0.2 | |
61 | BuildRequires: ghc-http-client >= 0.4.30 | |
62 | BuildRequires: ghc-http-client-tls >= 0.2.4 | |
63 | BuildRequires: ghc-http-types >= 0.8 | |
64 | BuildRequires: ghc-ipynb >= 0.1 | |
65 | BuildRequires: ghc-jira-wiki-markup >= 1.1.3 | |
66 | BuildRequires: ghc-mtl >= 2.2 | |
67 | BuildRequires: ghc-network >= 2.6, | |
68 | BuildRequires: ghc-network-uri >= 2.6 | |
69 | BuildRequires: ghc-pandoc-types >= 1.20 | |
611d066d | 70 | BuildRequires: ghc-parsec >= 3.1 |
11d83b2d | 71 | BuildRequires: ghc-process >= 1.2.3 |
611d066d | 72 | BuildRequires: ghc-random >= 1 |
11d83b2d JR |
73 | BuildRequires: ghc-safe >= 0.3 |
74 | BuildRequires: ghc-scientific >= 0.3 | |
75 | BuildRequires: ghc-skylighting >= 0.8.3.2 | |
76 | BuildRequires: ghc-skylighting-core >= 0.8.3.2 | |
77 | BuildRequires: ghc-split >= 0.2 | |
611d066d | 78 | BuildRequires: ghc-syb >= 0.1 |
11d83b2d | 79 | BuildRequires: ghc-tagsoup >= 0.14.6 |
611d066d | 80 | BuildRequires: ghc-temporary >= 1.1 |
11d83b2d JR |
81 | BuildRequires: ghc-texmath >= 0.12.0.1 |
82 | BuildRequires: ghc-text >= 1.1.1.0 | |
83 | BuildRequires: ghc-text-conversions >= 0.3 | |
84 | BuildRequires: ghc-time >= 1.5 | |
85 | BuildRequires: ghc-unicode-transforms >= 0.3 | |
611d066d | 86 | BuildRequires: ghc-unordered-containers >= 0.2 |
611d066d | 87 | BuildRequires: ghc-vector >= 0.10 |
611d066d | 88 | BuildRequires: ghc-xml >= 1.3.12 |
11d83b2d | 89 | BuildRequires: ghc-zip-archive >= 0.2.3.4 |
611d066d | 90 | BuildRequires: ghc-zlib >= 0.5 |
611d066d | 91 | %if %{with prof} |
11d83b2d | 92 | BuildRequires: ghc-Glob-prof >= 0.7 |
611d066d | 93 | BuildRequires: ghc-HTTP-prof >= 4000.0.5 |
11d83b2d JR |
94 | BuildRequires: ghc-HsYAML-prof >= 0.2 |
95 | BuildRequires: ghc-JuicyPixels-prof >= 3.1.6.1 | |
96 | BuildRequires: ghc-SHA-prof >= 1.6 | |
97 | BuildRequires: ghc-aeson-prof >= 0.7 | |
98 | BuildRequires: ghc-aeson-pretty-prof >= 0.8.5 | |
99 | BuildRequires: ghc-attoparsec-prof >= 0.12 | |
611d066d | 100 | BuildRequires: ghc-base64-bytestring-prof >= 0.1 |
11d83b2d JR |
101 | BuildRequires: ghc-base-compat-prof >= 0.9, |
102 | BuildRequires: ghc-binary-prof >= 0.5 | |
103 | BuildRequires: ghc-blaze-html-prof >= 0.9 | |
104 | BuildRequires: ghc-blaze-markup-prof >= 0.8 | |
611d066d | 105 | BuildRequires: ghc-bytestring-prof >= 0.9 |
11d83b2d JR |
106 | BuildRequires: ghc-case-insensitive-prof >= 1.2 |
107 | BuildRequires: ghc-cmark-gfm-prof >= 0.2 | |
108 | BuildRequires: ghc-containers-prof >= 0.4.2.1 | |
611d066d | 109 | BuildRequires: ghc-data-default-prof >= 0.4 |
11d83b2d JR |
110 | BuildRequires: ghc-deepseq-prof >= 1.3 |
111 | BuildRequires: ghc-directory-prof >= 1.2.3 | |
112 | BuildRequires: ghc-doclayout-prof >= 0.3 | |
113 | BuildRequires: ghc-doctemplates-prof >= 0.8 | |
114 | BuildRequires: ghc-emojis-prof >= 0.1 | |
115 | BuildRequires: ghc-exceptions-prof >= 0.8 | |
116 | BuildRequires: ghc-file-embed-prof >= 0.0 | |
611d066d | 117 | BuildRequires: ghc-filepath-prof >= 1.1 |
11d83b2d JR |
118 | BuildRequires: ghc-haddock-library-prof >= 1.8 |
119 | BuildRequires: ghc-hslua-prof >= 1.0.1 | |
120 | BuildRequires: ghc-hslua-module-system-prof >= 0.2 | |
121 | BuildRequires: ghc-hslua-module-text-prof >= 0.2 | |
122 | BuildRequires: ghc-http-client-prof >= 0.4.30 | |
123 | BuildRequires: ghc-http-client-tls-prof >= 0.2.4 | |
124 | BuildRequires: ghc-http-types-prof >= 0.8 | |
125 | BuildRequires: ghc-ipynb-prof >= 0.1 | |
126 | BuildRequires: ghc-jira-wiki-markup-prof >= 1.1.3 | |
127 | BuildRequires: ghc-mtl-prof >= 2.2 | |
128 | BuildRequires: ghc-network-prof >= 2.6, | |
129 | BuildRequires: ghc-network-uri-prof >= 2.6 | |
130 | BuildRequires: ghc-pandoc-types-prof >= 1.20 | |
611d066d | 131 | BuildRequires: ghc-parsec-prof >= 3.1 |
11d83b2d | 132 | BuildRequires: ghc-process-prof >= 1.2.3 |
611d066d | 133 | BuildRequires: ghc-random-prof >= 1 |
11d83b2d JR |
134 | BuildRequires: ghc-safe-prof >= 0.3 |
135 | BuildRequires: ghc-scientific-prof >= 0.3 | |
136 | BuildRequires: ghc-skylighting-prof >= 0.8.3.2 | |
137 | BuildRequires: ghc-skylighting-core-prof >= 0.8.3.2 | |
138 | BuildRequires: ghc-split-prof >= 0.2 | |
611d066d | 139 | BuildRequires: ghc-syb-prof >= 0.1 |
11d83b2d | 140 | BuildRequires: ghc-tagsoup-prof >= 0.14.6 |
611d066d | 141 | BuildRequires: ghc-temporary-prof >= 1.1 |
11d83b2d JR |
142 | BuildRequires: ghc-texmath-prof >= 0.12.0.1 |
143 | BuildRequires: ghc-text-prof >= 1.1.1.0 | |
144 | BuildRequires: ghc-text-conversions-prof >= 0.3 | |
145 | BuildRequires: ghc-time-prof >= 1.5 | |
146 | BuildRequires: ghc-unicode-transforms-prof >= 0.3 | |
611d066d | 147 | BuildRequires: ghc-unordered-containers-prof >= 0.2 |
611d066d | 148 | BuildRequires: ghc-vector-prof >= 0.10 |
611d066d | 149 | BuildRequires: ghc-xml-prof >= 1.3.12 |
11d83b2d | 150 | BuildRequires: ghc-zip-archive-prof >= 0.2.3.4 |
611d066d | 151 | BuildRequires: ghc-zlib-prof >= 0.5 |
611d066d JB |
152 | %endif |
153 | BuildRequires: happy | |
611d066d JB |
154 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) |
155 | ||
156 | %description | |
157 | Pandoc is a Haskell library for converting from one markup format to | |
158 | another, and a command-line tool that uses this library. It can read | |
159 | markdown and (subsets of) Textile, reStructuredText, HTML, LaTeX, | |
160 | MediaWiki markup, Haddock markup, OPML, and DocBook; and it can write | |
161 | plain text, markdown, reStructuredText, XHTML, HTML 5, LaTeX | |
162 | (including beamer slide shows), ConTeXt, RTF, OPML, DocBook, | |
163 | OpenDocument, ODT, Word docx, GNU Texinfo, MediaWiki markup, EPUB (v2 | |
164 | or v3), FictionBook2, Textile, groff man pages, Emacs Org-Mode, | |
165 | AsciiDoc, and Slidy, Slideous, DZSlides, reveal.js or S5 HTML slide | |
166 | shows. It can also produce PDF output on systems where LaTeX is | |
167 | installed. | |
168 | ||
169 | %description -l pl.UTF-8 | |
170 | Pandoc to biblioteka Haskella do konwersji tekstów z jednego formatu | |
171 | znaczników do innych oraz narzędzie linii poleceń wykorzystujące tę | |
172 | bibliotekę. Potrafi czytać format markdown oraz (podzbiory) formatów | |
173 | Textile, reStructuredText, HTML, LaTeX, znaczniki MediaWiki, znaczniki | |
174 | Haddock, OPML oraz DocBook. Potrafi zapisywać zwykły tekst, markdown, | |
175 | reStructuredText, XHTML, HTML 5, LaTeX (wraz z pokazami slajdów dla | |
176 | pakietu beamer), ConTeXt, RTF, OPML, DocBook, OpenDocument, ODT, Word | |
177 | docx, GNU Texinfo, znaczniki MediaWiki, EPUB (w wersji 2 lub 3), | |
178 | FictionBook2, Textile, strony man w formacie groff, Emacs Org-Mode, | |
179 | AsciiDoc oraz pokazy slajdów HTML Slidy, Slideous, DZSlides, reveal.js | |
180 | lub S5. Potrafi także tworzyć wyjście PDF na systemach z | |
181 | zainstalowanym LaTeXem. | |
182 | ||
183 | %package -n ghc-pandoc | |
184 | Summary: Conversion between markup formats | |
185 | Summary(pl.UTF-8): Konwersja między różnymi formatami znaczników | |
186 | Group: Development/Languages | |
187 | Requires(post,postun): /usr/bin/ghc-pkg | |
188 | %requires_eq ghc | |
11d83b2d | 189 | Requires: ghc-Glob >= 0.7 |
611d066d | 190 | Requires: ghc-HTTP >= 4000.0.5 |
11d83b2d JR |
191 | Requires: ghc-HsYAML >= 0.2 |
192 | Requires: ghc-JuicyPixels >= 3.1.6.1 | |
193 | Requires: ghc-SHA >= 1.6 | |
194 | Requires: ghc-aeson >= 0.7 | |
195 | Requires: ghc-aeson-pretty >= 0.8.5 | |
196 | Requires: ghc-attoparsec >= 0.12 | |
611d066d | 197 | Requires: ghc-base64-bytestring >= 0.1 |
11d83b2d JR |
198 | Requires: ghc-base-compat >= 0.9, |
199 | Requires: ghc-base-noprelude >= 4.9 | |
200 | Requires: ghc-binary >= 0.5 | |
201 | Requires: ghc-blaze-html >= 0.9 | |
202 | Requires: ghc-blaze-markup >= 0.8 | |
611d066d | 203 | Requires: ghc-bytestring >= 0.9 |
11d83b2d JR |
204 | Requires: ghc-case-insensitive >= 1.2 |
205 | Requires: ghc-cmark-gfm >= 0.2 | |
206 | Requires: ghc-containers >= 0.4.2.1 | |
611d066d | 207 | Requires: ghc-data-default >= 0.4 |
11d83b2d JR |
208 | Requires: ghc-deepseq >= 1.3 |
209 | Requires: ghc-directory >= 1.2.3 | |
210 | Requires: ghc-doclayout >= 0.3 | |
211 | Requires: ghc-doctemplates >= 0.8 | |
212 | Requires: ghc-emojis >= 0.1 | |
213 | Requires: ghc-exceptions >= 0.8 | |
214 | Requires: ghc-file-embed >= 0.0 | |
611d066d | 215 | Requires: ghc-filepath >= 1.1 |
11d83b2d JR |
216 | Requires: ghc-haddock-library >= 1.8 |
217 | Requires: ghc-hslua >= 1.0.1 | |
218 | Requires: ghc-hslua-module-system >= 0.2 | |
219 | Requires: ghc-hslua-module-text >= 0.2 | |
220 | Requires: ghc-http-client >= 0.4.30 | |
221 | Requires: ghc-http-client-tls >= 0.2.4 | |
222 | Requires: ghc-http-types >= 0.8 | |
223 | Requires: ghc-ipynb >= 0.1 | |
224 | Requires: ghc-jira-wiki-markup >= 1.1.3 | |
225 | Requires: ghc-mtl >= 2.2 | |
226 | Requires: ghc-network >= 2.6, | |
227 | Requires: ghc-network-uri >= 2.6 | |
228 | Requires: ghc-pandoc-types >= 1.20 | |
611d066d | 229 | Requires: ghc-parsec >= 3.1 |
11d83b2d | 230 | Requires: ghc-process >= 1.2.3 |
611d066d | 231 | Requires: ghc-random >= 1 |
11d83b2d JR |
232 | Requires: ghc-safe >= 0.3 |
233 | Requires: ghc-scientific >= 0.3 | |
234 | Requires: ghc-skylighting >= 0.8.3.2 | |
235 | Requires: ghc-skylighting-core >= 0.8.3.2 | |
236 | Requires: ghc-split >= 0.2 | |
611d066d | 237 | Requires: ghc-syb >= 0.1 |
11d83b2d | 238 | Requires: ghc-tagsoup >= 0.14.6 |
611d066d | 239 | Requires: ghc-temporary >= 1.1 |
11d83b2d JR |
240 | Requires: ghc-texmath >= 0.12.0.1 |
241 | Requires: ghc-text >= 1.1.1.0 | |
242 | Requires: ghc-text-conversions >= 0.3 | |
243 | Requires: ghc-time >= 1.5 | |
244 | Requires: ghc-unicode-transforms >= 0.3 | |
611d066d | 245 | Requires: ghc-unordered-containers >= 0.2 |
611d066d | 246 | Requires: ghc-vector >= 0.10 |
611d066d | 247 | Requires: ghc-xml >= 1.3.12 |
11d83b2d | 248 | Requires: ghc-zip-archive >= 0.2.3.4 |
611d066d | 249 | Requires: ghc-zlib >= 0.5 |
611d066d JB |
250 | |
251 | %description -n ghc-pandoc | |
252 | Pandoc is a Haskell library for converting from one markup format to | |
253 | another, and a command-line tool that uses this library. It can read | |
254 | markdown and (subsets of) Textile, reStructuredText, HTML, LaTeX, | |
255 | MediaWiki markup, Haddock markup, OPML, and DocBook; and it can write | |
256 | plain text, markdown, reStructuredText, XHTML, HTML 5, LaTeX | |
257 | (including beamer slide shows), ConTeXt, RTF, OPML, DocBook, | |
258 | OpenDocument, ODT, Word docx, GNU Texinfo, MediaWiki markup, EPUB (v2 | |
259 | or v3), FictionBook2, Textile, groff man pages, Emacs Org-Mode, | |
260 | AsciiDoc, and Slidy, Slideous, DZSlides, reveal.js or S5 HTML slide | |
261 | shows. It can also produce PDF output on systems where LaTeX is | |
262 | installed. | |
263 | ||
264 | %description -n ghc-pandoc -l pl.UTF-8 | |
265 | Pandoc to biblioteka Haskella do konwersji tekstów z jednego formatu | |
266 | znaczników do innych oraz narzędzie linii poleceń wykorzystujące tę | |
267 | bibliotekę. Potrafi czytać format markdown oraz (podzbiory) formatów | |
268 | Textile, reStructuredText, HTML, LaTeX, znaczniki MediaWiki, znaczniki | |
269 | Haddock, OPML oraz DocBook. Potrafi zapisywać zwykły tekst, markdown, | |
270 | reStructuredText, XHTML, HTML 5, LaTeX (wraz z pokazami slajdów dla | |
271 | pakietu beamer), ConTeXt, RTF, OPML, DocBook, OpenDocument, ODT, Word | |
272 | docx, GNU Texinfo, znaczniki MediaWiki, EPUB (w wersji 2 lub 3), | |
273 | FictionBook2, Textile, strony man w formacie groff, Emacs Org-Mode, | |
274 | AsciiDoc oraz pokazy slajdów HTML Slidy, Slideous, DZSlides, reveal.js | |
275 | lub S5. Potrafi także tworzyć wyjście PDF na systemach z | |
276 | zainstalowanym LaTeXem. | |
277 | ||
278 | %package -n ghc-pandoc-prof | |
279 | Summary: Profiling %{name} library for GHC | |
280 | Summary(pl.UTF-8): Biblioteka profilująca %{name} dla GHC | |
281 | Group: Development/Libraries | |
282 | Requires: ghc-pandoc = %{version}-%{release} | |
11d83b2d | 283 | Requires: ghc-Glob-prof >= 0.7 |
611d066d | 284 | Requires: ghc-HTTP-prof >= 4000.0.5 |
11d83b2d JR |
285 | Requires: ghc-HsYAML-prof >= 0.2 |
286 | Requires: ghc-JuicyPixels-prof >= 3.1.6.1 | |
287 | Requires: ghc-SHA-prof >= 1.6 | |
288 | Requires: ghc-aeson-prof >= 0.7 | |
289 | Requires: ghc-aeson-pretty-prof >= 0.8.5 | |
290 | Requires: ghc-attoparsec-prof >= 0.12 | |
611d066d | 291 | Requires: ghc-base64-bytestring-prof >= 0.1 |
11d83b2d JR |
292 | Requires: ghc-base-compat-prof >= 0.9, |
293 | Requires: ghc-binary-prof >= 0.5 | |
294 | Requires: ghc-blaze-html-prof >= 0.9 | |
295 | Requires: ghc-blaze-markup-prof >= 0.8 | |
611d066d | 296 | Requires: ghc-bytestring-prof >= 0.9 |
11d83b2d JR |
297 | Requires: ghc-case-insensitive-prof >= 1.2 |
298 | Requires: ghc-cmark-gfm-prof >= 0.2 | |
299 | Requires: ghc-containers-prof >= 0.4.2.1 | |
611d066d | 300 | Requires: ghc-data-default-prof >= 0.4 |
11d83b2d JR |
301 | Requires: ghc-deepseq-prof >= 1.3 |
302 | Requires: ghc-directory-prof >= 1.2.3 | |
303 | Requires: ghc-doclayout-prof >= 0.3 | |
304 | Requires: ghc-doctemplates-prof >= 0.8 | |
305 | Requires: ghc-emojis-prof >= 0.1 | |
306 | Requires: ghc-exceptions-prof >= 0.8 | |
307 | Requires: ghc-file-embed-prof >= 0.0 | |
611d066d | 308 | Requires: ghc-filepath-prof >= 1.1 |
11d83b2d JR |
309 | Requires: ghc-haddock-library-prof >= 1.8 |
310 | Requires: ghc-hslua-prof >= 1.0.1 | |
311 | Requires: ghc-hslua-module-system-prof >= 0.2 | |
312 | Requires: ghc-hslua-module-text-prof >= 0.2 | |
313 | Requires: ghc-http-client-prof >= 0.4.30 | |
314 | Requires: ghc-http-client-tls-prof >= 0.2.4 | |
315 | Requires: ghc-http-types-prof >= 0.8 | |
316 | Requires: ghc-ipynb-prof >= 0.1 | |
317 | Requires: ghc-jira-wiki-markup-prof >= 1.1.3 | |
318 | Requires: ghc-mtl-prof >= 2.2 | |
319 | Requires: ghc-network-prof >= 2.6, | |
320 | Requires: ghc-network-uri-prof >= 2.6 | |
321 | Requires: ghc-pandoc-types-prof >= 1.20 | |
611d066d | 322 | Requires: ghc-parsec-prof >= 3.1 |
11d83b2d | 323 | Requires: ghc-process-prof >= 1.2.3 |
611d066d | 324 | Requires: ghc-random-prof >= 1 |
11d83b2d JR |
325 | Requires: ghc-safe-prof >= 0.3 |
326 | Requires: ghc-scientific-prof >= 0.3 | |
327 | Requires: ghc-skylighting-prof >= 0.8.3.2 | |
328 | Requires: ghc-skylighting-core-prof >= 0.8.3.2 | |
329 | Requires: ghc-split-prof >= 0.2 | |
611d066d | 330 | Requires: ghc-syb-prof >= 0.1 |
11d83b2d | 331 | Requires: ghc-tagsoup-prof >= 0.14.6 |
611d066d | 332 | Requires: ghc-temporary-prof >= 1.1 |
11d83b2d JR |
333 | Requires: ghc-texmath-prof >= 0.12.0.1 |
334 | Requires: ghc-text-prof >= 1.1.1.0 | |
335 | Requires: ghc-text-conversions-prof >= 0.3 | |
336 | Requires: ghc-time-prof >= 1.5 | |
337 | Requires: ghc-unicode-transforms-prof >= 0.3 | |
611d066d | 338 | Requires: ghc-unordered-containers-prof >= 0.2 |
611d066d | 339 | Requires: ghc-vector-prof >= 0.10 |
611d066d | 340 | Requires: ghc-xml-prof >= 1.3.12 |
11d83b2d | 341 | Requires: ghc-zip-archive-prof >= 0.2.3.4 |
611d066d | 342 | Requires: ghc-zlib-prof >= 0.5 |
611d066d JB |
343 | |
344 | %description -n ghc-pandoc-prof | |
345 | Profiling %{name} library for GHC. Should be installed when GHC's | |
346 | profiling subsystem is needed. | |
347 | ||
348 | %description -n ghc-pandoc-prof -l pl.UTF-8 | |
349 | Biblioteka profilująca %{name} dla GHC. Powinna być zainstalowana | |
350 | kiedy potrzebujemy systemu profilującego z GHC. | |
351 | ||
352 | %package -n ghc-pandoc-doc | |
353 | Summary: HTML documentation for ghc %{name} package | |
354 | Summary(pl.UTF-8): Dokumentacja w formacie HTML dla pakietu ghc %{name} | |
355 | Group: Documentation | |
356 | ||
357 | %description -n ghc-pandoc-doc | |
358 | HTML documentation for ghc %{name} package. | |
359 | ||
360 | %description -n ghc-pandoc-doc -l pl.UTF-8 | |
361 | Dokumentacja w formacie HTML dla pakietu ghc %{name}. | |
362 | ||
363 | %prep | |
364 | %setup -q | |
365 | %patch0 -p1 | |
11d83b2d | 366 | %patch1 -p1 |
611d066d JB |
367 | |
368 | %build | |
369 | runhaskell Setup.hs configure -v2 \ | |
859b965d JR |
370 | %ifarch %{ix86} |
371 | -O0 \ | |
372 | %endif | |
611d066d JB |
373 | %{?with_prof:--enable-library-profiling} \ |
374 | --prefix=%{_prefix} \ | |
375 | --libdir=%{_libdir} \ | |
376 | --docdir=%{_docdir}/ghc-pandoc-%{version} | |
377 | ||
dae49c07 | 378 | runhaskell Setup.hs build |
611d066d JB |
379 | runhaskell Setup.hs haddock |
380 | ||
381 | %install | |
382 | rm -rf $RPM_BUILD_ROOT | |
11d83b2d | 383 | install -d $RPM_BUILD_ROOT{%{_libdir}/%{ghcdir}/package.conf.d,%{_mandir}/man1} |
611d066d JB |
384 | |
385 | runhaskell Setup.hs copy --destdir=$RPM_BUILD_ROOT | |
386 | ||
387 | # work around automatic haddock docs installation | |
388 | %{__rm} -rf ghc-pandoc-%{version}-doc | |
389 | cp -a $RPM_BUILD_ROOT%{_docdir}/ghc-pandoc-%{version}/html ghc-pandoc-%{version}-doc | |
390 | %{__rm} -r $RPM_BUILD_ROOT%{_docdir}/ghc-pandoc-%{version} | |
391 | ||
392 | runhaskell Setup.hs register \ | |
393 | --gen-pkg-config=$RPM_BUILD_ROOT%{_libdir}/%{ghcdir}/package.conf.d/%{name}.conf | |
394 | ||
11d83b2d JR |
395 | |
396 | cp -p man/pandoc.1 $RPM_BUILD_ROOT%{_mandir}/man1 | |
611d066d JB |
397 | |
398 | %clean | |
399 | rm -rf $RPM_BUILD_ROOT | |
400 | ||
401 | %post -n ghc-pandoc | |
402 | %ghc_pkg_recache | |
403 | ||
404 | %postun -n ghc-pandoc | |
405 | %ghc_pkg_recache | |
406 | ||
407 | %files | |
408 | %defattr(644,root,root,755) | |
11d83b2d | 409 | %doc AUTHORS.md BUGS changelog.md CONTRIBUTING.md COPYING.md COPYRIGHT README.md |
611d066d JB |
410 | %attr(755,root,root) %{_bindir}/pandoc |
411 | %{_datadir}/%{name}-%{version} | |
412 | %{_mandir}/man1/pandoc.1* | |
611d066d JB |
413 | |
414 | %files -n ghc-pandoc | |
415 | %defattr(644,root,root,755) | |
416 | %{_libdir}/%{ghcdir}/package.conf.d/%{name}.conf | |
417 | %dir %{_libdir}/%{ghcdir}/%{name}-%{version} | |
11d83b2d JR |
418 | %{_libdir}/%{ghcdir}/%{name}-%{version}/libHSpandoc-%{version}-*.so |
419 | %{_libdir}/%{ghcdir}/%{name}-%{version}/libHSpandoc-%{version}-*.a | |
420 | %exclude %{_libdir}/%{ghcdir}/%{name}-%{version}/libHSpandoc-%{version}*_p.a | |
421 | %{_libdir}/%{ghcdir}/%{name}-%{version}/*.hi | |
422 | %{_libdir}/%{ghcdir}/%{name}-%{version}/*.dyn_hi | |
611d066d | 423 | %dir %{_libdir}/%{ghcdir}/%{name}-%{version}/Text |
11d83b2d JR |
424 | %{_libdir}/%{ghcdir}/%{name}-%{version}/Text/*.hi |
425 | %{_libdir}/%{ghcdir}/%{name}-%{version}/Text/*.dyn_hi | |
611d066d JB |
426 | %dir %{_libdir}/%{ghcdir}/%{name}-%{version}/Text/Pandoc |
427 | %{_libdir}/%{ghcdir}/%{name}-%{version}/Text/Pandoc/*.hi | |
11d83b2d JR |
428 | %{_libdir}/%{ghcdir}/%{name}-%{version}/Text/Pandoc/*.dyn_hi |
429 | %dir %{_libdir}/%{ghcdir}/%{name}-%{version}/Text/Pandoc/App | |
430 | %{_libdir}/%{ghcdir}/%{name}-%{version}/Text/Pandoc/App/*.hi | |
431 | %{_libdir}/%{ghcdir}/%{name}-%{version}/Text/Pandoc/App/*.dyn_hi | |
432 | %dir %{_libdir}/%{ghcdir}/%{name}-%{version}/Text/Pandoc/Class | |
433 | %{_libdir}/%{ghcdir}/%{name}-%{version}/Text/Pandoc/Class/*.hi | |
434 | %{_libdir}/%{ghcdir}/%{name}-%{version}/Text/Pandoc/Class/*.dyn_hi | |
435 | %dir %{_libdir}/%{ghcdir}/%{name}-%{version}/Text/Pandoc/Filter | |
436 | %{_libdir}/%{ghcdir}/%{name}-%{version}/Text/Pandoc/Filter/*.hi | |
437 | %{_libdir}/%{ghcdir}/%{name}-%{version}/Text/Pandoc/Filter/*.dyn_hi | |
438 | %dir %{_libdir}/%{ghcdir}/%{name}-%{version}/Text/Pandoc/Lua | |
439 | %{_libdir}/%{ghcdir}/%{name}-%{version}/Text/Pandoc/Lua/*.hi | |
440 | %{_libdir}/%{ghcdir}/%{name}-%{version}/Text/Pandoc/Lua/*.dyn_hi | |
441 | %dir %{_libdir}/%{ghcdir}/%{name}-%{version}/Text/Pandoc/Lua/Marshaling | |
442 | %{_libdir}/%{ghcdir}/%{name}-%{version}/Text/Pandoc/Lua/Marshaling/*.hi | |
443 | %{_libdir}/%{ghcdir}/%{name}-%{version}/Text/Pandoc/Lua/Marshaling/*.dyn_hi | |
444 | %dir %{_libdir}/%{ghcdir}/%{name}-%{version}/Text/Pandoc/Lua/Module | |
445 | %{_libdir}/%{ghcdir}/%{name}-%{version}/Text/Pandoc/Lua/Module/*.hi | |
446 | %{_libdir}/%{ghcdir}/%{name}-%{version}/Text/Pandoc/Lua/Module/*.dyn_hi | |
611d066d JB |
447 | %dir %{_libdir}/%{ghcdir}/%{name}-%{version}/Text/Pandoc/Readers |
448 | %{_libdir}/%{ghcdir}/%{name}-%{version}/Text/Pandoc/Readers/*.hi | |
11d83b2d JR |
449 | %{_libdir}/%{ghcdir}/%{name}-%{version}/Text/Pandoc/Readers/*.dyn_hi |
450 | %dir %{_libdir}/%{ghcdir}/%{name}-%{version}/Text/Pandoc/Readers/Docx | |
451 | %{_libdir}/%{ghcdir}/%{name}-%{version}/Text/Pandoc/Readers/Docx/*.hi | |
452 | %{_libdir}/%{ghcdir}/%{name}-%{version}/Text/Pandoc/Readers/Docx/*.dyn_hi | |
453 | %dir %{_libdir}/%{ghcdir}/%{name}-%{version}/Text/Pandoc/Readers/Docx/Parse | |
454 | %{_libdir}/%{ghcdir}/%{name}-%{version}/Text/Pandoc/Readers/Docx/Parse/*.hi | |
455 | %{_libdir}/%{ghcdir}/%{name}-%{version}/Text/Pandoc/Readers/Docx/Parse/*.dyn_hi | |
456 | %dir %{_libdir}/%{ghcdir}/%{name}-%{version}/Text/Pandoc/Readers/LaTeX | |
457 | %{_libdir}/%{ghcdir}/%{name}-%{version}/Text/Pandoc/Readers/LaTeX/*.hi | |
458 | %{_libdir}/%{ghcdir}/%{name}-%{version}/Text/Pandoc/Readers/LaTeX/*.dyn_hi | |
459 | %dir %{_libdir}/%{ghcdir}/%{name}-%{version}/Text/Pandoc/Readers/Odt | |
460 | %{_libdir}/%{ghcdir}/%{name}-%{version}/Text/Pandoc/Readers/Odt/*.hi | |
461 | %{_libdir}/%{ghcdir}/%{name}-%{version}/Text/Pandoc/Readers/Odt/*.dyn_hi | |
462 | %dir %{_libdir}/%{ghcdir}/%{name}-%{version}/Text/Pandoc/Readers/Odt/Arrows | |
463 | %{_libdir}/%{ghcdir}/%{name}-%{version}/Text/Pandoc/Readers/Odt/Arrows/*.hi | |
464 | %{_libdir}/%{ghcdir}/%{name}-%{version}/Text/Pandoc/Readers/Odt/Arrows/*.dyn_hi | |
465 | %dir %{_libdir}/%{ghcdir}/%{name}-%{version}/Text/Pandoc/Readers/Odt/Generic | |
466 | %{_libdir}/%{ghcdir}/%{name}-%{version}/Text/Pandoc/Readers/Odt/Generic/*.hi | |
467 | %{_libdir}/%{ghcdir}/%{name}-%{version}/Text/Pandoc/Readers/Odt/Generic/*.dyn_hi | |
468 | %dir %{_libdir}/%{ghcdir}/%{name}-%{version}/Text/Pandoc/Readers/Org | |
469 | %{_libdir}/%{ghcdir}/%{name}-%{version}/Text/Pandoc/Readers/Org/*.hi | |
470 | %{_libdir}/%{ghcdir}/%{name}-%{version}/Text/Pandoc/Readers/Org/*.dyn_hi | |
611d066d JB |
471 | %dir %{_libdir}/%{ghcdir}/%{name}-%{version}/Text/Pandoc/Writers |
472 | %{_libdir}/%{ghcdir}/%{name}-%{version}/Text/Pandoc/Writers/*.hi | |
11d83b2d JR |
473 | %{_libdir}/%{ghcdir}/%{name}-%{version}/Text/Pandoc/Writers/*.dyn_hi |
474 | %dir %{_libdir}/%{ghcdir}/%{name}-%{version}/Text/Pandoc/Writers/Docx | |
475 | %{_libdir}/%{ghcdir}/%{name}-%{version}/Text/Pandoc/Writers/Docx/*.hi | |
476 | %{_libdir}/%{ghcdir}/%{name}-%{version}/Text/Pandoc/Writers/Docx/*.dyn_hi | |
477 | %dir %{_libdir}/%{ghcdir}/%{name}-%{version}/Text/Pandoc/Writers/Powerpoint | |
478 | %{_libdir}/%{ghcdir}/%{name}-%{version}/Text/Pandoc/Writers/Powerpoint/*.hi | |
479 | %{_libdir}/%{ghcdir}/%{name}-%{version}/Text/Pandoc/Writers/Powerpoint/*.dyn_hi | |
611d066d JB |
480 | |
481 | %if %{with prof} | |
482 | %files -n ghc-pandoc-prof | |
483 | %defattr(644,root,root,755) | |
11d83b2d JR |
484 | %{_libdir}/%{ghcdir}/%{name}-%{version}/libHSpandoc-%{version}*_p.a |
485 | %{_libdir}/%{ghcdir}/%{name}-%{version}/*.p_hi | |
486 | %{_libdir}/%{ghcdir}/%{name}-%{version}/Text/*.p_hi | |
611d066d | 487 | %{_libdir}/%{ghcdir}/%{name}-%{version}/Text/Pandoc/*.p_hi |
11d83b2d JR |
488 | %{_libdir}/%{ghcdir}/%{name}-%{version}/Text/Pandoc/App/*.p_hi |
489 | %{_libdir}/%{ghcdir}/%{name}-%{version}/Text/Pandoc/Class/*.p_hi | |
490 | %{_libdir}/%{ghcdir}/%{name}-%{version}/Text/Pandoc/Filter/*.p_hi | |
491 | %{_libdir}/%{ghcdir}/%{name}-%{version}/Text/Pandoc/Lua/*.p_hi | |
492 | %{_libdir}/%{ghcdir}/%{name}-%{version}/Text/Pandoc/Lua/Marshaling/*.p_hi | |
493 | %{_libdir}/%{ghcdir}/%{name}-%{version}/Text/Pandoc/Lua/Module/*.p_hi | |
611d066d | 494 | %{_libdir}/%{ghcdir}/%{name}-%{version}/Text/Pandoc/Readers/*.p_hi |
11d83b2d JR |
495 | %{_libdir}/%{ghcdir}/%{name}-%{version}/Text/Pandoc/Readers/Docx/*.p_hi |
496 | %{_libdir}/%{ghcdir}/%{name}-%{version}/Text/Pandoc/Readers/LaTeX/*.p_hi | |
497 | %{_libdir}/%{ghcdir}/%{name}-%{version}/Text/Pandoc/Readers/Odt/*.p_hi | |
498 | %{_libdir}/%{ghcdir}/%{name}-%{version}/Text/Pandoc/Readers/Odt/Arrows/*.p_hi | |
499 | %{_libdir}/%{ghcdir}/%{name}-%{version}/Text/Pandoc/Readers/Odt/Generic/*.p_hi | |
500 | %{_libdir}/%{ghcdir}/%{name}-%{version}/Text/Pandoc/Readers/Org/*.p_hi | |
501 | %{_libdir}/%{ghcdir}/%{name}-%{version}/Text/Pandoc/Writers/Docx/*.p_hi | |
502 | %{_libdir}/%{ghcdir}/%{name}-%{version}/Text/Pandoc/Readers/Docx/Parse/*.p_hi | |
611d066d | 503 | %{_libdir}/%{ghcdir}/%{name}-%{version}/Text/Pandoc/Writers/*.p_hi |
11d83b2d | 504 | %{_libdir}/%{ghcdir}/%{name}-%{version}/Text/Pandoc/Writers/Powerpoint/*.p_hi |
611d066d JB |
505 | %endif |
506 | ||
507 | %files -n ghc-pandoc-doc | |
508 | %defattr(644,root,root,755) | |
509 | %doc ghc-pandoc-%{version}-doc/* |