1 Summary: Collection of Free ATM Fonts
2 Summary(pl): Kolekcja Darmowych Fontów ATM
8 Source0: ftp://sunsite.unc.edu/pub/Linux/X11/fonts/%{name}-%{version}.tar.gz
9 Source1: %{name}.Fontmap
10 Requires(post,preun): fileutils
11 Requires(post,preun): textutils
13 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
15 %define _t1fontsdir %{_fontsdir}/Type1
16 %define _t1afmdir %{_t1fontsdir}/afm
17 %define _t1pfmdir %{_t1fontsdir}/pfm
20 This is a collection of 78 freely available fonts. All of them were
21 found in the CICA archives for Windows. Some of them are missing
22 special characters, some only contain capitals, some contain special
23 alphabets. Be careful and check!
26 To jest kolekcja 78 darmowych fontów. Wszystkie z nich zosta³y
27 znalezione w archiwach CICA dla Windows. Niektórym z nich brakuje
28 znaków specjalnych, inne zawieraj± wy³±cznie wielkie litery, a inne
29 znów zawieraj± tylko znaki specjalne.
35 rm -rf $RPM_BUILD_ROOT
36 install -d $RPM_BUILD_ROOT{%{_t1fontsdir},%{_t1afmdir},%{_t1pfmdir}}
38 tar xzf ans.tgz -C ans
39 install ans/*.afm $RPM_BUILD_ROOT%{_t1afmdir}
40 install ans/*.pfm $RPM_BUILD_ROOT%{_t1pfmdir}
41 install *.pfb $RPM_BUILD_ROOT%{_t1fontsdir}
42 install %{SOURCE1} $RPM_BUILD_ROOT%{_t1fontsdir}/Fontmap.%{name}
43 tail -n +2 fonts.dir > $RPM_BUILD_ROOT%{_t1fontsdir}/fonts.scale.%{name}
46 rm -rf $RPM_BUILD_ROOT
51 rm -f fonts.scale.bak Fontmap.bak
52 cat fonts.scale.* | sort -u > fonts.scale.tmp
53 cat fonts.scale.tmp | wc -l | tr -d ' ' > fonts.scale
54 cat fonts.scale.tmp >> fonts.scale
56 ln -sf fonts.scale fonts.dir
57 cat Fontmap.* > Fontmap
62 rm -f fonts.scale.bak Fontmap.bak
63 cat fonts.scale.* 2>/dev/null | sort -u > fonts.scale.tmp
64 cat fonts.scale.tmp | wc -l | tr -d ' ' > fonts.scale
65 cat fonts.scale.tmp >> fonts.scale
67 ln -sf fonts.scale fonts.dir
68 cat Fontmap.* > Fontmap 2>/dev/null
71 %defattr(644,root,root,755)