diff --git a/ghc-rpm-macros.spec b/ghc-rpm-macros.spec index 3b5a588..728f056 100644 --- a/ghc-rpm-macros.spec +++ b/ghc-rpm-macros.spec @@ -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 - 2.6.7.1-1 +- fixup cabal_configure: when subpackaging print subpackage header + * Tue Feb 27 2024 Jens Petersen - 2.6.7-1 - fix no-prof subpackage to undefine with_ghc_prof properly - cabal_configure: when subpackaging print subpackage header diff --git a/macros.ghc b/macros.ghc index 2cd5398..f5ee4ae 100644 --- a/macros.ghc +++ b/macros.ghc @@ -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\