|
|
@ -34,7 +34,7 @@ fi\
|
|
|
|
subsubdir=lib/\
|
|
|
|
subsubdir=lib/\
|
|
|
|
%endif\
|
|
|
|
%endif\
|
|
|
|
%cabal --version\
|
|
|
|
%cabal --version\
|
|
|
|
%cabal configure %{?ghc_name:--with-compiler=%{_bindir}/ghc-%{ghc_version}} --prefix=%{_prefix} --libdir=%{_libdir} --docdir=%{_ghcdocdir} --libsubdir='$compiler'/${subsubdir}'$pkgid' --datasubdir='$pkgid' --libexecsubdir='$pkgid' --ghc --dynlibdir=%{?_ghcdynlibdir}%{?!_ghcdynlibdir:%{_libdir}/ghc-%{ghc_version}} %{!?ghc_without_dynamic:--enable-executable-dynamic} %{?with_tests:--enable-tests} %{?ghc_subpackaging:--user}%{!?ghc_subpackaging:--global} --ghc-options="${CFLAGS:+$(echo ' '$CFLAGS | sed -e 's/ / -optc/g')} ${LDFLAGS:+$(echo ' '$LDFLAGS | sed -e 's/ / -optl/g')} -fhide-source-paths" %{?cabal_configure_options} $cabal_configure_extra_options
|
|
|
|
%cabal configure %{!-W:%{?ghc_name:--with-compiler=%{_bindir}/ghc-%{ghc_version}}} --prefix=%{_prefix} --libdir=%{_libdir} --docdir=%{_ghcdocdir} --libsubdir='$compiler'/${subsubdir}'$pkgid' --datasubdir='$pkgid' --libexecsubdir='$pkgid' --ghc --dynlibdir=%{?_ghcdynlibdir}%{?!_ghcdynlibdir:%{_libdir}/ghc-%{ghc_version}} %{!?ghc_without_dynamic:--enable-executable-dynamic} %{?with_tests:--enable-tests} %{?ghc_subpackaging:--user}%{!?ghc_subpackaging:--global} --ghc-options="${CFLAGS:+$(echo ' '$CFLAGS | sed -e 's/ / -optc/g')} ${LDFLAGS:+$(echo ' '$LDFLAGS | sed -e 's/ / -optl/g')} -fhide-source-paths" %{?cabal_configure_options} $cabal_configure_extra_options
|
|
|
|
|
|
|
|
|
|
|
|
# install
|
|
|
|
# install
|
|
|
|
%cabal_install %cabal copy --destdir=%{buildroot} %{?cabal_install_options}
|
|
|
|
%cabal_install %cabal copy --destdir=%{buildroot} %{?cabal_install_options}
|
|
|
@ -161,8 +161,8 @@ if [ -f $f -a -x $f ]; then chmod a-x $f; fi\
|
|
|
|
done\
|
|
|
|
done\
|
|
|
|
%{nil}
|
|
|
|
%{nil}
|
|
|
|
|
|
|
|
|
|
|
|
# ghc_bin_build
|
|
|
|
# ghc_bin_build: -W: use default ghc (ie ignore ghc_name)
|
|
|
|
%ghc_bin_build\
|
|
|
|
%ghc_bin_build(W)\
|
|
|
|
%ghc_fix_doc_perms\
|
|
|
|
%ghc_fix_doc_perms\
|
|
|
|
%{?!ghc_debuginfo:%undefine _enable_debug_packages}\
|
|
|
|
%{?!ghc_debuginfo:%undefine _enable_debug_packages}\
|
|
|
|
%cabal_configure\
|
|
|
|
%cabal_configure\
|
|
|
|