check if doc haddock dir exists

epel9
Jens Petersen 6 years ago
parent c0416597f5
commit a11ad68d65

@ -10,7 +10,7 @@
#%%global without_hscolour 1 #%%global without_hscolour 1
Name: ghc-rpm-macros Name: ghc-rpm-macros
Version: 2.0.1 Version: 2.0.2
Release: 1%{?dist} Release: 1%{?dist}
Summary: RPM macros for building Haskell packages for GHC Summary: RPM macros for building Haskell packages for GHC
@ -203,6 +203,9 @@ EOF
%changelog %changelog
* Tue Aug 6 2019 Jens Petersen <petersen@redhat.com> - 2.0.2-1
- check if doc haddock dir exists
* Mon Aug 5 2019 Jens Petersen <petersen@redhat.com> - 2.0.1-1 * Mon Aug 5 2019 Jens Petersen <petersen@redhat.com> - 2.0.1-1
- ghc_lib_subpackage: provide static with isa suffix - ghc_lib_subpackage: provide static with isa suffix

@ -92,7 +92,9 @@ touch %{basepkg}-devel.files %{basepkg}-prof.files\
fi\ fi\
ls %{buildroot}%{ghclibdir}/package.conf.d/%{pkgnamever}*.conf >> %{basepkg}-devel.files\ ls %{buildroot}%{ghclibdir}/package.conf.d/%{pkgnamever}*.conf >> %{basepkg}-devel.files\
%if %{with haddock}\ %if %{with haddock}\
if [ -d %{buildroot}%{ghc_html_libraries_dir}/%{pkgnamever} ]; then\
echo %{ghc_html_libraries_dir}/%{pkgnamever} >> %{basepkg}-doc.files\ echo %{ghc_html_libraries_dir}/%{pkgnamever} >> %{basepkg}-doc.files\
fi\
%endif\ %endif\
for i in %{basepkg}.files %{basepkg}-devel.files %{basepkg}-doc.files %{basepkg}-prof.files; do\ for i in %{basepkg}.files %{basepkg}-devel.files %{basepkg}-doc.files %{basepkg}-prof.files; do\
if [ -f "$i" ]; then\ if [ -f "$i" ]; then\

Loading…
Cancel
Save