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