Okay, I just went over the spec file for 20000310-4mdk and have a couple issues. 1) You guys forgot to remove the prereq for sed (required on my original RPM) 2) Wrong group. These fonts aren't True type. 3) (And I should have caught this on my first RPM) No handling of install within X 4) Same caveat, pcf fonts should be gzipped. Attached are diffs between current spec and what I just put together. -- _ _|_|_ ( ) * Anton Graham /v\ / <[EMAIL PROTECTED]> /( )X (m_m) GPG ID: 18F78541 Penguin Powered!
--- mozilla-fonts.spec Sat May 6 09:19:22 2000 +++ mozilla-fonts.spec.new Sat May 6 13:17:34 2000 @@ -6,9 +6,9 @@ Summary: A set fonts for Netscape and Mozilla Name: mozilla-fonts Version: 20000310 -Release: 4mdk +Release: 5mdk Copyright: Distributable -Group: System/Fonts/True type +Group: System/Fonts/X11 bitmap URL: http://fox.mit.edu/skunk/xwin/ Source: mozilla-fonts.tar.bz2 @@ -17,7 +17,7 @@ Buildroot: %{_tmppath}/%{name}-%{version}-root Buildarch: noarch Requires: XFree86-xfs -Prereq: sed, chkfontpath +Prereq: chkfontpath %description This is a complete set of three font faces (Times, Helvetica, Courier) @@ -37,7 +37,8 @@ rm -rf $RPM_BUILD_ROOT mkdir -p $RPM_BUILD_ROOT%{fontdir} for i in *.pcf; do - install -m 644 $i $RPM_BUILD_ROOT%{fontdir}; + gzip $i + install -m 644 $i.gz $RPM_BUILD_ROOT%{fontdir}; done install -m 644 fonts.alias $RPM_BUILD_ROOT%{fontdir} cd $RPM_BUILD_ROOT%{fontdir} @@ -49,6 +50,10 @@ chkfontpath --add %{fontdir} echo "Restarting xfs..." /etc/rc.d/init.d/xfs restart + if [ $DISPLAY'f' != 'f' ]; then + set fb rehash + fi + fi %postun @@ -56,6 +61,10 @@ if [ $1 = 0 ]; then chkfontpath --remove %{fontdir} /etc/rc.d/init.d/xfs restart + if [ $DISPLAY'f' != 'f' ]; then + set fb rehash + fi + fi fi @@ -68,6 +77,12 @@ %{fontdir} %changelog +* Sat May 06 2000 Anton Graham <[EMAIL PROTECTED]> 20000310-5mdk +- remove sed prereq +- gzip fonts +- reload fonts if installed in an X session +- fix group + * Sat May 06 2000 Warly <[EMAIL PROTECTED]> 20000310-4mdk - remove the xfs restart during install