fixup %cabal_configure: print package build header

epel9
Jens Petersen 10 months ago
parent 60b8af07f5
commit b344bafe9d

@ -7,7 +7,7 @@
%endif
Name: ghc-rpm-macros
Version: 2.6.7
Version: 2.6.7.1
Release: 1%{?dist}
Summary: RPM macros for building Haskell packages for GHC
@ -201,6 +201,9 @@ mkdir -p %{buildroot}%{_docdir}/ghc/html/libraries
%changelog
* Tue Feb 27 2024 Jens Petersen <petersen@redhat.com> - 2.6.7.1-1
- fixup cabal_configure: when subpackaging print subpackage header
* Tue Feb 27 2024 Jens Petersen <petersen@redhat.com> - 2.6.7-1
- fix no-prof subpackage to undefine with_ghc_prof properly
- cabal_configure: when subpackaging print subpackage header

@ -93,9 +93,10 @@ export LDFLAGS="${LDFLAGS:-%{?__global_ldflags}}"\
# configure
%cabal_configure\
%if %{defined 1}\
echo ==== Building %{1}%{?2:-%2} ====\
%endif\
%define pkgname %{?1}%{!?1:%{pkg_name}}\
%define pkgver %{?2}%{!?2:%{version}}\
%define pkgnamever %{pkgname}-%{pkgver}\
echo -e "\\n==== Build %{pkgnamever} ===="\
%ghc_set_gcc_flags\
if ! [ -f Setup.hs -o -f Setup.lhs ]; then\
# datadir hardcoded for flatpaks\

Loading…
Cancel
Save