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