bring back doc re-indexing in posttrans using /var/lib/rpm-state/ghc/
This commit is contained in:
parent
bda56fd9b1
commit
9e0aa2550c
@ -218,9 +218,19 @@ 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
|
||||
%ghc_pkg_recache\
|
||||
\
|
||||
%posttrans -n %{basepkg}-devel\
|
||||
if [ -f %{_localstatedir}/lib/rpm-state/ghc/haddock-reindex ]; then\
|
||||
cd %{ghcdocbasedir}/libraries\
|
||||
./gen_contents_index\
|
||||
rm %{_localstatedir}/lib/rpm-state/ghc/haddock-reindex\
|
||||
fi
|
||||
|
||||
# ghc_package_devel [-c cdepslist] [-h pkgdepslist] [-l licensetag] [name] [version]
|
||||
%ghc_package_devel(c:h:l:)\
|
||||
|
@ -6,7 +6,7 @@
|
||||
#%%global without_hscolour 1
|
||||
|
||||
Name: ghc-rpm-macros
|
||||
Version: 0.97.3
|
||||
Version: 0.98
|
||||
Release: 1%{?dist}
|
||||
Summary: Macros for building packages for GHC
|
||||
|
||||
@ -72,6 +72,10 @@ EOF
|
||||
|
||||
|
||||
%changelog
|
||||
* Mon Oct 29 2012 Jens Petersen <petersen@redhat.com> - 0.98-1
|
||||
- gen_contents_index is now run once from posttrans (#870694)
|
||||
http://fedoraproject.org/wiki/Packaging:ScriptletSnippets#Saving_state_between_scriptlets
|
||||
|
||||
* Thu Oct 25 2012 Jens Petersen <petersen@redhat.com> - 0.97.3-1
|
||||
- BR redhat-rpm-config instead of ghc-rpm-macros
|
||||
- no longer set without_hscolour in macros.ghc for bootstrapping
|
||||
|
Loading…
Reference in New Issue
Block a user