Re: abiword

Kevin Cosgrove (kevinc@dOink.COM)
Mon, 26 Jul 1999 15:38:42 -0700


Shaw,

st> If you'd like to dig around in the abi/src/package stuff and
st> make this better, I welcome the patches. :)

I might do that. Of course, it's gardening season, so it
might be a while. In the mean time you have this at the
bottom of your spec file:

%clean
rm -rf /usr/share/abisuite
rm -rf /usr/doc/abisuite
rm -f /usr/bin/X11/AbiWord
rm -f /usr/bin/X11/abiword
rm -f /usr/lib/menu/abiword
rm -rf $RPM_BUILD_DIR/abisuite-%{version}
# are there better ways to get these paths?
rm -f $RPM_SOURCE_DIR/abisuite-%{version}.tar
rm -f $RPM_SOURCE_DIR/../SRPMS/abisuite-%{version}-%{release}.src.rpm
rm -f $RPM_SOURCE_DIR/../SPECS/abisuite-%{version}.spec

The lines that remove stuff in /usr are dangerous;
I'd say to remove them. If you're actually building in
/usr space, then you should consider the more standard
practice of building in $RPM_BUILD_DIR. It's also SOP to
rm -rf ${RPM_BUILD_DIR}/ in the %clean target, which has
the final result you seem to be after, w/o the danger.
The other removal lines are much better done by
'rpm --clean --rmsource <specfile>', but this won't delete
the src RPM. If you want to do that, I'd do it from your
makefile.

Thanks....

_____________________________________________________________________
Pager: (503) 202-3059 Kevin Cosgrove, P.E.
Work: (503) 627-3259 Kevin.E.Cosgrove@Tek.COM
Home: (503) 533-7722 kevinc@dOink.COM
_ , __
' ) / / )
/-< _ , __o ____ / _____ _, __ ___ . _
/ ) </_\/ <__/ / <_ (__/ (_) \_)__(_)_/ (_(_) \/_</_
_____________________________________________/|______________________
|/
Signature appears best in Courier font.



This archive was generated by hypermail 1.03b2.