fixup %cabal_configure: print package build header

epel9
Jens Petersen 10 months ago
parent 60b8af07f5
commit b344bafe9d

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

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

Loading…
Cancel
Save