• R/O
  • SSH

contrib-spec-files: Commit

日本OpenSolaris Users Group有志による、レポジトリサーバ作成のためのspecファイル群です。


Commit MetaInfo

Revision80e42f7f32f1c829db7e81bca10c9067cd98ac1a (tree)
Time2016-01-30 08:53:07
AuthorOsamu Tabata <cantimerny.g@gmai...>
CommiterOsamu Tabata

Log Message

spec_SFEghc-conduit: build only 7.10

Change Summary

Incremental Difference

diff -r fdafaae8e82a -r 80e42f7f32f1 specs/SFEghc-conduit.spec
--- a/specs/SFEghc-conduit.spec Sun Jan 24 15:10:50 2016 +0900
+++ b/specs/SFEghc-conduit.spec Sat Jan 30 08:53:07 2016 +0900
@@ -9,11 +9,7 @@
99 %include base.inc
1010 %include usr-gnu.inc
1111
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
1713 %include yesod-version-sets.inc
1814
1915 %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 @@
3228 SUNW_BaseDir: %{_basedir}
3329 BuildRoot: %{_tmppath}/%{name}-%{version}-build
3430
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}
5935 BuildRequires: library/ghc/exceptions-710 = %{exceptions_ver}
6036 BuildRequires: library/ghc/exceptions-710/prof = %{exceptions_ver}
6137 BuildRequires: library/ghc/mmorph-710 = %{mmorph_ver}
@@ -70,8 +46,6 @@
7046 BuildRequires: library/ghc/resourcet-710/prof = %{resourcet_ver}
7147 BuildRequires: library/ghc/monad-control-710 = %{monad_control_ver}
7248 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}
7549 BuildRequires: library/ghc/transformers-base-710 = %{transformers_base_ver}
7650 BuildRequires: library/ghc/transformers-base-710/prof = %{transformers_base_ver}
7751 BuildRequires: library/ghc/void-710 = %{void_ver}
@@ -83,53 +57,38 @@
8357 @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>.
8458
8559
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}
11960 %package 710
12061 IPS_package_name: library/ghc/%{pname}-710
12162 Summary: conduit system
12263 SUNW_BaseDir: %{_basedir}
12364 %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}
12575
12676 %package prof-710
12777 IPS_package_name: library/ghc/%{pname}-710/prof
12878 Summary: %{summary} - profiling libraries
12979 SUNW_BaseDir: %{_basedir}
13080 %include default-depend.inc
131-Requires: developer/ghc-710/prof = %{ghc_ver_710}
81+Requires: developer/ghc-710/prof = %{ghc_ver}
13282 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}
13392
13493 %package doc-710
13594 IPS_package_name: library/ghc/%{pname}-710/doc
@@ -144,9 +103,6 @@
144103 @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>.
145104
146105
147-%endif
148-
149-
150106 %prep
151107 %setup -q -n %{pname}-%{version}
152108
@@ -172,60 +128,53 @@
172128 export LDFLAGS="-L%{_libdir} -R%{_libdir}"
173129 %endif
174130
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}
179135 VERBOSE=--verbose=2
180136
181137 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} \
184140 --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} \
187143 --libsubdir='$compiler/$pkgid' \
188144 --with-compiler=${GHC} --with-hc-pkg=${GHC_PKG} --with-hsc2hs=${HSC2HS} --with-haddock=${HADDOCK} \
189145 --haddock-option="--html" \
190146 --enable-library-profiling \
191147 ${VERBOSE}
192148
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
195151
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}
199155
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
202158
203159 # 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}
205161 # # Prepare lists of files for packaging
206162 # 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
215171 # 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
219175 }
220-
176+build_for
221177
222-%if %{build78}
223-build_for 7.8.3
224-%endif
225-
226-%if %{build710}
227-build_for 7.10.3
228-%endif
229178
230179 %install
231180
@@ -241,49 +190,37 @@
241190 # %post
242191 # The %install section above will only install files
243192 # 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
245194
246195 # %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
248197
249198 # %preun
250199 # # Need to unregister the package with ghc-pkg for the rebuild of the spec file to work
251200 # /usr/bin/ghc-pkg unregister --global --force %{pname}-%{version}
252201
253202 # %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
256205 # fi
257206
258207 %endif
259208
260209
261-%if %{build78}
262-%files 78 -f pkg-%{ghc_ver_78}.files
210+%files 710 -f pkg-%{ghc_ver}.files
263211 %defattr (-, root, bin)
264212
265-%files prof-78 -f pkg-prof-%{ghc_ver_78}.files
213+%files prof-710 -f pkg-prof-%{ghc_ver}.files
266214 %defattr (-, root, bin)
267215
268-%files doc-78 -f pkg-doc-%{ghc_ver_78}.files
216+%files doc-710 -f pkg-doc-%{ghc_ver}.files
269217 %defattr(-,root,bin)
270218 %dir %attr (0755, root, sys) %{_datadir}
271219 %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)
277220
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
286221
287222 %changelog
223+* Sat Jan 30 2016 - Osamu Tabata<cantimerny.g@gmail.com>
224+- build only 7.10
288225 * Wed Jan 24 2016 - Osamu Tabata<cantimerny.g@gmail.com>
289226 - initial commit
Show on old repository browser