add %ghc_merge_filelist

This commit is contained in:
Jens Petersen 2023-02-11 14:49:20 +08:00
parent e429bfe81c
commit 90f14946a1
1 changed files with 15 additions and 0 deletions

View File

@ -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\