All this talk about floppy sizes got me curious, and when I went to look
at the info page for fdutils, I discovered that it was there, but not
installed :(. So, here's a patch for the specfile that takes care of that
and a couple other things.
--
_
_|_|_
( ) * Anton Graham
/v\ / <[EMAIL PROTECTED]>
/( )X
(m_m) GPG ID: 18F78541
Penguin Powered!
--- fdutils.spec.orig Mon May 15 14:50:07 2000
+++ fdutils.spec Mon May 15 15:21:37 2000
@@ -1,6 +1,6 @@
%define name fdutils
%define version 5.3
-%define release 9mdk
+%define release 10mdk
Summary: Programs for dealing with floppy disks
Name: %{name}
@@ -13,7 +13,7 @@
Group: System/Kernel and hardware
ExclusiveOS: Linux
Prefix: %{_prefix}
-BuildRoot: /var/tmp/%{name}-root
+BuildRoot: %{_tmppath}/%{name}-root
%description
This package contains utilities for configuring and debugging the
@@ -28,6 +28,11 @@
%changelog
+* Mon May 15 2000 Anton Graham <[EMAIL PROTECTED]> 5.3.10mdk
+- Add %post and %preun
+- Use %{_tmppath}
+- Spec-helper cleanup
+
* Sun Apr 02 2000 Jerome Martin <[EMAIL PROTECTED]> 5.3-9mdk
- Fix rpm group and spec-helper issues
@@ -71,24 +76,20 @@
make install prefix=$RPM_BUILD_ROOT/usr
-find $RPM_BUILD_ROOT/ -type 'f'|grep -E '.*[0-9]'|xargs file|grep troff\
-|cut -d: -f1|xargs bzip2 -9
-for aa in man X11R6/man local/man;do
-[ -d $RPM_BUILD_ROOT/usr/$aa ] || continue
-for i in $(find $RPM_BUILD_ROOT/usr/$aa -type 'l');do
- TO=$(/bin/ls -l $i|awk '{print $NF}')
- ln -sf $TO.bz2 $i.bz2
-done
-done
-for i in `find $RPM_BUILD_ROOT/ -type 'f' -perm '+a=x' ! -name 'lib*so*'`;do
- file $i|grep -q "not stripped" && strip $i
-done
-
-bzip2 $RPM_BUILD_ROOT/usr/info/*
cp src/mediaprm $RPM_BUILD_ROOT/etc/
%clean
rm -rf $RPM_BUILD_ROOT
+
+%post
+if [ -z "$DURING_INSTALL" ]; then
+ /sbin/install-info /usr/info/fdutils.info /usr/info/dir
+fi
+
+%preun
+if [ -z "$DURING_INSTALL" ]; then
+ /sbin/install-info --delete /usr/info/fdutils.info /usr/info/dir
+fi
%files
%defattr(644,root,root,-)