[10166] | 1 | %define pkg_name yaml |
---|
[11747] | 2 | %define pkg_version 0.9.0 |
---|
[11764] | 3 | %define pkg_release 2%{?_dist_release} |
---|
[10166] | 4 | |
---|
| 5 | Summary: Support for parsing and rendering YAML documents |
---|
| 6 | Name: %{pkg_name} |
---|
| 7 | Version: %{pkg_version} |
---|
| 8 | Release: %{pkg_release} |
---|
| 9 | |
---|
| 10 | License: BSD3 |
---|
| 11 | Group: Applications/Text |
---|
| 12 | URL: http://hackage.haskell.org |
---|
| 13 | |
---|
[11631] | 14 | Source0: packages |
---|
[10166] | 15 | |
---|
[11747] | 16 | Source11: transformers-compat-0.6.2.tar.gz |
---|
| 17 | Source12: transformers-compat.cabal |
---|
[11631] | 18 | Source13: unliftio-core-0.1.1.0.tar.gz |
---|
| 19 | Source14: unliftio-core.cabal |
---|
| 20 | Source15: vector-algorithms-0.7.0.1.tar.gz |
---|
| 21 | Source16: vector-algorithms.cabal |
---|
[11747] | 22 | Source17: exceptions-0.10.0.tar.gz |
---|
| 23 | Source18: exceptions.cabal |
---|
[11631] | 24 | Source19: mono-traversable-1.0.8.1.tar.gz |
---|
| 25 | Source20: mono-traversable.cabal |
---|
[11747] | 26 | Source21: resourcet-1.2.1.tar.gz |
---|
| 27 | Source22: resourcet.cabal |
---|
| 28 | Source23: conduit-1.3.0.3.tar.gz |
---|
| 29 | Source24: conduit.cabal |
---|
| 30 | Source25: yaml-0.9.0.tar.gz |
---|
| 31 | Source26: yaml.cabal |
---|
[10166] | 32 | |
---|
| 33 | BuildRoot: %{_tmppath}/%{name}-%{version}-root |
---|
| 34 | |
---|
[10915] | 35 | BuildRequires: ghc haskell-platform |
---|
[10166] | 36 | BuildRequires: libffi-devel gmp-devel zlib-devel |
---|
| 37 | BuildRequires: libghc-dlist |
---|
[11631] | 38 | BuildRequires: libghc-old-locale |
---|
[10166] | 39 | BuildRequires: libghc-aeson |
---|
[11631] | 40 | BuildRequires: libghc-semigroups |
---|
[10166] | 41 | |
---|
[11631] | 42 | |
---|
[10166] | 43 | BuildRequires: docbook-utils docbook-utils-pdf docbook-style-xsl |
---|
| 44 | |
---|
[10915] | 45 | Requires: ghc haskell-platform |
---|
[11631] | 46 | Requires: haskell-platform-dep |
---|
[10166] | 47 | Requires: libghc-dlist |
---|
[11631] | 48 | Requires: libghc-old-locale |
---|
[10166] | 49 | Requires: libghc-aeson |
---|
[11631] | 50 | Requires: libghc-semigroups |
---|
[10166] | 51 | |
---|
[11631] | 52 | |
---|
[10166] | 53 | Vendor: Project Vine |
---|
| 54 | Distribution: Vine Linux |
---|
| 55 | Packager: ara_t |
---|
| 56 | |
---|
| 57 | |
---|
| 58 | %description |
---|
| 59 | This package includes the full libyaml C library version 0.1.5 |
---|
| 60 | by Kirill Simonov in the package so you don't need to worry |
---|
| 61 | about any non-Haskell dependencies. |
---|
| 62 | |
---|
| 63 | The package is broken down into two primary modules. |
---|
| 64 | "Data.Yaml" provides a high-level interface based around the JSON datatypes |
---|
| 65 | provided by the @aeson@ package. |
---|
| 66 | "Text.Libyaml" provides a lower-level, streaming interface. |
---|
| 67 | For most users, "Data.Yaml" is recommended. |
---|
| 68 | #' |
---|
| 69 | |
---|
[11631] | 70 | |
---|
| 71 | %prep |
---|
[10166] | 72 | %{__rm} -rf ${RPM_BUILD_ROOT} |
---|
| 73 | |
---|
| 74 | %build |
---|
[11631] | 75 | %ghc_pkg_init |
---|
[10166] | 76 | |
---|
[11631] | 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_configure2 %{name} ${pkg} |
---|
| 82 | %cabal_build |
---|
| 83 | %cabal_haddock |
---|
| 84 | %cabal_copy_resister %{name}_${pkg} |
---|
| 85 | popd |
---|
| 86 | done |
---|
[10166] | 87 | |
---|
[11631] | 88 | # build yaml |
---|
| 89 | for pkg in `tail -n 1 %{SOURCE0}`; do |
---|
| 90 | %{__tar} xzf %{_sourcedir}/${pkg}.tar.gz |
---|
| 91 | pushd ${pkg} |
---|
| 92 | %ghc_fix_dependencies ${pkg} |
---|
[11747] | 93 | %cabal_configure2 %{name}/${pkg} \ |
---|
| 94 | -f -no-exe |
---|
[11631] | 95 | %cabal_build |
---|
| 96 | %cabal_haddock |
---|
| 97 | %cabal_copy_resister %{pkg_name}-%{version} |
---|
| 98 | popd |
---|
[10166] | 99 | done |
---|
| 100 | |
---|
| 101 | |
---|
| 102 | %install |
---|
[11631] | 103 | # copy documents |
---|
| 104 | pushd %{_builddir}/%{pkg_name}-%{version} |
---|
| 105 | %{__cp} ChangeLog.md README.md \ |
---|
| 106 | ${RPM_BUILD_ROOT}%{_docdir}/%{name}/%{pkg_name}-%{version} |
---|
| 107 | popd |
---|
[10166] | 108 | |
---|
| 109 | |
---|
| 110 | %clean |
---|
| 111 | %{__rm} -rf ${RPM_BUILD_ROOT} |
---|
| 112 | |
---|
| 113 | %post |
---|
[11631] | 114 | %ghc_pkg_recache |
---|
[10166] | 115 | |
---|
| 116 | %postun |
---|
[11631] | 117 | %ghc_pkg_recache |
---|
[10166] | 118 | |
---|
| 119 | |
---|
| 120 | %files |
---|
| 121 | %defattr(-, root, root) |
---|
| 122 | %{_bindir}/ |
---|
| 123 | %{_libdir}/ghc-%{ghc_version}/ |
---|
| 124 | %{_libdir}/ghc-lib/ |
---|
[10237] | 125 | %{_docdir}/%{name}/ |
---|
[10166] | 126 | |
---|
| 127 | |
---|
| 128 | %changelog |
---|
[11764] | 129 | * Thu Aug 09 2018 Toshiaki Ara <ara_t@384.jp> 0.9.0-2 |
---|
| 130 | - rebuild with ghc-8.4.3-2 |
---|
| 131 | |
---|
[11747] | 132 | * Sat Jul 21 2018 Toshiaki Ara <ara_t@384.jp> 0.9.0-1 |
---|
| 133 | - update to 0.9.0 |
---|
| 134 | - build using ghc-8.4.3 |
---|
| 135 | |
---|
[11631] | 136 | * Fri May 18 2018 Toshiaki Ara <ara_t@384.jp> 0.8.30-1 |
---|
| 137 | - update to 0.8.30 |
---|
| 138 | - rebuild using ghc-8.4.2 |
---|
| 139 | - rewrite using macro |
---|
| 140 | |
---|
[11385] | 141 | * Tue Jan 09 2018 Toshiaki Ara <ara_t@384.jp> 0.8.25.1-1 |
---|
| 142 | - update to 0.8.25.1 |
---|
| 143 | - build using ghc-8.2.2 |
---|
| 144 | |
---|
| 145 | * Tue Feb 21 2017 Toshiaki Ara <ara_t@384.jp> 0.8.21.2-2 |
---|
| 146 | - build using ghc-8.0.2 |
---|
| 147 | |
---|
[10915] | 148 | * Fri Feb 03 2017 Toshiaki Ara <ara_t@384.jp> 0.8.21.2-1 |
---|
| 149 | - update to 0.8.21.2 |
---|
| 150 | - build using ghc-8.0.1 |
---|
| 151 | |
---|
[10237] | 152 | * Wed May 04 2016 Toshiaki Ara <ara_t@384.jp> 0.8.16-3 |
---|
| 153 | - rebuilt |
---|
| 154 | |
---|
[10166] | 155 | * Tue Apr 12 2016 Toshiaki Ara <ara_t@384.jp> 0.8.16-2 |
---|
| 156 | - correct SPEC file |
---|
| 157 | |
---|
| 158 | * Tue Mar 01 2016 Toshiaki Ara <ara_t@384.jp> 0.8.16-1 |
---|
| 159 | - new package |
---|