fix ghc_fix_doc_perms only to touch files not dirs

testcase: MissingH announcements/
epel9
Jens Petersen 4 years ago
parent ce5d10cf61
commit db0d821b08

@ -7,8 +7,8 @@
%endif %endif
Name: ghc-rpm-macros Name: ghc-rpm-macros
Version: 2.2.2 Version: 2.2.3
Release: 2%{?dist} Release: 1%{?dist}
Summary: RPM macros for building Haskell packages for GHC Summary: RPM macros for building Haskell packages for GHC
License: GPLv3+ License: GPLv3+
@ -184,6 +184,9 @@ EOF
%changelog %changelog
* Sat Jul 10 2021 Jens Petersen <petersen@redhat.com> - 2.2.3-1
- fix ghc_fix_doc_perms only to touch files not dirs
* Thu Jun 17 2021 Jens Petersen <petersen@redhat.com> - 2.2.2-2 * Thu Jun 17 2021 Jens Petersen <petersen@redhat.com> - 2.2.2-2
- haddock has not used hscolour for a long time - haddock has not used hscolour for a long time

@ -128,7 +128,7 @@ fi\
# workaround Cabal bug causing executable extra-source-files # workaround Cabal bug causing executable extra-source-files
%ghc_fix_doc_perms\ %ghc_fix_doc_perms\
for f in $(ls | grep -i -e '^\\(ANNOUNCE\\|AUTHORS\\|CHANGELOG\\|CHANGES\\|CONTRIBUTORS\\|README\\|TODO\\)'); do\ for f in $(ls | grep -i -e '^\\(ANNOUNCE\\|AUTHORS\\|CHANGELOG\\|CHANGES\\|CONTRIBUTORS\\|README\\|TODO\\)'); do\
if [ -x $f ]; then chmod a-x $f; fi\ if [ -f $f -a -x $f ]; then chmod a-x $f; fi\
done\ done\
%{nil} %{nil}

Loading…
Cancel
Save