[10242] | 1 | %define pkg_name pandoc-citeproc |
---|
[11990] | 2 | %define pkg_version 0.15.0.1 |
---|
| 3 | %define pkg_release 1%{?_dist_release} |
---|
[10242] | 4 | |
---|
[11990] | 5 | %define pandoc_version 2.4 |
---|
[10242] | 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 |
---|
[10242] | 17 | |
---|
[11990] | 18 | Source11: hs-bibutils-6.7.0.0.tar.gz |
---|
| 19 | Source12: hs-bibutils.cabal |
---|
| 20 | Source13: rfc5051-0.1.0.4.tar.gz |
---|
| 21 | Source14: rfc5051.cabal |
---|
| 22 | Source15: setenv-0.1.1.3.tar.gz |
---|
| 23 | Source16: setenv.cabal |
---|
| 24 | Source17: typed-process-0.2.3.0.tar.gz |
---|
| 25 | Source18: typed-process.cabal |
---|
| 26 | Source19: unliftio-core-0.1.2.0.tar.gz |
---|
| 27 | Source20: unliftio-core.cabal |
---|
| 28 | Source21: vector-algorithms-0.8.0.1.tar.gz |
---|
| 29 | Source22: vector-algorithms.cabal |
---|
| 30 | Source23: xml-types-0.3.6.tar.gz |
---|
| 31 | Source24: xml-types.cabal |
---|
| 32 | Source25: resourcet-1.2.2.tar.gz |
---|
| 33 | Source26: resourcet.cabal |
---|
| 34 | Source27: mono-traversable-1.0.9.0.tar.gz |
---|
| 35 | Source28: mono-traversable.cabal |
---|
| 36 | Source29: conduit-1.3.1.tar.gz |
---|
| 37 | Source30: conduit.cabal |
---|
| 38 | Source31: libyaml-0.1.0.0.tar.gz |
---|
| 39 | Source32: libyaml.cabal |
---|
| 40 | Source33: conduit-extra-1.3.0.tar.gz |
---|
| 41 | Source34: conduit-extra.cabal |
---|
| 42 | Source35: yaml-0.11.0.0.tar.gz |
---|
| 43 | Source36: yaml.cabal |
---|
| 44 | Source37: xml-conduit-1.8.0.1.tar.gz |
---|
| 45 | Source38: xml-conduit.cabal |
---|
| 46 | Source39: pandoc-citeproc-0.15.0.1.tar.gz |
---|
| 47 | Source40: pandoc-citeproc.cabal |
---|
[10917] | 48 | |
---|
[10242] | 49 | BuildRoot: %{_tmppath}/%{pkg_name}-%{version}-root |
---|
| 50 | |
---|
[10917] | 51 | BuildRequires: ghc haskell-platform |
---|
[10242] | 52 | BuildRequires: libffi-devel gmp-devel zlib-devel |
---|
| 53 | BuildRequires: libghc-build-pandoc |
---|
| 54 | BuildRequires: pandoc-libs = %{pandoc_version} |
---|
| 55 | |
---|
| 56 | BuildRequires: docbook-utils docbook-utils-pdf docbook-style-xsl |
---|
| 57 | |
---|
| 58 | Requires: pandoc = %{pandoc_version} |
---|
| 59 | |
---|
[11762] | 60 | |
---|
[10242] | 61 | Vendor: Project Vine |
---|
| 62 | Distribution: Vine Linux |
---|
| 63 | Packager: ara_t |
---|
| 64 | |
---|
| 65 | |
---|
| 66 | %description |
---|
| 67 | The pandoc-citeproc library exports functions for using the citeproc system |
---|
| 68 | with pandoc. It relies on citeproc-hs, a library for rendering bibliographic |
---|
| 69 | reference citations into a variety of styles using a macro language called |
---|
| 70 | Citation Style Language (CSL). |
---|
| 71 | More details on CSL can be found here: http://citationstyles.org/. |
---|
| 72 | |
---|
| 73 | |
---|
| 74 | %prep |
---|
| 75 | %{__rm} -rf ${RPM_BUILD_ROOT} |
---|
| 76 | |
---|
| 77 | %build |
---|
[11635] | 78 | %ghc_pkg_init |
---|
[10242] | 79 | |
---|
| 80 | cd %{_builddir} |
---|
[11635] | 81 | for pkg in `sed '$d' %{SOURCE0}`; do |
---|
| 82 | %{__tar} xzf %{_sourcedir}/${pkg}.tar.gz |
---|
| 83 | pushd ${pkg} |
---|
| 84 | %ghc_fix_dependencies ${pkg} |
---|
| 85 | %{__cabal} configure |
---|
| 86 | %{__cabal} build |
---|
| 87 | %{__cabal} copy |
---|
| 88 | %{__cabal} register --inplace |
---|
| 89 | popd |
---|
[10242] | 90 | done |
---|
| 91 | |
---|
[11635] | 92 | for pkg in `tail -n 1 %{SOURCE0}`; do |
---|
| 93 | %{__tar} xzf %{_sourcedir}/${pkg}.tar.gz |
---|
| 94 | pushd ${pkg} |
---|
| 95 | %ghc_fix_dependencies ${pkg} |
---|
| 96 | %cabal_configure1 ${pkg} |
---|
| 97 | %cabal_build |
---|
| 98 | %cabal_haddock |
---|
| 99 | %cabal_copy_resister ${pkg} |
---|
| 100 | popd |
---|
| 101 | done |
---|
[10242] | 102 | |
---|
| 103 | |
---|
| 104 | %install |
---|
| 105 | %{__rm} -rf ${RPM_BUILD_ROOT}%{_libdir} |
---|
[11635] | 106 | %{__mv} \ |
---|
| 107 | ${RPM_BUILD_ROOT}%{_datadir}/%{name}-%{version}/{changelog,README.md} \ |
---|
[10242] | 108 | ${RPM_BUILD_ROOT}%{_docdir}/%{name}-%{version}/ |
---|
[11635] | 109 | %{__mv} \ |
---|
| 110 | ${RPM_BUILD_ROOT}%{_datadir}/%{name}-%{version}/man \ |
---|
[10242] | 111 | ${RPM_BUILD_ROOT}%{_datadir}/ |
---|
| 112 | |
---|
| 113 | %clean |
---|
| 114 | %{__rm} -rf ${RPM_BUILD_ROOT} |
---|
| 115 | |
---|
| 116 | |
---|
| 117 | %files |
---|
| 118 | %defattr(-, root, root) |
---|
| 119 | %{_bindir}/pandoc-citeproc |
---|
| 120 | %{_datadir}/%{name}-%{version}/ |
---|
| 121 | %{_docdir}/%{name}-%{version}/ |
---|
| 122 | %{_mandir}/man1/ |
---|
| 123 | |
---|
| 124 | |
---|
| 125 | %changelog |
---|
[11990] | 126 | * Mon Dec 17 2018 Toshiaki Ara <ara_t@384.jp> 0.15.0.1-1 |
---|
| 127 | - update to 0.15.0.1 |
---|
| 128 | - build using ghc-8.6.3 and pandoc-2.4 |
---|
| 129 | |
---|
[11762] | 130 | * Thu Aug 09 2018 Toshiaki Ara <ara_t@384.jp> 0.14.3.1-3 |
---|
| 131 | - build using ghc-8.4.3-2 and pandoc-2.2.3.2 |
---|
| 132 | |
---|
[11745] | 133 | * Sat Jul 21 2018 Toshiaki Ara <ara_t@384.jp> 0.14.3.1-2 |
---|
| 134 | - build using ghc-8.4.3 and pandoc-2.2.2 |
---|
| 135 | |
---|
[11635] | 136 | * Fri May 18 2018 Toshiaki Ara <ara_t@384.jp> 0.14.3.1-1 |
---|
| 137 | - update to 0.14.3.1 |
---|
| 138 | - rebuild using ghc-8.4.2 and pandoc-2.2.1 |
---|
| 139 | - rewrite using macro |
---|
| 140 | |
---|
[11383] | 141 | * Tue Jan 09 2018 Toshiaki Ara <ara_t@384.jp> 0.12.2.5-1 |
---|
| 142 | - update to 0.12.2.5 |
---|
| 143 | - build using ghc-8.2.2 |
---|
[11217] | 144 | |
---|
[11383] | 145 | * Tue Feb 21 2017 Toshiaki Ara <ara_t@384.jp> 0.10.4.1-1 |
---|
| 146 | - update to 0.10.4.1 |
---|
| 147 | - build using ghc-8.0.2 |
---|
| 148 | |
---|
[10917] | 149 | * Fri Feb 03 2017 Toshiaki Ara <ara_t@384.jp> 0.10.4-1 |
---|
| 150 | - update to 0.10.4 |
---|
| 151 | - build using ghc-8.0.1 |
---|
| 152 | |
---|
[10381] | 153 | * Sat Jun 18 2016 Toshiaki Ara <ara_t@384.jp> 0.10-1 |
---|
| 154 | - update to 0.10 |
---|
| 155 | |
---|
[10242] | 156 | * Fri May 06 2016 Toshiaki Ara <ara_t@384.jp> 0.9.1.1-1 |
---|
| 157 | - new package (devide from pandoc) |
---|
| 158 | |
---|