]>
Commit | Line | Data |
---|---|---|
4fee9ffd AM |
1 | %define pre pre43 |
2 | Summary: Free versions of the 35 standard PostScript fonts | |
c5b6de13 | 3 | Summary(pl.UTF-8): Wolnodostępne wersje 35 standardowych fontów postscriptowych |
4fee9ffd AM |
4 | Name: fonts-Type1-urw |
5 | Version: 1.0.7 | |
a993476f | 6 | Release: 0.%{pre}.4 |
9e00073f | 7 | License: GPL v2 |
4fee9ffd AM |
8 | Group: Fonts |
9 | Source0: ftp://ftp.gnome.ru/fonts/urw/release/urw-fonts-%{version}%{pre}.tar.bz2 | |
10 | # Source0-md5: 97ff7f315bcf36558d7f326878551ac3 | |
9e00073f | 11 | Source1: %{name}.Fontmap |
94dcfa97 | 12 | BuildRequires: xorg-app-mkfontscale |
4fee9ffd AM |
13 | Requires(post,postun): fontpostinst >= 0.1-6 |
14 | Requires: %{_fontsdir}/Type1 | |
c5b6de13 | 15 | Provides: ghostscript-fonts-std |
bbd7e00a | 16 | Obsoletes: ghostscript-fonts-std |
4fee9ffd AM |
17 | BuildArch: noarch |
18 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) | |
19 | ||
20 | %define t1fontsdir %{_fontsdir}/Type1 | |
21 | %define t1afmdir %{t1fontsdir}/afm | |
9e00073f | 22 | %define t1pfmdir %{t1fontsdir}/pfm |
4fee9ffd AM |
23 | |
24 | %description | |
25 | Free, good quality versions of the 35 standard PostScript(TM) fonts, | |
26 | donated under the GPL by URW++ Design and Development GmbH. The | |
27 | fonts.dir file font names match the original Adobe names of the fonts | |
28 | (e.g., Times, Helvetica, etc.). | |
29 | ||
c5b6de13 JB |
30 | %description -l pl.UTF-8 |
31 | Wolnodostępne, dobrej jakości wersje 35 standardowych fontów | |
32 | postscriptowych, wydanych na licencji GPL przez URW++ Design and | |
33 | Development GmbH. Plik fonts.dir zawiera nazwy fontów pasujące do | |
34 | oryginalnych nazw Adobe (np. Times, Helvetica itd.). | |
4fee9ffd AM |
35 | |
36 | %prep | |
37 | %setup -q -c | |
38 | ||
39 | %build | |
94dcfa97 | 40 | %{_bindir}/mkfontscale . |
9e00073f JB |
41 | tail -n +2 fonts.dir > fonts.dir.raw |
42 | LC_ALL=C sort -t- -k1,13 -u fonts.dir.raw > fonts.dir.sorted | |
43 | join -j1 -t- -o1.1,1.2,1.3,1.4,1.5,1.6,1.7,1.8,1.9,1.10,1.11,1.12,1.13,2.14,2.15 fonts.dir.sorted fonts.scale > fonts.scale.add | |
44 | LC_ALL=C sort -u fonts.dir.raw fonts.scale.add > fonts.scale.urw | |
4fee9ffd AM |
45 | |
46 | %install | |
47 | rm -rf $RPM_BUILD_ROOT | |
9e00073f | 48 | install -d $RPM_BUILD_ROOT{%{t1fontsdir},%{t1afmdir},%{t1pfmdir}} |
a993476f ER |
49 | cp -p *.pfb $RPM_BUILD_ROOT%{t1fontsdir} |
50 | cp -p *.afm $RPM_BUILD_ROOT%{t1afmdir} | |
51 | cp -p *.pfm $RPM_BUILD_ROOT%{t1pfmdir} | |
4fee9ffd | 52 | |
a993476f ER |
53 | cp -p fonts.scale.urw $RPM_BUILD_ROOT%{t1fontsdir}/fonts.scale.urw |
54 | cp -p %{SOURCE1} $RPM_BUILD_ROOT%{t1fontsdir}/Fontmap.urw | |
94dcfa97 | 55 | |
4fee9ffd AM |
56 | %clean |
57 | rm -rf $RPM_BUILD_ROOT | |
58 | ||
59 | %post | |
60 | fontpostinst Type1 | |
61 | ||
62 | %postun | |
63 | fontpostinst Type1 | |
64 | ||
65 | %files | |
66 | %defattr(644,root,root,755) | |
943fed25 | 67 | %doc README* ChangeLog |
9e00073f | 68 | %{t1fontsdir}/Fontmap.urw |
94dcfa97 | 69 | %{t1fontsdir}/fonts.scale.urw |
4fee9ffd AM |
70 | %{t1fontsdir}/*.pfb |
71 | %{t1afmdir}/*.afm | |
9e00073f | 72 | %{t1pfmdir}/*.pfm |