|
|
@ -21,13 +21,11 @@ fi
|
|
|
|
# configure
|
|
|
|
# configure
|
|
|
|
%cabal_configure\
|
|
|
|
%cabal_configure\
|
|
|
|
%ghc_check_bootstrap\
|
|
|
|
%ghc_check_bootstrap\
|
|
|
|
%cabal configure --prefix=%{_prefix} --libdir=%{_libdir} --docdir=%{ghc_docdir} --libsubdir='$compiler/$pkgid' --ghc %{!?ghc_without_dynamic:--enable-executable-dynamic} %{?cabal_configure_options} $cabal_configure_extra_options
|
|
|
|
%cabal configure --prefix=%{_prefix} --libdir=%{_libdir} --docdir=%{_pkgdocdir} --libsubdir='$compiler/$pkgid' --ghc %{!?ghc_without_dynamic:--enable-executable-dynamic} %{?cabal_configure_options} $cabal_configure_extra_options
|
|
|
|
|
|
|
|
|
|
|
|
# install
|
|
|
|
# install
|
|
|
|
%cabal_install %cabal copy --destdir=%{buildroot} -v
|
|
|
|
%cabal_install %cabal copy --destdir=%{buildroot} -v
|
|
|
|
|
|
|
|
|
|
|
|
# F20 has unversioned docdir's
|
|
|
|
|
|
|
|
%ghc_docdir %{_docdir}/%{name}
|
|
|
|
|
|
|
|
# root dir for ghc docs
|
|
|
|
# root dir for ghc docs
|
|
|
|
%ghcdocbasedir %{_docdir}/ghc/html
|
|
|
|
%ghcdocbasedir %{_docdir}/ghc/html
|
|
|
|
# libraries doc dir
|
|
|
|
# libraries doc dir
|
|
|
@ -42,7 +40,7 @@ fi
|
|
|
|
%define pkgnamever %{pkgname}-%{pkgver}\
|
|
|
|
%define pkgnamever %{pkgname}-%{pkgver}\
|
|
|
|
%define basepkg ghc-%{pkgname}\
|
|
|
|
%define basepkg ghc-%{pkgname}\
|
|
|
|
%define pkgdir %{ghclibdir}/%{pkgnamever}\
|
|
|
|
%define pkgdir %{ghclibdir}/%{pkgnamever}\
|
|
|
|
%define docdir %{ghclibdocdir}/%{pkgnamever}\
|
|
|
|
%define docdir %{ghclibdocdir}/%{pkgname}\
|
|
|
|
rm -f %{basepkg}.files %{basepkg}-devel.files\
|
|
|
|
rm -f %{basepkg}.files %{basepkg}-devel.files\
|
|
|
|
if [ -d "%{buildroot}%{pkgdir}" ]; then\
|
|
|
|
if [ -d "%{buildroot}%{pkgdir}" ]; then\
|
|
|
|
echo "%dir %{pkgdir}" >> %{basepkg}.files\
|
|
|
|
echo "%dir %{pkgdir}" >> %{basepkg}.files\
|
|
|
@ -88,7 +86,7 @@ install --mode=0644 %{pkgnamever}.conf %{buildroot}%{ghclibdir}/package.conf.d\
|
|
|
|
# ghc_lib_build_without_haddock [name] [version]
|
|
|
|
# ghc_lib_build_without_haddock [name] [version]
|
|
|
|
%ghc_lib_build_without_haddock()\
|
|
|
|
%ghc_lib_build_without_haddock()\
|
|
|
|
%global debug_package %{nil}\
|
|
|
|
%global debug_package %{nil}\
|
|
|
|
%cabal_configure %{!?without_prof:-p} %{!?ghc_without_shared:--enable-shared} %{?pkg_name:--htmldir=%{ghclibdocdir}/%{pkg_name}-%{version}} %{?1:--docdir=%{_docdir}/ghc-%1 --htmldir=%{ghclibdocdir}/%1-%2} %{!?1:--global} %{?ghc_with_lib_for_ghci:--enable-library-for-ghci} --ghc-option=-O2\
|
|
|
|
%cabal_configure %{!?without_prof:-p} %{!?ghc_without_shared:--enable-shared} %{?pkg_name:--htmldir=%{ghclibdocdir}/%{pkg_name}} %{?1:--docdir=%{_docdir}/ghc-%1 --htmldir=%{ghclibdocdir}/%1} %{!?1:--global} %{?ghc_with_lib_for_ghci:--enable-library-for-ghci} --ghc-option=-O2\
|
|
|
|
%cabal build\
|
|
|
|
%cabal build\
|
|
|
|
%{nil}
|
|
|
|
%{nil}
|
|
|
|
|
|
|
|
|
|
|
|