disable generating ghci .o files by default; add variable cabal_configure_extra_options to cabal_configure

This commit is contained in:
Jens Petersen 2012-06-05 19:16:29 +09:00
parent 5abcaaca33
commit 88a603f537
2 changed files with 5 additions and 6 deletions

View File

@ -21,10 +21,7 @@ fi
# configure
%cabal_configure\
%ghc_check_bootstrap\
%ifnarch %{ghc_arches_with_ghci}\
%define disable_library_for_ghci --disable-library-for-ghci\
%endif\
%cabal configure --prefix=%{_prefix} --libdir=%{_libdir} --docdir=%{_docdir}/%{name}-%{version} %{?pkg_name:--htmldir=%{ghclibdocdir}/%{pkg_name}-%{version}} --libsubdir='$compiler/$pkgid' --ghc %{!?ghc_without_shared:--enable-shared} %{!?ghc_without_dynamic:--enable-executable-dynamic} %{?disable_library_for_ghci} %{?cabal_configure_options}
%cabal configure --prefix=%{_prefix} --libdir=%{_libdir} --docdir=%{_docdir}/%{name}-%{version} %{?pkg_name:--htmldir=%{ghclibdocdir}/%{pkg_name}-%{version}} --libsubdir='$compiler/$pkgid' --ghc %{!?ghc_without_shared:--enable-shared} %{!?ghc_without_dynamic:--enable-executable-dynamic} %{!?ghc_with_lib_for_ghci:--disable-library-for-ghci} %{?cabal_configure_options} $cabal_configure_extra_options
# install
%cabal_install %cabal copy --destdir=%{buildroot} -v
@ -261,7 +258,7 @@ find %{buildroot} -type f -exec sh -c "file {} | grep -q 'dynamically linked'" \
# ghc_lib_build [name] [version]
%ghc_lib_build()\
%ghc_lib_build_without_haddock()\
%ghc_lib_build_without_haddock\
%if %{undefined without_haddock}\
%cabal haddock %{!?without_hscolour:%(if [ -x %{_bindir}/HsColour ]; then echo --hyperlink-source; fi)}\
%endif\

View File

@ -61,13 +61,15 @@ EOF
%changelog
* Tue Jun 5 2012 Jens Petersen <petersen@redhat.com> - 0.91-1
- only build ghci .o library files on ghc_arches_with_ghci
- no longer build redundant ghci .o library files
- support meta packages like haskell-platform without base lib files
- make it possible not to have to use common_summary and common_description
- rename ghc_binlib_package to ghc_lib_subpackage
- add ghc_lib_build_without_haddock
- no longer drop into package dirs when subpackaging with ghc_lib_build and
ghc_lib_install
- add shell variable cabal_configure_extra_options to cabal_configure for
local configuration
* Mon Mar 19 2012 Jens Petersen <petersen@redhat.com> - 0.90-1
- use new rpm metadata hash format for ghc-7.4