|
|
|
@ -218,27 +218,9 @@ This package contains the development files.
|
|
|
|
|
%define basepkg ghc-%{pkgname}\
|
|
|
|
|
%post -n %{basepkg}-devel\
|
|
|
|
|
%ghc_pkg_recache\
|
|
|
|
|
if [ -d %{_localstatedir}/lib/rpm-state/ghc/ ]; then\
|
|
|
|
|
touch %{_localstatedir}/lib/rpm-state/ghc/haddock-reindex\
|
|
|
|
|
fi\
|
|
|
|
|
\
|
|
|
|
|
%postun -n %{basepkg}-devel\
|
|
|
|
|
%ghc_pkg_recache\
|
|
|
|
|
if [ $1 -gt 1 ] ; then\
|
|
|
|
|
if [ -d %{_localstatedir}/lib/rpm-state/ghc/ ]; then\
|
|
|
|
|
touch %{_localstatedir}/lib/rpm-state/ghc/haddock-reindex\
|
|
|
|
|
fi\
|
|
|
|
|
else\
|
|
|
|
|
cd %{ghcdocbasedir}/libraries\
|
|
|
|
|
./gen_contents_index >/dev/null\
|
|
|
|
|
fi\
|
|
|
|
|
\
|
|
|
|
|
%posttrans -n %{basepkg}-devel\
|
|
|
|
|
if [ -f %{_localstatedir}/lib/rpm-state/ghc/haddock-reindex ]; then\
|
|
|
|
|
cd %{ghcdocbasedir}/libraries\
|
|
|
|
|
./gen_contents_index >/dev/null\
|
|
|
|
|
rm %{_localstatedir}/lib/rpm-state/ghc/haddock-reindex\
|
|
|
|
|
fi
|
|
|
|
|
%ghc_pkg_recache
|
|
|
|
|
|
|
|
|
|
# ghc_package_devel [-c cdepslist] [-h pkgdepslist] [-l licensetag] [name] [version]
|
|
|
|
|
%ghc_package_devel(c:h:l:)\
|
|
|
|
|