%ghc_fix_doc_perms to workaround Cabal extra-source-files perm issue
This commit is contained in:
parent
34a277046d
commit
8ed58df419
@ -128,14 +128,23 @@ install -D --mode=0644 %{pkgnamever}.conf %{buildroot}%{ghclibdir}/package.conf.
|
|||||||
fi\
|
fi\
|
||||||
%{nil}
|
%{nil}
|
||||||
|
|
||||||
|
# workaround Cabal bug causing executable extra-source-files
|
||||||
|
%ghc_fix_doc_perms\
|
||||||
|
for f in $(ls | grep -i -e "^\(ANNOUNCE\|AUTHORS\|CHANGELOG\|CHANGES\|CONTRIBUTORS\|README\|TODO\)"); do\
|
||||||
|
if [ -x $f ]; then chmod a-x $f; fi\
|
||||||
|
done\
|
||||||
|
%{nil}
|
||||||
|
|
||||||
# ghc_bin_build
|
# ghc_bin_build
|
||||||
%ghc_bin_build\
|
%ghc_bin_build\
|
||||||
|
%ghc_fix_doc_perms\
|
||||||
%undefine _enable_debug_packages\
|
%undefine _enable_debug_packages\
|
||||||
%cabal_configure\
|
%cabal_configure\
|
||||||
%cabal build %{?ghc_smp_mflags} %{?cabal_build_options}
|
%cabal build %{?ghc_smp_mflags} %{?cabal_build_options}
|
||||||
|
|
||||||
# ghc_lib_build_without_haddock [name] [version]
|
# ghc_lib_build_without_haddock [name] [version]
|
||||||
%ghc_lib_build_without_haddock()\
|
%ghc_lib_build_without_haddock()\
|
||||||
|
%ghc_fix_doc_perms\
|
||||||
%undefine _enable_debug_packages\
|
%undefine _enable_debug_packages\
|
||||||
%if 0%{?rhel} && 0%{?rhel} < 8\
|
%if 0%{?rhel} && 0%{?rhel} < 8\
|
||||||
licensedirversion=%{?2:-%2}\
|
licensedirversion=%{?2:-%2}\
|
||||||
|
Loading…
Reference in New Issue
Block a user