From 90f14946a17fb1d0b8f3d372352e702f26f46594 Mon Sep 17 00:00:00 2001 From: Jens Petersen Date: Sat, 11 Feb 2023 14:49:20 +0800 Subject: [PATCH] add %ghc_merge_filelist --- macros.ghc | 15 +++++++++++++++ 1 file changed, 15 insertions(+) diff --git a/macros.ghc b/macros.ghc index 098659a..afe6f04 100644 --- a/macros.ghc +++ b/macros.ghc @@ -209,6 +209,21 @@ fi\ done\ %{nil} +# from ghc.spec merge_filelist +%ghc_merge_filelist()\ +cat %{name}-%1.files >> %{name}-%2.files\ +cat %{name}-%1-devel.files >> %{name}-%2-devel.files\ +%if %{with haddock}\ +cat %{name}-%1-doc.files >> %{name}-%2-doc.files\ +%endif\ +%if %{with ghc_prof}\ +cat %{name}-%1-prof.files >> %{name}-%2-prof.files\ +%endif\ +if [ "%1" != "rts" ]; then\ +cp -p libraries/%1/LICENSE libraries/LICENSE.%1\ +echo "%%license libraries/LICENSE.%1" >> %{name}-%2.files\ +fi\ +%{nil} # workaround Cabal bug causing executable extra-source-files %ghc_fix_doc_perms\