]>
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 |
56dd0438 | 20 | Release: 3 |
611d066d JB |
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 | ||
fc5c2969 JP |
156 | %define _debugsource_packages 0 |
157 | ||
611d066d JB |
158 | %description |
159 | Pandoc is a Haskell library for converting from one markup format to | |
160 | another, and a command-line tool that uses this library. It can read | |
161 | markdown and (subsets of) Textile, reStructuredText, HTML, LaTeX, | |
162 | MediaWiki markup, Haddock markup, OPML, and DocBook; and it can write | |
163 | plain text, markdown, reStructuredText, XHTML, HTML 5, LaTeX | |
164 | (including beamer slide shows), ConTeXt, RTF, OPML, DocBook, | |
165 | OpenDocument, ODT, Word docx, GNU Texinfo, MediaWiki markup, EPUB (v2 | |
166 | or v3), FictionBook2, Textile, groff man pages, Emacs Org-Mode, | |
167 | AsciiDoc, and Slidy, Slideous, DZSlides, reveal.js or S5 HTML slide | |
168 | shows. It can also produce PDF output on systems where LaTeX is | |
169 | installed. | |
170 | ||
171 | %description -l pl.UTF-8 | |
172 | Pandoc to biblioteka Haskella do konwersji tekstów z jednego formatu | |
173 | znaczników do innych oraz narzędzie linii poleceń wykorzystujące tę | |
174 | bibliotekę. Potrafi czytać format markdown oraz (podzbiory) formatów | |
175 | Textile, reStructuredText, HTML, LaTeX, znaczniki MediaWiki, znaczniki | |
176 | Haddock, OPML oraz DocBook. Potrafi zapisywać zwykły tekst, markdown, | |
177 | reStructuredText, XHTML, HTML 5, LaTeX (wraz z pokazami slajdów dla | |
178 | pakietu beamer), ConTeXt, RTF, OPML, DocBook, OpenDocument, ODT, Word | |
179 | docx, GNU Texinfo, znaczniki MediaWiki, EPUB (w wersji 2 lub 3), | |
180 | FictionBook2, Textile, strony man w formacie groff, Emacs Org-Mode, | |
181 | AsciiDoc oraz pokazy slajdów HTML Slidy, Slideous, DZSlides, reveal.js | |
182 | lub S5. Potrafi także tworzyć wyjście PDF na systemach z | |
183 | zainstalowanym LaTeXem. | |
184 | ||
185 | %package -n ghc-pandoc | |
186 | Summary: Conversion between markup formats | |
187 | Summary(pl.UTF-8): Konwersja między różnymi formatami znaczników | |
188 | Group: Development/Languages | |
189 | Requires(post,postun): /usr/bin/ghc-pkg | |
190 | %requires_eq ghc | |
11d83b2d | 191 | Requires: ghc-Glob >= 0.7 |
611d066d | 192 | Requires: ghc-HTTP >= 4000.0.5 |
11d83b2d JR |
193 | Requires: ghc-HsYAML >= 0.2 |
194 | Requires: ghc-JuicyPixels >= 3.1.6.1 | |
195 | Requires: ghc-SHA >= 1.6 | |
196 | Requires: ghc-aeson >= 0.7 | |
197 | Requires: ghc-aeson-pretty >= 0.8.5 | |
198 | Requires: ghc-attoparsec >= 0.12 | |
611d066d | 199 | Requires: ghc-base64-bytestring >= 0.1 |
11d83b2d JR |
200 | Requires: ghc-base-compat >= 0.9, |
201 | Requires: ghc-base-noprelude >= 4.9 | |
202 | Requires: ghc-binary >= 0.5 | |
203 | Requires: ghc-blaze-html >= 0.9 | |
204 | Requires: ghc-blaze-markup >= 0.8 | |
611d066d | 205 | Requires: ghc-bytestring >= 0.9 |
11d83b2d JR |
206 | Requires: ghc-case-insensitive >= 1.2 |
207 | Requires: ghc-cmark-gfm >= 0.2 | |
208 | Requires: ghc-containers >= 0.4.2.1 | |
611d066d | 209 | Requires: ghc-data-default >= 0.4 |
11d83b2d JR |
210 | Requires: ghc-deepseq >= 1.3 |
211 | Requires: ghc-directory >= 1.2.3 | |
212 | Requires: ghc-doclayout >= 0.3 | |
213 | Requires: ghc-doctemplates >= 0.8 | |
214 | Requires: ghc-emojis >= 0.1 | |
215 | Requires: ghc-exceptions >= 0.8 | |
216 | Requires: ghc-file-embed >= 0.0 | |
611d066d | 217 | Requires: ghc-filepath >= 1.1 |
11d83b2d JR |
218 | Requires: ghc-haddock-library >= 1.8 |
219 | Requires: ghc-hslua >= 1.0.1 | |
220 | Requires: ghc-hslua-module-system >= 0.2 | |
221 | Requires: ghc-hslua-module-text >= 0.2 | |
222 | Requires: ghc-http-client >= 0.4.30 | |
223 | Requires: ghc-http-client-tls >= 0.2.4 | |
224 | Requires: ghc-http-types >= 0.8 | |
225 | Requires: ghc-ipynb >= 0.1 | |
226 | Requires: ghc-jira-wiki-markup >= 1.1.3 | |
227 | Requires: ghc-mtl >= 2.2 | |
228 | Requires: ghc-network >= 2.6, | |
229 | Requires: ghc-network-uri >= 2.6 | |
230 | Requires: ghc-pandoc-types >= 1.20 | |
611d066d | 231 | Requires: ghc-parsec >= 3.1 |
11d83b2d | 232 | Requires: ghc-process >= 1.2.3 |
611d066d | 233 | Requires: ghc-random >= 1 |
11d83b2d JR |
234 | Requires: ghc-safe >= 0.3 |
235 | Requires: ghc-scientific >= 0.3 | |
236 | Requires: ghc-skylighting >= 0.8.3.2 | |
237 | Requires: ghc-skylighting-core >= 0.8.3.2 | |
238 | Requires: ghc-split >= 0.2 | |
611d066d | 239 | Requires: ghc-syb >= 0.1 |
11d83b2d | 240 | Requires: ghc-tagsoup >= 0.14.6 |
611d066d | 241 | Requires: ghc-temporary >= 1.1 |
11d83b2d JR |
242 | Requires: ghc-texmath >= 0.12.0.1 |
243 | Requires: ghc-text >= 1.1.1.0 | |
244 | Requires: ghc-text-conversions >= 0.3 | |
245 | Requires: ghc-time >= 1.5 | |
246 | Requires: ghc-unicode-transforms >= 0.3 | |
611d066d | 247 | Requires: ghc-unordered-containers >= 0.2 |
611d066d | 248 | Requires: ghc-vector >= 0.10 |
611d066d | 249 | Requires: ghc-xml >= 1.3.12 |
11d83b2d | 250 | Requires: ghc-zip-archive >= 0.2.3.4 |
611d066d | 251 | Requires: ghc-zlib >= 0.5 |
611d066d JB |
252 | |
253 | %description -n ghc-pandoc | |
254 | Pandoc is a Haskell library for converting from one markup format to | |
255 | another, and a command-line tool that uses this library. It can read | |
256 | markdown and (subsets of) Textile, reStructuredText, HTML, LaTeX, | |
257 | MediaWiki markup, Haddock markup, OPML, and DocBook; and it can write | |
258 | plain text, markdown, reStructuredText, XHTML, HTML 5, LaTeX | |
259 | (including beamer slide shows), ConTeXt, RTF, OPML, DocBook, | |
260 | OpenDocument, ODT, Word docx, GNU Texinfo, MediaWiki markup, EPUB (v2 | |
261 | or v3), FictionBook2, Textile, groff man pages, Emacs Org-Mode, | |
262 | AsciiDoc, and Slidy, Slideous, DZSlides, reveal.js or S5 HTML slide | |
263 | shows. It can also produce PDF output on systems where LaTeX is | |
264 | installed. | |
265 | ||
266 | %description -n ghc-pandoc -l pl.UTF-8 | |
267 | Pandoc to biblioteka Haskella do konwersji tekstów z jednego formatu | |
268 | znaczników do innych oraz narzędzie linii poleceń wykorzystujące tę | |
269 | bibliotekę. Potrafi czytać format markdown oraz (podzbiory) formatów | |
270 | Textile, reStructuredText, HTML, LaTeX, znaczniki MediaWiki, znaczniki | |
271 | Haddock, OPML oraz DocBook. Potrafi zapisywać zwykły tekst, markdown, | |
272 | reStructuredText, XHTML, HTML 5, LaTeX (wraz z pokazami slajdów dla | |
273 | pakietu beamer), ConTeXt, RTF, OPML, DocBook, OpenDocument, ODT, Word | |
274 | docx, GNU Texinfo, znaczniki MediaWiki, EPUB (w wersji 2 lub 3), | |
275 | FictionBook2, Textile, strony man w formacie groff, Emacs Org-Mode, | |
276 | AsciiDoc oraz pokazy slajdów HTML Slidy, Slideous, DZSlides, reveal.js | |
277 | lub S5. Potrafi także tworzyć wyjście PDF na systemach z | |
278 | zainstalowanym LaTeXem. | |
279 | ||
280 | %package -n ghc-pandoc-prof | |
281 | Summary: Profiling %{name} library for GHC | |
282 | Summary(pl.UTF-8): Biblioteka profilująca %{name} dla GHC | |
283 | Group: Development/Libraries | |
284 | Requires: ghc-pandoc = %{version}-%{release} | |
11d83b2d | 285 | Requires: ghc-Glob-prof >= 0.7 |
611d066d | 286 | Requires: ghc-HTTP-prof >= 4000.0.5 |
11d83b2d JR |
287 | Requires: ghc-HsYAML-prof >= 0.2 |
288 | Requires: ghc-JuicyPixels-prof >= 3.1.6.1 | |
289 | Requires: ghc-SHA-prof >= 1.6 | |
290 | Requires: ghc-aeson-prof >= 0.7 | |
291 | Requires: ghc-aeson-pretty-prof >= 0.8.5 | |
292 | Requires: ghc-attoparsec-prof >= 0.12 | |
611d066d | 293 | Requires: ghc-base64-bytestring-prof >= 0.1 |
11d83b2d JR |
294 | Requires: ghc-base-compat-prof >= 0.9, |
295 | Requires: ghc-binary-prof >= 0.5 | |
296 | Requires: ghc-blaze-html-prof >= 0.9 | |
297 | Requires: ghc-blaze-markup-prof >= 0.8 | |
611d066d | 298 | Requires: ghc-bytestring-prof >= 0.9 |
11d83b2d JR |
299 | Requires: ghc-case-insensitive-prof >= 1.2 |
300 | Requires: ghc-cmark-gfm-prof >= 0.2 | |
301 | Requires: ghc-containers-prof >= 0.4.2.1 | |
611d066d | 302 | Requires: ghc-data-default-prof >= 0.4 |
11d83b2d JR |
303 | Requires: ghc-deepseq-prof >= 1.3 |
304 | Requires: ghc-directory-prof >= 1.2.3 | |
305 | Requires: ghc-doclayout-prof >= 0.3 | |
306 | Requires: ghc-doctemplates-prof >= 0.8 | |
307 | Requires: ghc-emojis-prof >= 0.1 | |
308 | Requires: ghc-exceptions-prof >= 0.8 | |
309 | Requires: ghc-file-embed-prof >= 0.0 | |
611d066d | 310 | Requires: ghc-filepath-prof >= 1.1 |
11d83b2d JR |
311 | Requires: ghc-haddock-library-prof >= 1.8 |
312 | Requires: ghc-hslua-prof >= 1.0.1 | |
313 | Requires: ghc-hslua-module-system-prof >= 0.2 | |
314 | Requires: ghc-hslua-module-text-prof >= 0.2 | |
315 | Requires: ghc-http-client-prof >= 0.4.30 | |
316 | Requires: ghc-http-client-tls-prof >= 0.2.4 | |
317 | Requires: ghc-http-types-prof >= 0.8 | |
318 | Requires: ghc-ipynb-prof >= 0.1 | |
319 | Requires: ghc-jira-wiki-markup-prof >= 1.1.3 | |
320 | Requires: ghc-mtl-prof >= 2.2 | |
321 | Requires: ghc-network-prof >= 2.6, | |
322 | Requires: ghc-network-uri-prof >= 2.6 | |
323 | Requires: ghc-pandoc-types-prof >= 1.20 | |
611d066d | 324 | Requires: ghc-parsec-prof >= 3.1 |
11d83b2d | 325 | Requires: ghc-process-prof >= 1.2.3 |
611d066d | 326 | Requires: ghc-random-prof >= 1 |
11d83b2d JR |
327 | Requires: ghc-safe-prof >= 0.3 |
328 | Requires: ghc-scientific-prof >= 0.3 | |
329 | Requires: ghc-skylighting-prof >= 0.8.3.2 | |
330 | Requires: ghc-skylighting-core-prof >= 0.8.3.2 | |
331 | Requires: ghc-split-prof >= 0.2 | |
611d066d | 332 | Requires: ghc-syb-prof >= 0.1 |
11d83b2d | 333 | Requires: ghc-tagsoup-prof >= 0.14.6 |
611d066d | 334 | Requires: ghc-temporary-prof >= 1.1 |
11d83b2d JR |
335 | Requires: ghc-texmath-prof >= 0.12.0.1 |
336 | Requires: ghc-text-prof >= 1.1.1.0 | |
337 | Requires: ghc-text-conversions-prof >= 0.3 | |
338 | Requires: ghc-time-prof >= 1.5 | |
339 | Requires: ghc-unicode-transforms-prof >= 0.3 | |
611d066d | 340 | Requires: ghc-unordered-containers-prof >= 0.2 |
611d066d | 341 | Requires: ghc-vector-prof >= 0.10 |
611d066d | 342 | Requires: ghc-xml-prof >= 1.3.12 |
11d83b2d | 343 | Requires: ghc-zip-archive-prof >= 0.2.3.4 |
611d066d | 344 | Requires: ghc-zlib-prof >= 0.5 |
611d066d JB |
345 | |
346 | %description -n ghc-pandoc-prof | |
347 | Profiling %{name} library for GHC. Should be installed when GHC's | |
348 | profiling subsystem is needed. | |
349 | ||
350 | %description -n ghc-pandoc-prof -l pl.UTF-8 | |
351 | Biblioteka profilująca %{name} dla GHC. Powinna być zainstalowana | |
352 | kiedy potrzebujemy systemu profilującego z GHC. | |
353 | ||
354 | %package -n ghc-pandoc-doc | |
355 | Summary: HTML documentation for ghc %{name} package | |
356 | Summary(pl.UTF-8): Dokumentacja w formacie HTML dla pakietu ghc %{name} | |
357 | Group: Documentation | |
358 | ||
359 | %description -n ghc-pandoc-doc | |
360 | HTML documentation for ghc %{name} package. | |
361 | ||
362 | %description -n ghc-pandoc-doc -l pl.UTF-8 | |
363 | Dokumentacja w formacie HTML dla pakietu ghc %{name}. | |
364 | ||
365 | %prep | |
366 | %setup -q | |
367 | %patch0 -p1 | |
11d83b2d | 368 | %patch1 -p1 |
611d066d JB |
369 | |
370 | %build | |
371 | runhaskell Setup.hs configure -v2 \ | |
859b965d JR |
372 | %ifarch %{ix86} |
373 | -O0 \ | |
374 | %endif | |
611d066d JB |
375 | %{?with_prof:--enable-library-profiling} \ |
376 | --prefix=%{_prefix} \ | |
377 | --libdir=%{_libdir} \ | |
378 | --docdir=%{_docdir}/ghc-pandoc-%{version} | |
379 | ||
dae49c07 | 380 | runhaskell Setup.hs build |
611d066d JB |
381 | runhaskell Setup.hs haddock |
382 | ||
383 | %install | |
384 | rm -rf $RPM_BUILD_ROOT | |
11d83b2d | 385 | install -d $RPM_BUILD_ROOT{%{_libdir}/%{ghcdir}/package.conf.d,%{_mandir}/man1} |
611d066d JB |
386 | |
387 | runhaskell Setup.hs copy --destdir=$RPM_BUILD_ROOT | |
388 | ||
389 | # work around automatic haddock docs installation | |
390 | %{__rm} -rf ghc-pandoc-%{version}-doc | |
391 | cp -a $RPM_BUILD_ROOT%{_docdir}/ghc-pandoc-%{version}/html ghc-pandoc-%{version}-doc | |
392 | %{__rm} -r $RPM_BUILD_ROOT%{_docdir}/ghc-pandoc-%{version} | |
393 | ||
394 | runhaskell Setup.hs register \ | |
395 | --gen-pkg-config=$RPM_BUILD_ROOT%{_libdir}/%{ghcdir}/package.conf.d/%{name}.conf | |
396 | ||
11d83b2d JR |
397 | |
398 | cp -p man/pandoc.1 $RPM_BUILD_ROOT%{_mandir}/man1 | |
611d066d JB |
399 | |
400 | %clean | |
401 | rm -rf $RPM_BUILD_ROOT | |
402 | ||
403 | %post -n ghc-pandoc | |
404 | %ghc_pkg_recache | |
405 | ||
406 | %postun -n ghc-pandoc | |
407 | %ghc_pkg_recache | |
408 | ||
409 | %files | |
410 | %defattr(644,root,root,755) | |
11d83b2d | 411 | %doc AUTHORS.md BUGS changelog.md CONTRIBUTING.md COPYING.md COPYRIGHT README.md |
611d066d JB |
412 | %attr(755,root,root) %{_bindir}/pandoc |
413 | %{_datadir}/%{name}-%{version} | |
414 | %{_mandir}/man1/pandoc.1* | |
611d066d JB |
415 | |
416 | %files -n ghc-pandoc | |
417 | %defattr(644,root,root,755) | |
418 | %{_libdir}/%{ghcdir}/package.conf.d/%{name}.conf | |
419 | %dir %{_libdir}/%{ghcdir}/%{name}-%{version} | |
11d83b2d JR |
420 | %{_libdir}/%{ghcdir}/%{name}-%{version}/libHSpandoc-%{version}-*.so |
421 | %{_libdir}/%{ghcdir}/%{name}-%{version}/libHSpandoc-%{version}-*.a | |
422 | %exclude %{_libdir}/%{ghcdir}/%{name}-%{version}/libHSpandoc-%{version}*_p.a | |
423 | %{_libdir}/%{ghcdir}/%{name}-%{version}/*.hi | |
424 | %{_libdir}/%{ghcdir}/%{name}-%{version}/*.dyn_hi | |
611d066d | 425 | %dir %{_libdir}/%{ghcdir}/%{name}-%{version}/Text |
11d83b2d JR |
426 | %{_libdir}/%{ghcdir}/%{name}-%{version}/Text/*.hi |
427 | %{_libdir}/%{ghcdir}/%{name}-%{version}/Text/*.dyn_hi | |
611d066d JB |
428 | %dir %{_libdir}/%{ghcdir}/%{name}-%{version}/Text/Pandoc |
429 | %{_libdir}/%{ghcdir}/%{name}-%{version}/Text/Pandoc/*.hi | |
11d83b2d JR |
430 | %{_libdir}/%{ghcdir}/%{name}-%{version}/Text/Pandoc/*.dyn_hi |
431 | %dir %{_libdir}/%{ghcdir}/%{name}-%{version}/Text/Pandoc/App | |
432 | %{_libdir}/%{ghcdir}/%{name}-%{version}/Text/Pandoc/App/*.hi | |
433 | %{_libdir}/%{ghcdir}/%{name}-%{version}/Text/Pandoc/App/*.dyn_hi | |
434 | %dir %{_libdir}/%{ghcdir}/%{name}-%{version}/Text/Pandoc/Class | |
435 | %{_libdir}/%{ghcdir}/%{name}-%{version}/Text/Pandoc/Class/*.hi | |
436 | %{_libdir}/%{ghcdir}/%{name}-%{version}/Text/Pandoc/Class/*.dyn_hi | |
437 | %dir %{_libdir}/%{ghcdir}/%{name}-%{version}/Text/Pandoc/Filter | |
438 | %{_libdir}/%{ghcdir}/%{name}-%{version}/Text/Pandoc/Filter/*.hi | |
439 | %{_libdir}/%{ghcdir}/%{name}-%{version}/Text/Pandoc/Filter/*.dyn_hi | |
440 | %dir %{_libdir}/%{ghcdir}/%{name}-%{version}/Text/Pandoc/Lua | |
441 | %{_libdir}/%{ghcdir}/%{name}-%{version}/Text/Pandoc/Lua/*.hi | |
442 | %{_libdir}/%{ghcdir}/%{name}-%{version}/Text/Pandoc/Lua/*.dyn_hi | |
443 | %dir %{_libdir}/%{ghcdir}/%{name}-%{version}/Text/Pandoc/Lua/Marshaling | |
444 | %{_libdir}/%{ghcdir}/%{name}-%{version}/Text/Pandoc/Lua/Marshaling/*.hi | |
445 | %{_libdir}/%{ghcdir}/%{name}-%{version}/Text/Pandoc/Lua/Marshaling/*.dyn_hi | |
446 | %dir %{_libdir}/%{ghcdir}/%{name}-%{version}/Text/Pandoc/Lua/Module | |
447 | %{_libdir}/%{ghcdir}/%{name}-%{version}/Text/Pandoc/Lua/Module/*.hi | |
448 | %{_libdir}/%{ghcdir}/%{name}-%{version}/Text/Pandoc/Lua/Module/*.dyn_hi | |
611d066d JB |
449 | %dir %{_libdir}/%{ghcdir}/%{name}-%{version}/Text/Pandoc/Readers |
450 | %{_libdir}/%{ghcdir}/%{name}-%{version}/Text/Pandoc/Readers/*.hi | |
11d83b2d JR |
451 | %{_libdir}/%{ghcdir}/%{name}-%{version}/Text/Pandoc/Readers/*.dyn_hi |
452 | %dir %{_libdir}/%{ghcdir}/%{name}-%{version}/Text/Pandoc/Readers/Docx | |
453 | %{_libdir}/%{ghcdir}/%{name}-%{version}/Text/Pandoc/Readers/Docx/*.hi | |
454 | %{_libdir}/%{ghcdir}/%{name}-%{version}/Text/Pandoc/Readers/Docx/*.dyn_hi | |
455 | %dir %{_libdir}/%{ghcdir}/%{name}-%{version}/Text/Pandoc/Readers/Docx/Parse | |
456 | %{_libdir}/%{ghcdir}/%{name}-%{version}/Text/Pandoc/Readers/Docx/Parse/*.hi | |
457 | %{_libdir}/%{ghcdir}/%{name}-%{version}/Text/Pandoc/Readers/Docx/Parse/*.dyn_hi | |
458 | %dir %{_libdir}/%{ghcdir}/%{name}-%{version}/Text/Pandoc/Readers/LaTeX | |
459 | %{_libdir}/%{ghcdir}/%{name}-%{version}/Text/Pandoc/Readers/LaTeX/*.hi | |
460 | %{_libdir}/%{ghcdir}/%{name}-%{version}/Text/Pandoc/Readers/LaTeX/*.dyn_hi | |
461 | %dir %{_libdir}/%{ghcdir}/%{name}-%{version}/Text/Pandoc/Readers/Odt | |
462 | %{_libdir}/%{ghcdir}/%{name}-%{version}/Text/Pandoc/Readers/Odt/*.hi | |
463 | %{_libdir}/%{ghcdir}/%{name}-%{version}/Text/Pandoc/Readers/Odt/*.dyn_hi | |
464 | %dir %{_libdir}/%{ghcdir}/%{name}-%{version}/Text/Pandoc/Readers/Odt/Arrows | |
465 | %{_libdir}/%{ghcdir}/%{name}-%{version}/Text/Pandoc/Readers/Odt/Arrows/*.hi | |
466 | %{_libdir}/%{ghcdir}/%{name}-%{version}/Text/Pandoc/Readers/Odt/Arrows/*.dyn_hi | |
467 | %dir %{_libdir}/%{ghcdir}/%{name}-%{version}/Text/Pandoc/Readers/Odt/Generic | |
468 | %{_libdir}/%{ghcdir}/%{name}-%{version}/Text/Pandoc/Readers/Odt/Generic/*.hi | |
469 | %{_libdir}/%{ghcdir}/%{name}-%{version}/Text/Pandoc/Readers/Odt/Generic/*.dyn_hi | |
470 | %dir %{_libdir}/%{ghcdir}/%{name}-%{version}/Text/Pandoc/Readers/Org | |
471 | %{_libdir}/%{ghcdir}/%{name}-%{version}/Text/Pandoc/Readers/Org/*.hi | |
472 | %{_libdir}/%{ghcdir}/%{name}-%{version}/Text/Pandoc/Readers/Org/*.dyn_hi | |
611d066d JB |
473 | %dir %{_libdir}/%{ghcdir}/%{name}-%{version}/Text/Pandoc/Writers |
474 | %{_libdir}/%{ghcdir}/%{name}-%{version}/Text/Pandoc/Writers/*.hi | |
11d83b2d JR |
475 | %{_libdir}/%{ghcdir}/%{name}-%{version}/Text/Pandoc/Writers/*.dyn_hi |
476 | %dir %{_libdir}/%{ghcdir}/%{name}-%{version}/Text/Pandoc/Writers/Docx | |
477 | %{_libdir}/%{ghcdir}/%{name}-%{version}/Text/Pandoc/Writers/Docx/*.hi | |
478 | %{_libdir}/%{ghcdir}/%{name}-%{version}/Text/Pandoc/Writers/Docx/*.dyn_hi | |
479 | %dir %{_libdir}/%{ghcdir}/%{name}-%{version}/Text/Pandoc/Writers/Powerpoint | |
480 | %{_libdir}/%{ghcdir}/%{name}-%{version}/Text/Pandoc/Writers/Powerpoint/*.hi | |
481 | %{_libdir}/%{ghcdir}/%{name}-%{version}/Text/Pandoc/Writers/Powerpoint/*.dyn_hi | |
611d066d JB |
482 | |
483 | %if %{with prof} | |
484 | %files -n ghc-pandoc-prof | |
485 | %defattr(644,root,root,755) | |
11d83b2d JR |
486 | %{_libdir}/%{ghcdir}/%{name}-%{version}/libHSpandoc-%{version}*_p.a |
487 | %{_libdir}/%{ghcdir}/%{name}-%{version}/*.p_hi | |
488 | %{_libdir}/%{ghcdir}/%{name}-%{version}/Text/*.p_hi | |
611d066d | 489 | %{_libdir}/%{ghcdir}/%{name}-%{version}/Text/Pandoc/*.p_hi |
11d83b2d JR |
490 | %{_libdir}/%{ghcdir}/%{name}-%{version}/Text/Pandoc/App/*.p_hi |
491 | %{_libdir}/%{ghcdir}/%{name}-%{version}/Text/Pandoc/Class/*.p_hi | |
492 | %{_libdir}/%{ghcdir}/%{name}-%{version}/Text/Pandoc/Filter/*.p_hi | |
493 | %{_libdir}/%{ghcdir}/%{name}-%{version}/Text/Pandoc/Lua/*.p_hi | |
494 | %{_libdir}/%{ghcdir}/%{name}-%{version}/Text/Pandoc/Lua/Marshaling/*.p_hi | |
495 | %{_libdir}/%{ghcdir}/%{name}-%{version}/Text/Pandoc/Lua/Module/*.p_hi | |
611d066d | 496 | %{_libdir}/%{ghcdir}/%{name}-%{version}/Text/Pandoc/Readers/*.p_hi |
11d83b2d JR |
497 | %{_libdir}/%{ghcdir}/%{name}-%{version}/Text/Pandoc/Readers/Docx/*.p_hi |
498 | %{_libdir}/%{ghcdir}/%{name}-%{version}/Text/Pandoc/Readers/LaTeX/*.p_hi | |
499 | %{_libdir}/%{ghcdir}/%{name}-%{version}/Text/Pandoc/Readers/Odt/*.p_hi | |
500 | %{_libdir}/%{ghcdir}/%{name}-%{version}/Text/Pandoc/Readers/Odt/Arrows/*.p_hi | |
501 | %{_libdir}/%{ghcdir}/%{name}-%{version}/Text/Pandoc/Readers/Odt/Generic/*.p_hi | |
502 | %{_libdir}/%{ghcdir}/%{name}-%{version}/Text/Pandoc/Readers/Org/*.p_hi | |
503 | %{_libdir}/%{ghcdir}/%{name}-%{version}/Text/Pandoc/Writers/Docx/*.p_hi | |
504 | %{_libdir}/%{ghcdir}/%{name}-%{version}/Text/Pandoc/Readers/Docx/Parse/*.p_hi | |
611d066d | 505 | %{_libdir}/%{ghcdir}/%{name}-%{version}/Text/Pandoc/Writers/*.p_hi |
11d83b2d | 506 | %{_libdir}/%{ghcdir}/%{name}-%{version}/Text/Pandoc/Writers/Powerpoint/*.p_hi |
611d066d JB |
507 | %endif |
508 | ||
509 | %files -n ghc-pandoc-doc | |
510 | %defattr(644,root,root,755) | |
511 | %doc ghc-pandoc-%{version}-doc/* |