add %ghc_merge_filelist
This commit is contained in:
parent
e429bfe81c
commit
90f14946a1
15
macros.ghc
15
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\
|
||||
|
Loading…
Reference in New Issue
Block a user