X-Git-Url: http://git.pld-linux.org/?a=blobdiff_plain;f=fonts-Type1-urw.spec;h=00d5c6fba9d941928362a598f0b856040b043219;hb=HEAD;hp=e915552abe00a865983441e7d4fea785c2b6e7a6;hpb=94dcfa973da3ca323ea6f3addc9779597dab69cb;p=packages%2Ffonts-Type1-urw.git diff --git a/fonts-Type1-urw.spec b/fonts-Type1-urw.spec index e915552..00d5c6f 100644 --- a/fonts-Type1-urw.spec +++ b/fonts-Type1-urw.spec @@ -1,22 +1,27 @@ -%define pre pre43 Summary: Free versions of the 35 standard PostScript fonts +Summary(pl.UTF-8): Wolnodostępne wersje 35 standardowych fontów postscriptowych Name: fonts-Type1-urw -Version: 1.0.7 -Release: 0.%{pre}.2 -License: GPL +Version: 20151005 +Release: 1 +License: AGPL v3 with PS/PDF embedding exception Group: Fonts -Source0: ftp://ftp.gnome.ru/fonts/urw/release/urw-fonts-%{version}%{pre}.tar.bz2 -# Source0-md5: 97ff7f315bcf36558d7f326878551ac3 +Source0: http://downloads.ghostscript.com/public/fonts/urw-base35-%{version}.zip +# Source0-md5: e221e1dbff1f2141fad6e6b8ac80a3bf +Source1: %{name}.Fontmap +# fonts.scale from 1.0.7-pre44 (pre)release, contains traditional names (other than guessed by mkfontscale) +Source2: %{name}.scale +BuildRequires: unzip BuildRequires: xorg-app-mkfontscale Requires(post,postun): fontpostinst >= 0.1-6 Requires: %{_fontsdir}/Type1 +Provides: ghostscript-fonts-std Obsoletes: ghostscript-fonts-std -Provides: ghostscript-fonts-std = %{version}-%{release} BuildArch: noarch BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) %define t1fontsdir %{_fontsdir}/Type1 %define t1afmdir %{t1fontsdir}/afm +%define t1pfmdir %{t1fontsdir}/pfm %description Free, good quality versions of the 35 standard PostScript(TM) fonts, @@ -24,23 +29,35 @@ donated under the GPL by URW++ Design and Development GmbH. The fonts.dir file font names match the original Adobe names of the fonts (e.g., Times, Helvetica, etc.). -Install the urw-fonts package if you need free versions of standard -PostScript fonts. +%description -l pl.UTF-8 +Wolnodostępne, dobrej jakości wersje 35 standardowych fontów +postscriptowych, wydanych na licencji GPL przez URW++ Design and +Development GmbH. Plik fonts.dir zawiera nazwy fontów pasujące do +oryginalnych nazw Adobe (np. Times, Helvetica itd.). %prep %setup -q -c %build %{_bindir}/mkfontscale . +# generated file: skip count +tail -n +2 fonts.scale | LC_ALL=C sort > fonts.scale-cur.sorted +# traditional names: skip count, leave only one unique name (with single encoding) +tail -n +2 %{SOURCE2} | LC_ALL=C sort -t- -k1,13 -u > fonts.scale-trad.sorted +# apply autogenerated encodings list to each tranditional name +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.scale-trad.sorted fonts.scale-cur.sorted > fonts.scale.add +# merge all lists +LC_ALL=C sort -u fonts.scale-cur.sorted fonts.scale-trad.sorted fonts.scale.add > fonts.scale.urw %install rm -rf $RPM_BUILD_ROOT -install -d $RPM_BUILD_ROOT{%{t1fontsdir},%{t1afmdir}} +install -d $RPM_BUILD_ROOT{%{t1fontsdir},%{t1afmdir},%{t1pfmdir}} +cp -p *.pfb $RPM_BUILD_ROOT%{t1fontsdir} +cp -p *.afm $RPM_BUILD_ROOT%{t1afmdir} +cp -p *.pfm $RPM_BUILD_ROOT%{t1pfmdir} -install *.pfb $RPM_BUILD_ROOT%{t1fontsdir} -install *.afm $RPM_BUILD_ROOT%{t1afmdir} - -grep ".pfb" fonts.scale > $RPM_BUILD_ROOT%{t1fontsdir}/fonts.scale.urw +cp -p fonts.scale.urw $RPM_BUILD_ROOT%{t1fontsdir}/fonts.scale.urw +cp -p %{SOURCE1} $RPM_BUILD_ROOT%{t1fontsdir}/Fontmap.urw %clean rm -rf $RPM_BUILD_ROOT @@ -53,7 +70,36 @@ fontpostinst Type1 %files %defattr(644,root,root,755) -%doc README* +%doc LICENSE +%{t1fontsdir}/Fontmap.urw %{t1fontsdir}/fonts.scale.urw -%{t1fontsdir}/*.pfb -%{t1afmdir}/*.afm +%{t1fontsdir}/a0100??l.pfb +%{t1fontsdir}/b0180??l.pfb +%{t1fontsdir}/c0590??l.pfb +%{t1fontsdir}/d050000l.pfb +%{t1fontsdir}/n0190??l.pfb +%{t1fontsdir}/n0210??l.pfb +%{t1fontsdir}/n0220??l.pfb +%{t1fontsdir}/p0520??l.pfb +%{t1fontsdir}/s050000l.pfb +%{t1fontsdir}/z003034l.pfb +%{t1afmdir}/a0100??l.afm +%{t1afmdir}/b0180??l.afm +%{t1afmdir}/c0590??l.afm +%{t1afmdir}/d050000l.afm +%{t1afmdir}/n0190??l.afm +%{t1afmdir}/n0210??l.afm +%{t1afmdir}/n0220??l.afm +%{t1afmdir}/p0520??l.afm +%{t1afmdir}/s050000l.afm +%{t1afmdir}/z003034l.afm +%{t1pfmdir}/a0100??l.pfm +%{t1pfmdir}/b0180??l.pfm +%{t1pfmdir}/c0590??l.pfm +%{t1pfmdir}/d050000l.pfm +%{t1pfmdir}/n0190??l.pfm +%{t1pfmdir}/n0210??l.pfm +%{t1pfmdir}/n0220??l.pfm +%{t1pfmdir}/p0520??l.pfm +%{t1pfmdir}/s050000l.pfm +%{t1pfmdir}/z003034l.pfm