- properly delete info file on preun

This commit is contained in:
Florian La Roche 2007-07-05 08:17:40 +00:00
parent 81b709d45e
commit b83638713f

View File

@ -1,7 +1,7 @@
Summary: A utility for converting amounts from one unit to another
Name: units
Version: 1.86
Release: 5%{?dist}
Release: 6%{?dist}
Source: ftp://ftp.gnu.org/gnu/units/%{name}-%{version}.tar.gz
URL: http://www.gnu.org/software/units/units.html
License: GPL
@ -40,7 +40,7 @@ exit 0
%preun
if [ "$1" = 0 ]; then
/sbin/install-info %{_infodir}/units.info.gz --delete %{_infodir}/dir
/sbin/install-info --delete %{_infodir}/units.info.gz %{_infodir}/dir
fi
exit 0
@ -53,6 +53,9 @@ exit 0
%{_mandir}/man1/*
%changelog
* Thu Jul 05 2007 Florian La Roche <laroche@redhat.com>
- fix preun script to properly remove the info file
* Fri Mar 23 2007 Harald Hoyer <harald@redhat.com> - 1.86-5%{?dist}
- more specfile cleanups