check if doc haddock dir exists
This commit is contained in:
parent
c0416597f5
commit
a11ad68d65
@ -10,7 +10,7 @@
|
||||
#%%global without_hscolour 1
|
||||
|
||||
Name: ghc-rpm-macros
|
||||
Version: 2.0.1
|
||||
Version: 2.0.2
|
||||
Release: 1%{?dist}
|
||||
Summary: RPM macros for building Haskell packages for GHC
|
||||
|
||||
@ -203,6 +203,9 @@ EOF
|
||||
|
||||
|
||||
%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
|
||||
- ghc_lib_subpackage: provide static with isa suffix
|
||||
|
||||
|
@ -92,7 +92,9 @@ touch %{basepkg}-devel.files %{basepkg}-prof.files\
|
||||
fi\
|
||||
ls %{buildroot}%{ghclibdir}/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\
|
||||
fi\
|
||||
%endif\
|
||||
for i in %{basepkg}.files %{basepkg}-devel.files %{basepkg}-doc.files %{basepkg}-prof.files; do\
|
||||
if [ -f "$i" ]; then\
|
||||
|
Loading…
Reference in New Issue
Block a user