diff --git a/parted.spec b/parted.spec index 2bddc5a..f5960e9 100644 --- a/parted.spec +++ b/parted.spec @@ -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 +- remove info files in preun + * Thu Jun 22 2006 David Cantrell - 1.7.1-7 - PED_SECTOR_SIZE -> PED_SECTOR_SIZE_DEFAULT