%define name tetex-cmsuper %define version 0.3.3 %define texmfdir %{_datadir}/texmf Summary: The CM-Super font set Name: %{name} Version: %{version} Release: 1mdk License: GPL Group: Publishing Source0: ftp://ftp.dante.de/pub/tex/fonts/ps-type1/cm-super.tar.bz2 BuildRoot: %{_tmppath}/%{name}-%{version}-root BuildArch: noarch Requires: tetex tetex-dvips tetex-dvipdfm ghostscript %description The CM-Super package contains Type 1 fonts converted from METAFONT fonts and covers entire EC/TC, ECC and LH fonts (Computer Modern font families). All European and Cyrillic writings are covered. Each Type 1 font program contains ALL glyphs from the following standard LaTeX font encodings: T1, TS1, T2A, T2B, T2C, X2, and also Adobe StandardEncoding (585 glyphs per non-SC font and 468 glyphs per SC font), and could be reencoded to any of these encodings using standard dvips or pdftex facilities (the corresponding support files are also included). %prep %setup -q -n cm-super %build gzip -d afm/*.afm.gz %install rm -rf $RPM_BUILD_ROOT mkdir -p $RPM_BUILD_ROOT%{texmfdir}/fonts/{afm,type1}/public/cm-super \ $RPM_BUILD_ROOT%{texmfdir}/dvips/{base,config} \ $RPM_BUILD_ROOT%{texmfdir}/dvipdfm/config install -m 644 pfb/*.pfb \ $RPM_BUILD_ROOT%{texmfdir}/fonts/type1/public/cm-super install -m 644 afm/*.afm \ $RPM_BUILD_ROOT%{texmfdir}/fonts/afm/public/cm-super install -m 644 dvips/*.enc $RPM_BUILD_ROOT%{texmfdir}/dvips/base install -m 644 dvips/*.map $RPM_BUILD_ROOT%{texmfdir}/dvips/config install -m 644 dvipdfm/*.map $RPM_BUILD_ROOT%{texmfdir}/dvipdfm/config %clean rm -rf $RPM_BUILD_ROOT %post grep -q 'cm-super' %{texmfdir}/dvipdfm/config/config || \ cat <<EOF >> %{texmfdir}/dvipdfm/config/config % cm-super f cm-super-t1.map f cm-super-ts1.map f cm-super-t2a.map f cm-super-t2b.map f cm-super-t2c.map f cm-super-x2.map EOF grep -q 'cm-super' %{texmfdir}/dvips/config/config.generic || \ cat <<EOF >> %{texmfdir}/dvips/config/config.generic % cm-super p +cm-super-t1.map p +cm-super-ts1.map p +cm-super-t2a.map p +cm-super-t2b.map p +cm-super-t2c.map p +cm-super-x2.map EOF grep -q 'cm-super' %{texmfdir}/dvips/config/config.pdf || \ cat <<EOF >> %{texmfdir}/dvips/config/config.pdf % cm-super p +cm-super-t1.map p +cm-super-ts1.map p +cm-super-t2a.map p +cm-super-t2b.map p +cm-super-t2c.map p +cm-super-x2.map EOF grep -q 'cm-super' %{texmfdir}/dvips/config/updmap || \ cat %{texmfdir}/dvips/config/updmap | sed -e \ 's@mf_modules="\(.*\)$@mf_modules="\1\ cm-super-t1.map \ cm-super-ts1.map \ cm-super-t2a.map \ cm-super-t2b.map \ cm-super-t2c.map \ cm-super-x2.map@' > \ %{texmfdir}/dvips/config/updmap.new$$; \ chmod +x %{texmfdir}/dvips/config/updmap.new$$; \ mv -f %{texmfdir}/dvips/config/updmap.new$$ %{texmfdir}/dvips/config/updmap; \ (cd %{texmfdir}/dvips/config; ./updmap) [ -x /usr/bin/texhash ] && /usr/bin/env - /usr/bin/texhash 2> /dev/null exit 0 %postun if [ "$1" = "0" ]; then grep -v cm-super %{texmfdir}/dvipdfm/config/config > \ %{texmfdir}/dvipdfm/config/config.new$$ mv -f %{texmfdir}/dvipdfm/config/config.new$$ \ %{texmfdir}/dvipdfm/config/config grep -v cm-super %{texmfdir}/dvips/config/config.generic > \ %{texmfdir}/dvips/config/config.generic.new$$ mv -f %{texmfdir}/dvips/config/config.generic.new$$ \ %{texmfdir}/dvipdfm/config/config.generic grep -v cm-super %{texmfdir}/dvips/config/config.pdf > \ %{texmfdir}/dvips/config/config.pdf.new$$ mv -f %{texmfdir}/dvips/config/config.pdf.new$$ \ %{texmfdir}/dvipdfm/config/config.pdf grep -v cm-super %{texmfdir}/dvips/config/updmap > \ %{texmfdir}/dvips/config/updmap.new$$ mv -f %{texmfdir}/dvips/config/updmap.new$$ \ %{texmfdir}/dvips/config/updmap chmod +x %{texmfdir}/dvips/config/updmap (cd %{texmfdir}/dvips/config; ./updmap) fi [ -x /usr/bin/texhash ] && /usr/bin/env - /usr/bin/texhash 2> /dev/null exit 0 %files %defattr(-,root,root) %doc ChangeLog COPYING FAQ INSTALL README TODO %{texmfdir}/dvipdfm/config/* %{texmfdir}/dvips/base/* %{texmfdir}/dvips/config/* %{texmfdir}/fonts/afm/public/cm-super/*.afm %{texmfdir}/fonts/type1/public/cm-super/*.pfb %changelog * Fri Jul 05 2002 Giuseppe Ghibò <ghibo@mandrakesoft.com> 0.3.3-1mdk - Updated to release 0.3.3. * Fri Mar 01 2002 Giuseppe Ghibò <ghibo@mandrakesoft.com> 0.3.2-1mdk - initial release. - added %post script to update updmap (thanks for sed script to Stefan Siegel <stefan@mandrakesoft.com>).