日本OpenSolaris Users Group有志による、レポジトリサーバ作成のためのspecファイル群です。
Revision | 80e42f7f32f1c829db7e81bca10c9067cd98ac1a (tree) |
---|---|
Time | 2016-01-30 08:53:07 |
Author | Osamu Tabata <cantimerny.g@gmai...> |
Commiter | Osamu Tabata |
spec_SFEghc-conduit: build only 7.10
@@ -9,11 +9,7 @@ | ||
9 | 9 | %include base.inc |
10 | 10 | %include usr-gnu.inc |
11 | 11 | |
12 | -%define build78 1 | |
13 | -%define build710 1 | |
14 | - | |
15 | -%define ghc_ver_78 7.8.3 | |
16 | -%define ghc_ver_710 7.10.3 | |
12 | +%define ghc_ver 7.10.3 | |
17 | 13 | %include yesod-version-sets.inc |
18 | 14 | |
19 | 15 | %define oracle_solaris_11_2 %(grep 'Oracle Solaris 11.2' /etc/release > /dev/null ; if [ $? -eq 0 ]; then echo '1'; else echo '0'; fi) |
@@ -32,30 +28,10 @@ | ||
32 | 28 | SUNW_BaseDir: %{_basedir} |
33 | 29 | BuildRoot: %{_tmppath}/%{name}-%{version}-build |
34 | 30 | |
35 | -BuildRequires: developer/ghc-78 = %{ghc_ver_78} | |
36 | -BuildRequires: developer/ghc-78/prof = %{ghc_ver_78} | |
37 | -BuildRequires: library/ghc/exceptions-78 = %{exceptions_ver} | |
38 | -BuildRequires: library/ghc/exceptions-78/prof = %{exceptions_ver} | |
39 | -BuildRequires: library/ghc/mmorph-78 = %{mmorph_ver} | |
40 | -BuildRequires: library/ghc/mmorph-78/prof = %{mmorph_ver} | |
41 | -BuildRequires: library/ghc/mtl-78 = %{mtl_ver} | |
42 | -BuildRequires: library/ghc/mtl-78/prof = %{mtl_ver} | |
43 | -BuildRequires: library/ghc/stm-78 = %{stm_ver} | |
44 | -BuildRequires: library/ghc/stm-78/prof = %{stm_ver} | |
45 | -BuildRequires: library/ghc/lifted-base-78 = %{lifted_base_ver} | |
46 | -BuildRequires: library/ghc/lifted-base-78/prof = %{lifted_base_ver} | |
47 | -BuildRequires: library/ghc/resourcet-78 = %{resourcet_ver} | |
48 | -BuildRequires: library/ghc/resourcet-78/prof = %{resourcet_ver} | |
49 | -BuildRequires: library/ghc/monad-control-78 = %{monad_control_ver} | |
50 | -BuildRequires: library/ghc/monad-control-78/prof = %{monad_control_ver} | |
51 | -BuildRequires: library/ghc/transformers-78 = %{transformers_ver} | |
52 | -BuildRequires: library/ghc/transformers-78/prof = %{transformers_ver} | |
53 | -BuildRequires: library/ghc/transformers-base-78 = %{transformers_base_ver} | |
54 | -BuildRequires: library/ghc/transformers-base-78/prof = %{transformers_base_ver} | |
55 | -BuildRequires: library/ghc/void-78 = %{void_ver} | |
56 | -BuildRequires: library/ghc/void-78/prof = %{void_ver} | |
57 | -BuildRequires: developer/ghc-710 = %{ghc_ver_710} | |
58 | -BuildRequires: developer/ghc-710/prof = %{ghc_ver_710} | |
31 | +BuildRequires: developer/ghc-710 = %{ghc_ver} | |
32 | +BuildRequires: developer/ghc-710/prof = %{ghc_ver} | |
33 | +BuildRequires: library/ghc/hscolour-710 = %{hscolour_ver} | |
34 | +BuildRequires: library/ghc/hscolour-710/prof = %{hscolour_ver} | |
59 | 35 | BuildRequires: library/ghc/exceptions-710 = %{exceptions_ver} |
60 | 36 | BuildRequires: library/ghc/exceptions-710/prof = %{exceptions_ver} |
61 | 37 | BuildRequires: library/ghc/mmorph-710 = %{mmorph_ver} |
@@ -70,8 +46,6 @@ | ||
70 | 46 | BuildRequires: library/ghc/resourcet-710/prof = %{resourcet_ver} |
71 | 47 | BuildRequires: library/ghc/monad-control-710 = %{monad_control_ver} |
72 | 48 | BuildRequires: library/ghc/monad-control-710/prof = %{monad_control_ver} |
73 | -BuildRequires: library/ghc/transformers-710 = %{transformers_ver} | |
74 | -BuildRequires: library/ghc/transformers-710/prof = %{transformers_ver} | |
75 | 49 | BuildRequires: library/ghc/transformers-base-710 = %{transformers_base_ver} |
76 | 50 | BuildRequires: library/ghc/transformers-base-710/prof = %{transformers_base_ver} |
77 | 51 | BuildRequires: library/ghc/void-710 = %{void_ver} |
@@ -83,53 +57,38 @@ | ||
83 | 57 | @conduit@ is a solution to the streaming data problem, allowing for production, transformation, and consumption of streams of data in constant memory. It is an alternative to lazy I\/O which guarantees deterministic resource handling, and fits in the same general solution space as @enumerator@\/@iteratee@ and @pipes@. For a tutorial, please visit <https://www.fpcomplete.com/user/snoyberg/library-documentation/conduit-overview>. |
84 | 58 | |
85 | 59 | |
86 | -%if %{build78} | |
87 | -%package 78 | |
88 | -IPS_package_name: library/ghc/%{pname}-78 | |
89 | -Summary: conduit system | |
90 | -SUNW_BaseDir: %{_basedir} | |
91 | -%include default-depend.inc | |
92 | -Requires: developer/ghc-78 = %{ghc_ver_78} | |
93 | - | |
94 | -%package prof-78 | |
95 | -IPS_package_name: library/ghc/%{pname}-78/prof | |
96 | -Summary: %{summary} - profiling libraries | |
97 | -SUNW_BaseDir: %{_basedir} | |
98 | -%include default-depend.inc | |
99 | -Requires: developer/ghc-78/prof = %{ghc_ver_78} | |
100 | -Requires: library/ghc/%{pname}-78 | |
101 | - | |
102 | -%package doc-78 | |
103 | -IPS_package_name: library/ghc/%{pname}-78/doc | |
104 | -Summary: %{summary} - doc files | |
105 | -SUNW_BaseDir: %{_basedir} | |
106 | -%include default-depend.inc | |
107 | -Requires: library/ghc/%{pname}-78 | |
108 | - | |
109 | -%description 78 | |
110 | -Hackage documentation generation is not reliable. For up to date documentation, please see: <http://www.stackage.org/package/conduit>. | |
111 | -. | |
112 | -@conduit@ is a solution to the streaming data problem, allowing for production, transformation, and consumption of streams of data in constant memory. It is an alternative to lazy I\/O which guarantees deterministic resource handling, and fits in the same general solution space as @enumerator@\/@iteratee@ and @pipes@. For a tutorial, please visit <https://www.fpcomplete.com/user/snoyberg/library-documentation/conduit-overview>. | |
113 | - | |
114 | - | |
115 | -%endif | |
116 | - | |
117 | - | |
118 | -%if %{build710} | |
119 | 60 | %package 710 |
120 | 61 | IPS_package_name: library/ghc/%{pname}-710 |
121 | 62 | Summary: conduit system |
122 | 63 | SUNW_BaseDir: %{_basedir} |
123 | 64 | %include default-depend.inc |
124 | -Requires: developer/ghc-710 = %{ghc_ver_710} | |
65 | +Requires: developer/ghc-710 = %{ghc_ver} | |
66 | +Requires: library/ghc/exceptions-710 = %{exceptions_ver} | |
67 | +Requires: library/ghc/mmorph-710 = %{mmorph_ver} | |
68 | +Requires: library/ghc/mtl-710 = %{mtl_ver} | |
69 | +Requires: library/ghc/stm-710 = %{stm_ver} | |
70 | +Requires: library/ghc/lifted-base-710 = %{lifted_base_ver} | |
71 | +Requires: library/ghc/resourcet-710 = %{resourcet_ver} | |
72 | +Requires: library/ghc/monad-control-710 = %{monad_control_ver} | |
73 | +Requires: library/ghc/transformers-base-710 = %{transformers_base_ver} | |
74 | +Requires: library/ghc/void-710 = %{void_ver} | |
125 | 75 | |
126 | 76 | %package prof-710 |
127 | 77 | IPS_package_name: library/ghc/%{pname}-710/prof |
128 | 78 | Summary: %{summary} - profiling libraries |
129 | 79 | SUNW_BaseDir: %{_basedir} |
130 | 80 | %include default-depend.inc |
131 | -Requires: developer/ghc-710/prof = %{ghc_ver_710} | |
81 | +Requires: developer/ghc-710/prof = %{ghc_ver} | |
132 | 82 | Requires: library/ghc/%{pname}-710 |
83 | +Requires: library/ghc/exceptions-710/prof = %{exceptions_ver} | |
84 | +Requires: library/ghc/mmorph-710/prof = %{mmorph_ver} | |
85 | +Requires: library/ghc/mtl-710/prof = %{mtl_ver} | |
86 | +Requires: library/ghc/stm-710/prof = %{stm_ver} | |
87 | +Requires: library/ghc/lifted-base-710/prof = %{lifted_base_ver} | |
88 | +Requires: library/ghc/resourcet-710/prof = %{resourcet_ver} | |
89 | +Requires: library/ghc/monad-control-710/prof = %{monad_control_ver} | |
90 | +Requires: library/ghc/transformers-base-710/prof = %{transformers_base_ver} | |
91 | +Requires: library/ghc/void-710/prof = %{void_ver} | |
133 | 92 | |
134 | 93 | %package doc-710 |
135 | 94 | IPS_package_name: library/ghc/%{pname}-710/doc |
@@ -144,9 +103,6 @@ | ||
144 | 103 | @conduit@ is a solution to the streaming data problem, allowing for production, transformation, and consumption of streams of data in constant memory. It is an alternative to lazy I\/O which guarantees deterministic resource handling, and fits in the same general solution space as @enumerator@\/@iteratee@ and @pipes@. For a tutorial, please visit <https://www.fpcomplete.com/user/snoyberg/library-documentation/conduit-overview>. |
145 | 104 | |
146 | 105 | |
147 | -%endif | |
148 | - | |
149 | - | |
150 | 106 | %prep |
151 | 107 | %setup -q -n %{pname}-%{version} |
152 | 108 |
@@ -172,60 +128,53 @@ | ||
172 | 128 | export LDFLAGS="-L%{_libdir} -R%{_libdir}" |
173 | 129 | %endif |
174 | 130 | |
175 | - GHC=/usr/gnu/bin/ghc-${ghc_version} | |
176 | - GHC_PKG=/usr/gnu/bin/ghc-pkg-${ghc_version} | |
177 | - HSC2HS=/usr/gnu/bin/hsc2hs-${ghc_version} | |
178 | - HADDOCK=/usr/gnu/bin/haddock-ghc-${ghc_version} | |
131 | + GHC=/usr/gnu/bin/ghc-%{ghc_ver} | |
132 | + GHC_PKG=/usr/gnu/bin/ghc-pkg-%{ghc_ver} | |
133 | + HSC2HS=/usr/gnu/bin/hsc2hs-%{ghc_ver} | |
134 | + HADDOCK=/usr/gnu/bin/haddock-ghc-%{ghc_ver} | |
179 | 135 | VERBOSE=--verbose=2 |
180 | 136 | |
181 | 137 | chmod a+x ./Setup.lhs |
182 | - /usr/gnu/bin/runghc-${ghc_version} ./Setup.lhs clean | |
183 | - /usr/gnu/bin/runghc-${ghc_version} ./Setup.lhs configure --prefix=%{_prefix} \ | |
138 | + /usr/gnu/bin/runghc-%{ghc_ver} ./Setup.lhs clean | |
139 | + /usr/gnu/bin/runghc-%{ghc_ver} ./Setup.lhs configure --prefix=%{_prefix} \ | |
184 | 140 | --libdir=%{_libdir} \ |
185 | - --docdir=%{_datadir}/doc/ghc-${ghc_version}/%{pname}-%{version} \ | |
186 | - --htmldir=%{_datadir}/doc/ghc-${ghc_version}/html/libraries/%{pname}-%{version} \ | |
141 | + --docdir=%{_datadir}/doc/ghc-%{ghc_ver}/%{pname}-%{version} \ | |
142 | + --htmldir=%{_datadir}/doc/ghc-%{ghc_ver}/html/libraries/%{pname}-%{version} \ | |
187 | 143 | --libsubdir='$compiler/$pkgid' \ |
188 | 144 | --with-compiler=${GHC} --with-hc-pkg=${GHC_PKG} --with-hsc2hs=${HSC2HS} --with-haddock=${HADDOCK} \ |
189 | 145 | --haddock-option="--html" \ |
190 | 146 | --enable-library-profiling \ |
191 | 147 | ${VERBOSE} |
192 | 148 | |
193 | - /usr/gnu/bin/runghc-${ghc_version} ./Setup.lhs build ${VERBOSE} -j$CPUS | |
194 | - /usr/gnu/bin/runghc-${ghc_version} ./Setup.lhs haddock ${VERBOSE} --executables --hoogle --hyperlink-source | |
149 | + /usr/gnu/bin/runghc-%{ghc_ver} ./Setup.lhs build ${VERBOSE} -j$CPUS | |
150 | + /usr/gnu/bin/runghc-%{ghc_ver} ./Setup.lhs haddock ${VERBOSE} --executables --hoogle --hyperlink-source | |
195 | 151 | |
196 | - install -d ${RPM_BUILD_ROOT}%{_libdir}/ghc-${ghc_version} | |
197 | - /usr/gnu/bin/runghc-${ghc_version} ./Setup.lhs register ${VERBOSE} --gen-pkg-config=%{pname}-%{version}.conf | |
198 | - /usr/gnu/bin/runghc-${ghc_version} ./Setup.lhs copy ${VERBOSE} --destdir=${RPM_BUILD_ROOT} | |
152 | + install -d ${RPM_BUILD_ROOT}%{_libdir}/ghc-%{ghc_ver} | |
153 | + /usr/gnu/bin/runghc-%{ghc_ver} ./Setup.lhs register ${VERBOSE} --gen-pkg-config=%{pname}-%{version}.conf | |
154 | + /usr/gnu/bin/runghc-%{ghc_ver} ./Setup.lhs copy ${VERBOSE} --destdir=${RPM_BUILD_ROOT} | |
199 | 155 | |
200 | - install -d ${RPM_BUILD_ROOT}%{_libdir}/ghc-${ghc_version}/%{pname}-%{version}/ | |
201 | - install -c -m 755 %{pname}-%{version}.conf ${RPM_BUILD_ROOT}%{_libdir}/ghc-${ghc_version}/%{pname}-%{version}/%{pname}-%{version}.conf | |
156 | + install -d ${RPM_BUILD_ROOT}%{_libdir}/ghc-%{ghc_ver}/%{pname}-%{version}/ | |
157 | + install -c -m 755 %{pname}-%{version}.conf ${RPM_BUILD_ROOT}%{_libdir}/ghc-%{ghc_ver}/%{pname}-%{version}/%{pname}-%{version}.conf | |
202 | 158 | |
203 | 159 | # LICENCE FILE |
204 | - # mv $RPM_BUILD_ROOT%{_datadir}/doc/%{pname}-%{version} $RPM_BUILD_ROOT%/%{_datadir}/doc/ghc-${ghc_version} | |
160 | + # mv $RPM_BUILD_ROOT%{_datadir}/doc/%{pname}-%{version} $RPM_BUILD_ROOT%/%{_datadir}/doc/ghc-%{ghc_ver} | |
205 | 161 | # # Prepare lists of files for packaging |
206 | 162 | # cd %{_builddir}/%{pname}-%{version} |
207 | - find $RPM_BUILD_ROOT -type f -name "*.p_hi" | grep "ghc-${ghc_version}" > pkg-prof-${ghc_version}.files | |
208 | - find $RPM_BUILD_ROOT -type f -name "*_p.a" | grep "ghc-${ghc_version}" >> pkg-prof-${ghc_version}.files | |
209 | - find $RPM_BUILD_ROOT%{_libdir} -type f -name "*" | grep "ghc-${ghc_version}" > pkg-all-${ghc_version}.files | |
210 | - sort pkg-prof-${ghc_version}.files > pkg-prof-sort-${ghc_version}.files | |
211 | - sort pkg-all-${ghc_version}.files > pkg-all-sort-${ghc_version}.files | |
212 | - comm -23 pkg-all-sort-${ghc_version}.files pkg-prof-sort-${ghc_version}.files > pkg-${ghc_version}.files | |
213 | - find $RPM_BUILD_ROOT%{_datadir} -type f -name "*" | grep "ghc-${ghc_version}" > pkg-doc-${ghc_version}.files | |
214 | - sort pkg-doc-${ghc_version}.files > pkg-doc-sort-${ghc_version}.files | |
163 | + find $RPM_BUILD_ROOT -type f -name "*.p_hi" | grep "ghc-%{ghc_ver}" > pkg-prof-%{ghc_ver}.files | |
164 | + find $RPM_BUILD_ROOT -type f -name "*_p.a" | grep "ghc-%{ghc_ver}" >> pkg-prof-%{ghc_ver}.files | |
165 | + find $RPM_BUILD_ROOT%{_libdir} -type f -name "*" | grep "ghc-%{ghc_ver}" > pkg-all-%{ghc_ver}.files | |
166 | + sort pkg-prof-%{ghc_ver}.files > pkg-prof-sort-%{ghc_ver}.files | |
167 | + sort pkg-all-%{ghc_ver}.files > pkg-all-sort-%{ghc_ver}.files | |
168 | + comm -23 pkg-all-sort-%{ghc_ver}.files pkg-prof-sort-%{ghc_ver}.files > pkg-%{ghc_ver}.files | |
169 | + find $RPM_BUILD_ROOT%{_datadir} -type f -name "*" | grep "ghc-%{ghc_ver}" > pkg-doc-%{ghc_ver}.files | |
170 | + sort pkg-doc-%{ghc_ver}.files > pkg-doc-sort-%{ghc_ver}.files | |
215 | 171 | # Clean up syntax for %files section |
216 | - cat pkg-${ghc_version}.files | sed 's:'"$RPM_BUILD_ROOT"'::' > TEMP && mv TEMP pkg-${ghc_version}.files | |
217 | - cat pkg-prof-sort-${ghc_version}.files | sed 's:'"$RPM_BUILD_ROOT"'::' > TEMP && mv TEMP pkg-prof-${ghc_version}.files | |
218 | - cat pkg-doc-sort-${ghc_version}.files | sed 's:'"$RPM_BUILD_ROOT"'::' > TEMP && mv TEMP pkg-doc-${ghc_version}.files | |
172 | + cat pkg-%{ghc_ver}.files | sed 's:'"$RPM_BUILD_ROOT"'::' > TEMP && mv TEMP pkg-%{ghc_ver}.files | |
173 | + cat pkg-prof-sort-%{ghc_ver}.files | sed 's:'"$RPM_BUILD_ROOT"'::' > TEMP && mv TEMP pkg-prof-%{ghc_ver}.files | |
174 | + cat pkg-doc-sort-%{ghc_ver}.files | sed 's:'"$RPM_BUILD_ROOT"'::' > TEMP && mv TEMP pkg-doc-%{ghc_ver}.files | |
219 | 175 | } |
220 | - | |
176 | +build_for | |
221 | 177 | |
222 | -%if %{build78} | |
223 | -build_for 7.8.3 | |
224 | -%endif | |
225 | - | |
226 | -%if %{build710} | |
227 | -build_for 7.10.3 | |
228 | -%endif | |
229 | 178 | |
230 | 179 | %install |
231 | 180 |
@@ -241,49 +190,37 @@ | ||
241 | 190 | # %post |
242 | 191 | # The %install section above will only install files |
243 | 192 | # We need to register the package with ghc-pkg for ghc to find it |
244 | -# /usr/bin/ghc-pkg register --global --force %{_libdir}/ghc-${ghc_version}/%{cname}-%{version}/%{cname}-%{version}.conf | |
193 | +# /usr/bin/ghc-pkg register --global --force %{_libdir}/ghc-%{ghc_ver}/%{cname}-%{version}/%{cname}-%{version}.conf | |
245 | 194 | |
246 | 195 | # %post -n SFEghc78-conduit-doc |
247 | -# cd %{_datadir}/doc/ghc-${ghc_version}/html/libraries && [ -x "./gen_contents_index" ] && ./gen_contents_index | |
196 | +# cd %{_datadir}/doc/ghc-%{ghc_ver}/html/libraries && [ -x "./gen_contents_index" ] && ./gen_contents_index | |
248 | 197 | |
249 | 198 | # %preun |
250 | 199 | # # Need to unregister the package with ghc-pkg for the rebuild of the spec file to work |
251 | 200 | # /usr/bin/ghc-pkg unregister --global --force %{pname}-%{version} |
252 | 201 | |
253 | 202 | # %postun -n SFEghc78-conduit-doc |
254 | -# if [ "$1" -eq 0 ] && [ -x %{_datadir}/doc/ghc-${ghc_version}/html/libraries/gen_contents_index ] ; then | |
255 | -# cd %{_datadir}/doc/ghc-${ghc_version}/html/libraries && [ -x "./gen_contents_index" ] && ./gen_contents_index | |
203 | +# if [ "$1" -eq 0 ] && [ -x %{_datadir}/doc/ghc-%{ghc_ver}/html/libraries/gen_contents_index ] ; then | |
204 | +# cd %{_datadir}/doc/ghc-%{ghc_ver}/html/libraries && [ -x "./gen_contents_index" ] && ./gen_contents_index | |
256 | 205 | # fi |
257 | 206 | |
258 | 207 | %endif |
259 | 208 | |
260 | 209 | |
261 | -%if %{build78} | |
262 | -%files 78 -f pkg-%{ghc_ver_78}.files | |
210 | +%files 710 -f pkg-%{ghc_ver}.files | |
263 | 211 | %defattr (-, root, bin) |
264 | 212 | |
265 | -%files prof-78 -f pkg-prof-%{ghc_ver_78}.files | |
213 | +%files prof-710 -f pkg-prof-%{ghc_ver}.files | |
266 | 214 | %defattr (-, root, bin) |
267 | 215 | |
268 | -%files doc-78 -f pkg-doc-%{ghc_ver_78}.files | |
216 | +%files doc-710 -f pkg-doc-%{ghc_ver}.files | |
269 | 217 | %defattr(-,root,bin) |
270 | 218 | %dir %attr (0755, root, sys) %{_datadir} |
271 | 219 | %dir %attr (0755, root, other) %{_docdir} |
272 | -%endif | |
273 | - | |
274 | -%if %{build710} | |
275 | -%files 710 -f pkg-%{ghc_ver_710}.files | |
276 | -%defattr (-, root, bin) | |
277 | 220 | |
278 | -%files prof-710 -f pkg-prof-%{ghc_ver_710}.files | |
279 | -%defattr (-, root, bin) | |
280 | - | |
281 | -%files doc-710 -f pkg-doc-%{ghc_ver_710}.files | |
282 | -%defattr(-,root,bin) | |
283 | -%dir %attr (0755, root, sys) %{_datadir} | |
284 | -%dir %attr (0755, root, other) %{_docdir} | |
285 | -%endif | |
286 | 221 | |
287 | 222 | %changelog |
223 | +* Sat Jan 30 2016 - Osamu Tabata<cantimerny.g@gmail.com> | |
224 | +- build only 7.10 | |
288 | 225 | * Wed Jan 24 2016 - Osamu Tabata<cantimerny.g@gmail.com> |
289 | 226 | - initial commit |