diff --git a/ghc-rpm-macros.spec b/ghc-rpm-macros.spec index 56fb3f7..1d7e10f 100644 --- a/ghc-rpm-macros.spec +++ b/ghc-rpm-macros.spec @@ -7,8 +7,8 @@ %endif Name: ghc-rpm-macros -Version: 2.2.2 -Release: 2%{?dist} +Version: 2.2.3 +Release: 1%{?dist} Summary: RPM macros for building Haskell packages for GHC License: GPLv3+ @@ -184,6 +184,9 @@ EOF %changelog +* Sat Jul 10 2021 Jens Petersen - 2.2.3-1 +- fix ghc_fix_doc_perms only to touch files not dirs + * Thu Jun 17 2021 Jens Petersen - 2.2.2-2 - haddock has not used hscolour for a long time diff --git a/macros.ghc b/macros.ghc index 9736686..497168c 100644 --- a/macros.ghc +++ b/macros.ghc @@ -128,7 +128,7 @@ fi\ # 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\ +if [ -f $f -a -x $f ]; then chmod a-x $f; fi\ done\ %{nil}