ghc_gen_filelists: tweak haddock_dir for ghc-9.8 short hash suffices

This commit is contained in:
Jens Petersen 2023-10-26 00:45:36 +08:00
parent 6715b2ec7b
commit 1466da90e6
2 changed files with 8 additions and 2 deletions

View File

@ -7,7 +7,7 @@
%endif
Name: ghc-rpm-macros
Version: 2.6.1
Version: 2.6.2
Release: 1%{?dist}
Summary: RPM macros for building Haskell packages for GHC
@ -185,6 +185,9 @@ mkdir -p %{buildroot}%{_docdir}/ghc/html/libraries
%changelog
* Thu Oct 26 2023 Jens Petersen <petersen@redhat.com> - 2.6.2-1
- ghc_gen_filelists: tweak haddock_dir for ghc-9.8 short hash suffices
* Tue Oct 24 2023 Jens Petersen <petersen@redhat.com> - 2.6.1-1
- ghc_gen_filelists: tweak pkgdir for ghc-9.8 short hash suffices

View File

@ -197,8 +197,11 @@ fi\
ls %{buildroot}%{ghcliblib}${subsubdir}/package.conf.d/%{pkgnamever}*.conf >> %{basepkg}-devel.files\
%if %{with haddock}\
haddock_dir=%{ghc_html_libraries_dir}/%{pkgnamever}\
%if %[v"%{ghc_version}" > v"9.8"]\
haddock_dir="${haddock_dir}-*"\
%endif\
if [ -d %{buildroot}$haddock_dir ]; then\
echo $haddock_dir >> %{basepkg}-doc.files\
echo %{buildroot}$haddock_dir >> %{basepkg}-doc.files\
%if %{with hadrian}\
# for < 9.4.1-rc1\
else\