1 | %define pkg_name yaml |
---|
2 | %define pkg_version 0.9.0 |
---|
3 | %define pkg_release 2%{?_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.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: exceptions-0.10.0.tar.gz |
---|
23 | Source18: exceptions.cabal |
---|
24 | Source19: mono-traversable-1.0.8.1.tar.gz |
---|
25 | Source20: mono-traversable.cabal |
---|
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 |
---|
32 | |
---|
33 | BuildRoot: %{_tmppath}/%{name}-%{version}-root |
---|
34 | |
---|
35 | BuildRequires: ghc haskell-platform |
---|
36 | BuildRequires: libffi-devel gmp-devel zlib-devel |
---|
37 | BuildRequires: libghc-dlist |
---|
38 | BuildRequires: libghc-old-locale |
---|
39 | BuildRequires: libghc-aeson |
---|
40 | BuildRequires: libghc-semigroups |
---|
41 | |
---|
42 | |
---|
43 | BuildRequires: docbook-utils docbook-utils-pdf docbook-style-xsl |
---|
44 | |
---|
45 | Requires: ghc haskell-platform |
---|
46 | Requires: haskell-platform-dep |
---|
47 | Requires: libghc-dlist |
---|
48 | Requires: libghc-old-locale |
---|
49 | Requires: libghc-aeson |
---|
50 | Requires: libghc-semigroups |
---|
51 | |
---|
52 | |
---|
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 | |
---|
70 | |
---|
71 | %prep |
---|
72 | %{__rm} -rf ${RPM_BUILD_ROOT} |
---|
73 | |
---|
74 | %build |
---|
75 | %ghc_pkg_init |
---|
76 | |
---|
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 |
---|
87 | |
---|
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} |
---|
93 | %cabal_configure2 %{name}/${pkg} \ |
---|
94 | -f -no-exe |
---|
95 | %cabal_build |
---|
96 | %cabal_haddock |
---|
97 | %cabal_copy_resister %{pkg_name}-%{version} |
---|
98 | popd |
---|
99 | done |
---|
100 | |
---|
101 | |
---|
102 | %install |
---|
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 |
---|
108 | |
---|
109 | |
---|
110 | %clean |
---|
111 | %{__rm} -rf ${RPM_BUILD_ROOT} |
---|
112 | |
---|
113 | %post |
---|
114 | %ghc_pkg_recache |
---|
115 | |
---|
116 | %postun |
---|
117 | %ghc_pkg_recache |
---|
118 | |
---|
119 | |
---|
120 | %files |
---|
121 | %defattr(-, root, root) |
---|
122 | %{_bindir}/ |
---|
123 | %{_libdir}/ghc-%{ghc_version}/ |
---|
124 | %{_libdir}/ghc-lib/ |
---|
125 | %{_docdir}/%{name}/ |
---|
126 | |
---|
127 | |
---|
128 | %changelog |
---|
129 | * Thu Aug 09 2018 Toshiaki Ara <ara_t@384.jp> 0.9.0-2 |
---|
130 | - rebuild with ghc-8.4.3-2 |
---|
131 | |
---|
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 | |
---|
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 | |
---|
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 | |
---|
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 | |
---|
152 | * Wed May 04 2016 Toshiaki Ara <ara_t@384.jp> 0.8.16-3 |
---|
153 | - rebuilt |
---|
154 | |
---|
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 |
---|