View | Details | Raw Unified
Collapse All | Expand All

(-)cm-super-fonts.spec (-1 / +20 lines)
 Lines 119-128    Link Here 
119
119
120
%prep
120
%prep
121
%setup -q -n cm-super
121
%setup -q -n cm-super
122
%__mkdir tfm
123
gunzip afm/*.afm.gz
124
125
%build
126
for enc in `ls dvips/ |sed -n -e "s/.*-\(.*\)\.enc$/\1/p"`; do
127
    for afm in afm/*.afm; do
128
	psfont=`grep "<$(echo "$afm"| sed 's@.*/@@; s@\..*$@@;')" dvips/cm-super-$enc.map|awk '{print$1}'`
129
	if [ "$psfont" = "" ]; then
130
	    echo "Font map for $afm does not exist in encoding $enc" >>tfm-autogen.log 
131
	else
132
	    afm2tfm $afm -T dvips/cm-super-$enc.enc -v $psfont $psfont.tfm
133
	    pltotf $psfont.vpl $psfont.tfm
134
	    mv $psfont.tfm tfm/$psfont.tfm
135
	    rm -f $psfont.vpl
136
	fi
137
    done
138
done
122
139
123
%install
140
%install
124
# Directories for cm-super fonts
141
# Directories for cm-super fonts
125
%__mkdir -p %buildroot/%_datadir/texmf/fonts/{type1,afm}/public
142
%__mkdir -p %buildroot/%_datadir/texmf/fonts/{type1,afm}/public
143
%__mkdir -p %buildroot/%_datadir/texmf/fonts/tfm/public/cm-super
126
%__mkdir -p %buildroot/%_datadir/texmf/dvips/{config,base}
144
%__mkdir -p %buildroot/%_datadir/texmf/dvips/{config,base}
127
%__mkdir -p %buildroot/%type1fontsdir/afms
145
%__mkdir -p %buildroot/%type1fontsdir/afms
128
%__mkdir -p %buildroot/%_sysconfdir/tex-fonts.d
146
%__mkdir -p %buildroot/%_sysconfdir/tex-fonts.d
 Lines 130-137    Link Here 
130
# Install cm-super fonts
148
# Install cm-super fonts
131
%__cp pfb/* %buildroot%type1fontsdir
149
%__cp pfb/* %buildroot%type1fontsdir
132
%__cp afm/* %buildroot%type1fontsdir/afms/
150
%__cp afm/* %buildroot%type1fontsdir/afms/
151
%__cp tfm/* %buildroot/%_datadir/texmf/fonts/tfm/public/cm-super
133
pushd %buildroot%type1fontsdir
152
pushd %buildroot%type1fontsdir
134
    gunzip afms/*.gz
135
    cd afms
153
    cd afms
136
    for i in *.afm ; do
154
    for i in *.afm ; do
137
	%__ln_s afms/$i %buildroot%type1fontsdir/$i
155
	%__ln_s afms/$i %buildroot%type1fontsdir/$i
 Lines 192-197    Link Here 
192
%files tex
210
%files tex
193
%_datadir/texmf/dvips/config/*
211
%_datadir/texmf/dvips/config/*
194
%_datadir/texmf/fonts/type1/public/cm-super
212
%_datadir/texmf/fonts/type1/public/cm-super
213
%_datadir/texmf/fonts/tfm/public/cm-super
195
%_sysconfdir/tex-fonts.d/cm-super.cfg
214
%_sysconfdir/tex-fonts.d/cm-super.cfg
196
215
197
%changelog
216
%changelog