|
|
@ -21,7 +21,7 @@ fi
|
|
|
|
# configure
|
|
|
|
# configure
|
|
|
|
%cabal_configure\
|
|
|
|
%cabal_configure\
|
|
|
|
%ghc_check_bootstrap\
|
|
|
|
%ghc_check_bootstrap\
|
|
|
|
%cabal configure --prefix=%{_prefix} --libdir=%{_libdir} --docdir=%{_docdir}/%{name}-%{version} %{?pkg_name:--htmldir=%{ghclibdocdir}/%{pkg_name}-%{version}} --libsubdir='$compiler/$pkgid' --ghc %{!?ghc_without_dynamic:--enable-executable-dynamic} %{?cabal_configure_options} $cabal_configure_extra_options
|
|
|
|
%cabal configure --prefix=%{_prefix} --libdir=%{_libdir} --docdir=%{_docdir}/%{name}-%{version} --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
|
|
|
@ -66,6 +66,8 @@ done\
|
|
|
|
# compiler version
|
|
|
|
# compiler version
|
|
|
|
%ghc_version %{!?ghc_version_override:%(ghc --numeric-version)}%{?ghc_version_override}
|
|
|
|
%ghc_version %{!?ghc_version_override:%(ghc --numeric-version)}%{?ghc_version_override}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
%ghc_compiler ghc-compiler = %{ghc_version}
|
|
|
|
|
|
|
|
|
|
|
|
# create and install package.conf file
|
|
|
|
# create and install package.conf file
|
|
|
|
# cabal_pkg_conf [name] [version]
|
|
|
|
# cabal_pkg_conf [name] [version]
|
|
|
|
%cabal_pkg_conf()\
|
|
|
|
%cabal_pkg_conf()\
|
|
|
@ -77,14 +79,6 @@ mkdir -p %{buildroot}%{ghclibdir}/package.conf.d\
|
|
|
|
install --mode=0644 %{pkgnamever}.conf %{buildroot}%{ghclibdir}/package.conf.d\
|
|
|
|
install --mode=0644 %{pkgnamever}.conf %{buildroot}%{ghclibdir}/package.conf.d\
|
|
|
|
%{nil}
|
|
|
|
%{nil}
|
|
|
|
|
|
|
|
|
|
|
|
# devel pkg basic requires
|
|
|
|
|
|
|
|
%ghc_devel_requires Requires: ghc-compiler = %{ghc_version}\
|
|
|
|
|
|
|
|
Requires(post): ghc-compiler = %{ghc_version}\
|
|
|
|
|
|
|
|
Requires(postun): ghc-compiler = %{ghc_version}\
|
|
|
|
|
|
|
|
Requires: ghc-%{?pkg_name}%{!?pkg_name:%{pkgname}} = %{?pkgver}%{!?pkgver:%{version}}-%{release}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
%ghc_pkg_recache %{_bindir}/ghc-pkg recache --no-user-package-db || :
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
# ghc_strip_dynlinked
|
|
|
|
# ghc_strip_dynlinked
|
|
|
|
%ghc_strip_dynlinked\
|
|
|
|
%ghc_strip_dynlinked\
|
|
|
|
%if %{undefined __debug_package}\
|
|
|
|
%if %{undefined __debug_package}\
|
|
|
@ -100,7 +94,7 @@ find %{buildroot} -type f -exec sh -c "file {} | grep -q 'dynamically linked'" \
|
|
|
|
# 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} %{?1:--docdir=%{_docdir}/ghc-%1-%2 --htmldir=%{ghclibdocdir}/%1-%2} %{?ghc_with_lib_for_ghci:--enable-library-for-ghci}\
|
|
|
|
%cabal_configure %{!?without_prof:-p} %{!?ghc_without_shared:--enable-shared} %{?pkg_name:--htmldir=%{ghclibdocdir}/%{pkg_name}-%{version}} %{?1:--docdir=%{_docdir}/ghc-%1-%2 --htmldir=%{ghclibdocdir}/%1-%2} %{?ghc_with_lib_for_ghci:--enable-library-for-ghci}\
|
|
|
|
%cabal build\
|
|
|
|
%cabal build\
|
|
|
|
%{nil}
|
|
|
|
%{nil}
|
|
|
|
|
|
|
|
|
|
|
@ -148,6 +142,8 @@ done\
|
|
|
|
%endif\
|
|
|
|
%endif\
|
|
|
|
%{nil}
|
|
|
|
%{nil}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
%ghc_pkg_recache %{_bindir}/ghc-pkg recache --no-user-package-db || :
|
|
|
|
|
|
|
|
|
|
|
|
# - without_hscolour, without_testsuite, and ghc_bootstrapping
|
|
|
|
# - without_hscolour, without_testsuite, and ghc_bootstrapping
|
|
|
|
# need to be set locally in the spec file
|
|
|
|
# need to be set locally in the spec file
|
|
|
|
|
|
|
|
|
|
|
|