]> git.pld-linux.org Git - packages/fonts-Type1-urw.git/blame - fonts-Type1-urw.spec
- updated to 20151005 (from ghostscript site)
[packages/fonts-Type1-urw.git] / fonts-Type1-urw.spec
CommitLineData
4fee9ffd 1Summary: Free versions of the 35 standard PostScript fonts
c5b6de13 2Summary(pl.UTF-8): Wolnodostępne wersje 35 standardowych fontów postscriptowych
4fee9ffd 3Name: fonts-Type1-urw
ded35cd5
JB
4Version: 20151005
5Release: 1
6License: AGPL v3 with PS/PDF embedding exception
4fee9ffd 7Group: Fonts
ded35cd5
JB
8Source0: http://downloads.ghostscript.com/public/fonts/urw-base35-%{version}.zip
9# Source0-md5: e221e1dbff1f2141fad6e6b8ac80a3bf
9e00073f 10Source1: %{name}.Fontmap
ded35cd5
JB
11# fonts.scale from 1.0.7-pre44 (pre)release, contains traditional names (other than guessed by mkfontscale)
12Source2: %{name}.scale
13BuildRequires: unzip
94dcfa97 14BuildRequires: xorg-app-mkfontscale
4fee9ffd
AM
15Requires(post,postun): fontpostinst >= 0.1-6
16Requires: %{_fontsdir}/Type1
c5b6de13 17Provides: ghostscript-fonts-std
bbd7e00a 18Obsoletes: ghostscript-fonts-std
4fee9ffd
AM
19BuildArch: noarch
20BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
21
22%define t1fontsdir %{_fontsdir}/Type1
23%define t1afmdir %{t1fontsdir}/afm
9e00073f 24%define t1pfmdir %{t1fontsdir}/pfm
4fee9ffd
AM
25
26%description
27Free, good quality versions of the 35 standard PostScript(TM) fonts,
28donated under the GPL by URW++ Design and Development GmbH. The
29fonts.dir file font names match the original Adobe names of the fonts
30(e.g., Times, Helvetica, etc.).
31
c5b6de13
JB
32%description -l pl.UTF-8
33Wolnodostępne, dobrej jakości wersje 35 standardowych fontów
34postscriptowych, wydanych na licencji GPL przez URW++ Design and
35Development GmbH. Plik fonts.dir zawiera nazwy fontów pasujące do
36oryginalnych nazw Adobe (np. Times, Helvetica itd.).
4fee9ffd
AM
37
38%prep
39%setup -q -c
40
41%build
94dcfa97 42%{_bindir}/mkfontscale .
ded35cd5
JB
43# generated file: skip count
44tail -n +2 fonts.scale | LC_ALL=C sort > fonts.scale-cur.sorted
45# traditional names: skip count, leave only one unique name (with single encoding)
46tail -n +2 %{SOURCE2} | LC_ALL=C sort -t- -k1,13 -u > fonts.scale-trad.sorted
47# apply autogenerated encodings list to each tranditional name
48join -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.scale-trad.sorted fonts.scale-cur.sorted > fonts.scale.add
49# merge all lists
50LC_ALL=C sort -u fonts.scale-cur.sorted fonts.scale-trad.sorted fonts.scale.add > fonts.scale.urw
4fee9ffd
AM
51
52%install
53rm -rf $RPM_BUILD_ROOT
9e00073f 54install -d $RPM_BUILD_ROOT{%{t1fontsdir},%{t1afmdir},%{t1pfmdir}}
a993476f
ER
55cp -p *.pfb $RPM_BUILD_ROOT%{t1fontsdir}
56cp -p *.afm $RPM_BUILD_ROOT%{t1afmdir}
57cp -p *.pfm $RPM_BUILD_ROOT%{t1pfmdir}
4fee9ffd 58
a993476f
ER
59cp -p fonts.scale.urw $RPM_BUILD_ROOT%{t1fontsdir}/fonts.scale.urw
60cp -p %{SOURCE1} $RPM_BUILD_ROOT%{t1fontsdir}/Fontmap.urw
94dcfa97 61
4fee9ffd
AM
62%clean
63rm -rf $RPM_BUILD_ROOT
64
65%post
66fontpostinst Type1
67
68%postun
69fontpostinst Type1
70
71%files
72%defattr(644,root,root,755)
ded35cd5 73%doc LICENSE
9e00073f 74%{t1fontsdir}/Fontmap.urw
94dcfa97 75%{t1fontsdir}/fonts.scale.urw
05e3ed50
JB
76%{t1fontsdir}/a0100??l.pfb
77%{t1fontsdir}/b0180??l.pfb
78%{t1fontsdir}/c0590??l.pfb
79%{t1fontsdir}/d050000l.pfb
80%{t1fontsdir}/n0190??l.pfb
81%{t1fontsdir}/n0210??l.pfb
82%{t1fontsdir}/n0220??l.pfb
83%{t1fontsdir}/p0520??l.pfb
84%{t1fontsdir}/s050000l.pfb
85%{t1fontsdir}/z003034l.pfb
86%{t1afmdir}/a0100??l.afm
87%{t1afmdir}/b0180??l.afm
88%{t1afmdir}/c0590??l.afm
89%{t1afmdir}/d050000l.afm
90%{t1afmdir}/n0190??l.afm
91%{t1afmdir}/n0210??l.afm
92%{t1afmdir}/n0220??l.afm
93%{t1afmdir}/p0520??l.afm
94%{t1afmdir}/s050000l.afm
95%{t1afmdir}/z003034l.afm
96%{t1pfmdir}/a0100??l.pfm
97%{t1pfmdir}/b0180??l.pfm
98%{t1pfmdir}/c0590??l.pfm
99%{t1pfmdir}/d050000l.pfm
100%{t1pfmdir}/n0190??l.pfm
101%{t1pfmdir}/n0210??l.pfm
102%{t1pfmdir}/n0220??l.pfm
103%{t1pfmdir}/p0520??l.pfm
104%{t1pfmdir}/s050000l.pfm
105%{t1pfmdir}/z003034l.pfm
This page took 0.062914 seconds and 4 git commands to generate.