|
|
|
@ -149,18 +149,14 @@ done\
|
|
|
|
|
# ghc_bin_build
|
|
|
|
|
%ghc_bin_build\
|
|
|
|
|
%ghc_fix_doc_perms\
|
|
|
|
|
%if %{undefined ghc_debuginfo}\
|
|
|
|
|
%undefine _enable_debug_packages\
|
|
|
|
|
%endif\
|
|
|
|
|
%{?!ghc_debuginfo:%undefine _enable_debug_packages}\
|
|
|
|
|
%cabal_configure\
|
|
|
|
|
%cabal build %{?ghc_smp_mflags} %{?cabal_build_options}
|
|
|
|
|
|
|
|
|
|
# ghc_lib_build_without_haddock [name] [version]
|
|
|
|
|
%ghc_lib_build_without_haddock()\
|
|
|
|
|
%ghc_fix_doc_perms\
|
|
|
|
|
%if %{undefined ghc_debuginfo}\
|
|
|
|
|
%undefine _enable_debug_packages\
|
|
|
|
|
%endif\
|
|
|
|
|
%{?!ghc_debuginfo:%undefine _enable_debug_packages}\
|
|
|
|
|
%if 0%{?rhel} && 0%{?rhel} < 8\
|
|
|
|
|
licensedirversion=%{?2:-%2}\
|
|
|
|
|
%endif\
|
|
|
|
|