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