[sbcl] remove info entries on upgrade
Rex Dieter
rdieter at fedoraproject.org
Tue Feb 26 19:21:59 UTC 2013
commit 30b36290b877723fce60a81e2b01adc315c797e5
Author: Rex Dieter <rdieter at math.unl.edu>
Date: Tue Feb 26 13:21:19 2013 -0600
remove info entries on upgrade
sbcl.spec | 8 ++++++++
1 files changed, 8 insertions(+), 0 deletions(-)
---
diff --git a/sbcl.spec b/sbcl.spec
index 5402acf..ea443d0 100644
--- a/sbcl.spec
+++ b/sbcl.spec
@@ -203,6 +203,14 @@ find %{buildroot} -name .cvsignore | xargs rm -f
find %{buildroot} -name 'test-passed' | xargs rm -vf
+%if ! 0%{?docs}
+%pre
+if [ $1 -gt 0 ]; then
+/sbin/install-info --delete %{_infodir}/sbcl.info %{_infodir}/dir > /dev/null 2>&1 ||:
+/sbin/install-info --delete %{_infodir}/asdf.info %{_infodir}/dir > /dev/null 2>&1 ||:
+fi
+%endif
+
%post
%if 0%{?docs}
/sbin/install-info %{_infodir}/sbcl.info %{_infodir}/dir ||:
More information about the scm-commits
mailing list