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