- remove info files in preun

This commit is contained in:
Florian La Roche 2006-06-26 16:14:18 +00:00
parent 0ef2361042
commit 7ce5c7c3dc

View File

@ -4,7 +4,7 @@
Summary: The GNU disk partition manipulation program.
Name: parted
Version: 1.7.1
Release: 7
Release: 8
Source: ftp://ftp.gnu.org/gnu/%{name}/%{name}-%{version}.tar.bz2
Patch0: parted-1.7.0-fat.c.patch
Patch1: parted-1.7.0-sx8.patch
@ -80,9 +80,13 @@ rm -f $RPM_BUILD_ROOT/%{_infodir}/dir
/sbin/ldconfig
/sbin/install-info %{_infodir}/parted.info* %{_infodir}/dir || :
%postun
/sbin/ldconfig
/sbin/install-info --delete %{_infodir}/parted.info* %{_infodir}/dir || :
%preun
if [ "$1" = 0 ]; then
/sbin/install-info --delete %{_infodir}/parted.info* %{_infodir}/dir
fi
exit 0
%postun -p /sbin/ldconfig
%files -f %{name}.lang
%defattr(-,root,root)
@ -100,6 +104,9 @@ rm -f $RPM_BUILD_ROOT/%{_infodir}/dir
%{_libdir}/*.so
%changelog
* Mon Jun 26 2006 Florian La Roche <laroche@redhat.com>
- remove info files in preun
* Thu Jun 22 2006 David Cantrell <dcantrell@redhat.com> - 1.7.1-7
- PED_SECTOR_SIZE -> PED_SECTOR_SIZE_DEFAULT