diff --git a/ghc-rpm-macros.spec b/ghc-rpm-macros.spec index b94d01d..99115e9 100644 --- a/ghc-rpm-macros.spec +++ b/ghc-rpm-macros.spec @@ -7,7 +7,7 @@ %endif Name: ghc-rpm-macros -Version: 2.3.4 +Version: 2.3.5 Release: 1%{?dist} Summary: RPM macros for building Haskell packages for GHC @@ -184,6 +184,9 @@ EOF %changelog +* Sun Dec 19 2021 Jens Petersen - 2.3.5-1 +- Hadrian haddock dirs are not versioned + * Sun Dec 19 2021 Jens Petersen - 2.3.4-1 - move Cabal_arch into ghclibplatform macro diff --git a/macros.ghc b/macros.ghc index 03ab170..982c208 100644 --- a/macros.ghc +++ b/macros.ghc @@ -101,8 +101,9 @@ touch %{basepkg}-devel.files %{basepkg}-prof.files\ fi\ ls %{buildroot}%{ghcliblib}/package.conf.d/%{pkgnamever}*.conf >> %{basepkg}-devel.files\ %if %{with haddock}\ -if [ -d %{buildroot}%{ghc_html_libraries_dir}/%{pkgnamever} ]; then\ -echo %{ghc_html_libraries_dir}/%{pkgnamever} >> %{basepkg}-doc.files\ +haddock_dir=%{ghc_html_libraries_dir}/%{?with_hadrian:%pkgname}%{!?with_hadrian:%pkgnamever}\ +if [ -d %{buildroot}$haddock_dir ]; then\ +echo $haddock_dir >> %{basepkg}-doc.files\ fi\ %endif\ for i in %{basepkg}.files %{basepkg}-devel.files %{basepkg}-doc.files %{basepkg}-prof.files; do\