diff --git a/ghc-rpm-macros.spec b/ghc-rpm-macros.spec index c3c93f9..9cc011a 100644 --- a/ghc-rpm-macros.spec +++ b/ghc-rpm-macros.spec @@ -7,8 +7,8 @@ %endif Name: ghc-rpm-macros -Version: 2.4.3 -Release: 2%{?dist} +Version: 2.4.4 +Release: 1%{?dist} Summary: RPM macros for building Haskell packages for GHC License: GPLv3+ @@ -190,6 +190,9 @@ EOF %changelog +* Tue Jul 26 2022 Jens Petersen - 2.4.4-1 +- ghc_gen_filelists: check pkg licensedir exists + * Thu Jul 21 2022 Fedora Release Engineering - 2.4.3-2 - Rebuilt for https://fedoraproject.org/wiki/Fedora_37_Mass_Rebuild diff --git a/macros.ghc b/macros.ghc index be19641..7503666 100644 --- a/macros.ghc +++ b/macros.ghc @@ -90,9 +90,11 @@ fi\ rm -f %{basepkg}.files %{basepkg}-doc.files\ touch %{basepkg}.files %{basepkg}-doc.files\ %if 0%{?1:1}\ +if [ -d "%{buildroot}%{_ghclicensedir}/%{basepkg}" ]; then\ for i in $(ls %{buildroot}%{_ghclicensedir}/%{basepkg}); do\ echo "%%license %{pkgnamever}/$i" >> %{basepkg}.files\ done\ +fi\ %endif\ for i in %{buildroot}%{?_ghcdynlibdir}%{!?_ghcdynlibdir:%{ghclibplatform}}/libHS%{pkgnamever}-*ghc%{ghc_version}.so; do\ if [ -x "$i" ]; then\