[10243] | 1 | %define pkg_name pandoc-crossref |
---|
[11991] | 2 | %define pkg_version 0.3.4.0 |
---|
| 3 | %define pkg_release 1%{?_dist_release} |
---|
[10243] | 4 | |
---|
[11991] | 5 | %define pandoc_version 2.4 |
---|
[10243] | 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 | |
---|
[11635] | 16 | Source0: packages |
---|
[10243] | 17 | |
---|
[11635] | 18 | Source11: ansi-wl-pprint-0.6.8.2.tar.gz |
---|
| 19 | Source12: ansi-wl-pprint.cabal |
---|
[11991] | 20 | Source13: base-unicode-symbols-0.2.3.tar.gz |
---|
[11635] | 21 | Source14: base-unicode-symbols.cabal |
---|
[11991] | 22 | Source15: data-accessor-0.2.2.8.tar.gz |
---|
[11635] | 23 | Source16: data-accessor.cabal |
---|
[11991] | 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 |
---|
[10917] | 40 | |
---|
[10243] | 41 | BuildRoot: %{_tmppath}/%{pkg_name}-%{version}-root |
---|
| 42 | |
---|
| 43 | BuildRequires: libffi-devel gmp-devel zlib-devel |
---|
[11635] | 44 | BuildRequires: ghc haskell-platform |
---|
[10243] | 45 | BuildRequires: pandoc-libs = %{pandoc_version} |
---|
| 46 | |
---|
| 47 | BuildRequires: docbook-utils docbook-utils-pdf docbook-style-xsl |
---|
| 48 | |
---|
| 49 | Requires: pandoc = %{pandoc_version} |
---|
| 50 | |
---|
[11762] | 51 | |
---|
[10243] | 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 |
---|
[11635] | 74 | %ghc_pkg_init |
---|
[10243] | 75 | |
---|
| 76 | cd %{_builddir} |
---|
[11635] | 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 |
---|
[11383] | 87 | |
---|
[11635] | 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 |
---|
[10243] | 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 |
---|
[11383] | 110 | %{_datadir}/%{name}-%{version}/ |
---|
[10243] | 111 | %{_docdir}/%{name}-%{version}/ |
---|
| 112 | |
---|
| 113 | |
---|
| 114 | %changelog |
---|
[11991] | 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 | |
---|
[11762] | 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 | |
---|
[11745] | 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 | |
---|
[11635] | 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 | |
---|
[11383] | 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 |
---|
[11217] | 133 | |
---|
[11383] | 134 | * Tue Feb 21 2017 Toshiaki Ara <ara_t@384.jp> 0.2.4.2-2 |
---|
| 135 | - rebuild using ghc-8.0.2 |
---|
| 136 | |
---|
[10917] | 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 | |
---|
[10383] | 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 | |
---|
[10243] | 147 | * Fri May 06 2016 Toshiaki Ara <ara_t@384.jp> 0.2.1.1-1 |
---|
| 148 | - new package (devide from pandoc) |
---|
| 149 | |
---|