ghc_bin_build,ghc_lib_build: define ghc_debuginfo to really enable debuginfo

epel9
Jens Petersen 2 years ago
parent 1facb30fc0
commit 4f552ad804

@ -7,7 +7,7 @@
%endif %endif
Name: ghc-rpm-macros Name: ghc-rpm-macros
Version: 2.4.1 Version: 2.4.2
Release: 1%{?dist} Release: 1%{?dist}
Summary: RPM macros for building Haskell packages for GHC Summary: RPM macros for building Haskell packages for GHC
@ -183,6 +183,9 @@ EOF
%changelog %changelog
* Tue Jul 19 2022 Jens Petersen <petersen@redhat.com> - 2.4.2-1
- ghc_bin_build,ghc_lib_build: define ghc_debuginfo to really enable debuginfo
* Sun Jul 17 2022 Jens Petersen <petersen@redhat.com> - 2.4.1-1 * Sun Jul 17 2022 Jens Petersen <petersen@redhat.com> - 2.4.1-1
- ghc_bin_build,ghc_lib_build: use ghc_debuginfo to enable debuginfo - ghc_bin_build,ghc_lib_build: use ghc_debuginfo to enable debuginfo

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

Loading…
Cancel
Save