1 | %define pkg_name pandoc-crossref |
---|
2 | %define pkg_version 0.3.4.0 |
---|
3 | %define pkg_release 1%{?_dist_release} |
---|
4 | |
---|
5 | %define pandoc_version 2.4 |
---|
6 | |
---|
7 | Summary: Library and executable for using citeproc with pandoc |
---|
8 | Name: %{pkg_name} |
---|
9 | Version: %{pkg_version} |
---|
10 | Release: %{pkg_release} |
---|
11 | |
---|
12 | License: BSD3 |
---|
13 | Group: Applications/Text |
---|
14 | URL: http://hackage.haskell.org |
---|
15 | |
---|
16 | Source0: packages |
---|
17 | |
---|
18 | Source11: ansi-wl-pprint-0.6.8.2.tar.gz |
---|
19 | Source12: ansi-wl-pprint.cabal |
---|
20 | Source13: base-unicode-symbols-0.2.3.tar.gz |
---|
21 | Source14: base-unicode-symbols.cabal |
---|
22 | Source15: data-accessor-0.2.2.8.tar.gz |
---|
23 | Source16: data-accessor.cabal |
---|
24 | Source17: gitrev-1.3.1.tar.gz |
---|
25 | Source18: gitrev.cabal |
---|
26 | Source19: open-browser-0.2.1.0.tar.gz |
---|
27 | Source20: open-browser.cabal |
---|
28 | Source21: utility-ht-0.0.14.tar.gz |
---|
29 | Source22: utility-ht.cabal |
---|
30 | Source23: optparse-applicative-0.14.3.0.tar.gz |
---|
31 | Source24: optparse-applicative.cabal |
---|
32 | Source25: roman-numerals-0.5.1.5.tar.gz |
---|
33 | Source26: roman-numerals.cabal |
---|
34 | Source27: data-accessor-transformers-0.2.1.7.tar.gz |
---|
35 | Source28: data-accessor-transformers.cabal |
---|
36 | Source29: data-accessor-template-0.2.1.16.tar.gz |
---|
37 | Source30: data-accessor-template.cabal |
---|
38 | Source31: pandoc-crossref-0.3.4.0.tar.gz |
---|
39 | Source32: pandoc-crossref.cabal |
---|
40 | |
---|
41 | BuildRoot: %{_tmppath}/%{pkg_name}-%{version}-root |
---|
42 | |
---|
43 | BuildRequires: libffi-devel gmp-devel zlib-devel |
---|
44 | BuildRequires: ghc haskell-platform |
---|
45 | BuildRequires: pandoc-libs = %{pandoc_version} |
---|
46 | |
---|
47 | BuildRequires: docbook-utils docbook-utils-pdf docbook-style-xsl |
---|
48 | |
---|
49 | Requires: pandoc = %{pandoc_version} |
---|
50 | |
---|
51 | |
---|
52 | Vendor: Project Vine |
---|
53 | Distribution: Vine Linux |
---|
54 | Packager: ara_t |
---|
55 | |
---|
56 | |
---|
57 | %description |
---|
58 | pandoc-crossref is a pandoc filter for numbering figures, equations, tables |
---|
59 | and cross-references to them. Input file (like demo.md) can be converted into |
---|
60 | html, latex, pdf, md or other formats. |
---|
61 | Optionally, you can use cleveref for latex/pdf output, |
---|
62 | e.g. cleveref pdf, cleveref latex, and listings package, |
---|
63 | e.g. listings pdf, listings latex. |
---|
64 | |
---|
65 | You can also enable per-chapter numbering (as with --chapters for latex output). |
---|
66 | You need to specify -M chapters for non-latex/pdf output however. |
---|
67 | Examples: html, markdown, latex, pdf. |
---|
68 | |
---|
69 | |
---|
70 | %prep |
---|
71 | %{__rm} -rf ${RPM_BUILD_ROOT} |
---|
72 | |
---|
73 | %build |
---|
74 | %ghc_pkg_init |
---|
75 | |
---|
76 | cd %{_builddir} |
---|
77 | for pkg in `sed '$d' %{SOURCE0}`; do |
---|
78 | %{__tar} xzf %{_sourcedir}/${pkg}.tar.gz |
---|
79 | pushd ${pkg} |
---|
80 | %ghc_fix_dependencies ${pkg} |
---|
81 | %{__cabal} configure |
---|
82 | %{__cabal} build |
---|
83 | %{__cabal} copy |
---|
84 | %{__cabal} register --inplace |
---|
85 | popd |
---|
86 | done |
---|
87 | |
---|
88 | for pkg in `tail -n 1 %{SOURCE0}`; do |
---|
89 | %{__tar} xzf %{_sourcedir}/${pkg}.tar.gz |
---|
90 | pushd ${pkg} |
---|
91 | %ghc_fix_dependencies ${pkg} |
---|
92 | %cabal_configure1 ${pkg} |
---|
93 | %cabal_build |
---|
94 | %cabal_haddock |
---|
95 | %cabal_copy_resister ${pkg} |
---|
96 | popd |
---|
97 | done |
---|
98 | |
---|
99 | |
---|
100 | %install |
---|
101 | %{__rm} -rf ${RPM_BUILD_ROOT}%{_libdir} |
---|
102 | |
---|
103 | %clean |
---|
104 | %{__rm} -rf ${RPM_BUILD_ROOT} |
---|
105 | |
---|
106 | |
---|
107 | %files |
---|
108 | %defattr(-, root, root) |
---|
109 | %{_bindir}/pandoc-crossref |
---|
110 | %{_datadir}/%{name}-%{version}/ |
---|
111 | %{_docdir}/%{name}-%{version}/ |
---|
112 | |
---|
113 | |
---|
114 | %changelog |
---|
115 | * Mon Dec 17 2018 Toshiaki Ara <ara_t@384.jp> 0.3.4.0-1 |
---|
116 | - build using ghc-8.6.3 and pandoc-2.4 |
---|
117 | |
---|
118 | * Thu Aug 09 2018 Toshiaki Ara <ara_t@384.jp> 0.3.2.1-2 |
---|
119 | - build using ghc-8.4.3-2 and pandoc-2.2.3.2 |
---|
120 | |
---|
121 | * Sat Jul 21 2018 Toshiaki Ara <ara_t@384.jp> 0.3.2.1-1 |
---|
122 | - update to 0.3.2.1 |
---|
123 | - build using ghc-8.4.3 and pandoc-2.2.2 |
---|
124 | |
---|
125 | * Fri May 18 2018 Toshiaki Ara <ara_t@384.jp> 0.3.2.0-1 |
---|
126 | - update to 0.3.2.0 |
---|
127 | - rebuild using ghc-8.4.2 and pandoc-2.2.1 |
---|
128 | - rewrite using macro |
---|
129 | |
---|
130 | * Tue Jan 09 2018 Toshiaki Ara <ara_t@384.jp> 0.3.0.0-1 |
---|
131 | - update to 0.3.0.0 |
---|
132 | - build using ghc-8.2.2 |
---|
133 | |
---|
134 | * Tue Feb 21 2017 Toshiaki Ara <ara_t@384.jp> 0.2.4.2-2 |
---|
135 | - rebuild using ghc-8.0.2 |
---|
136 | |
---|
137 | * Thu Feb 02 2017 Toshiaki Ara <ara_t@384.jp> 0.2.4.2-1 |
---|
138 | - update to 0.2.4.2 |
---|
139 | - rebuild using ghc-8.0.1 |
---|
140 | |
---|
141 | * Sun Jun 19 2016 Toshiaki Ara <ara_t@384.jp> 0.2.1.3-2 |
---|
142 | - rebuild under pandoc-1.17.1 |
---|
143 | |
---|
144 | * Sun Jun 05 2016 Toshiaki Ara <ara_t@384.jp> 0.2.1.3-1 |
---|
145 | - update to 0.2.1.3 |
---|
146 | |
---|
147 | * Fri May 06 2016 Toshiaki Ara <ara_t@384.jp> 0.2.1.1-1 |
---|
148 | - new package (devide from pandoc) |
---|
149 | |
---|