1 Summary: Bitstream Type1 fonts
2 Summary(pl.UTF-8): Fonty Type1 Bitstream
3 Name: xorg-font-font-bitstream-type1
8 Source0: https://xorg.freedesktop.org/releases/individual/font/font-bitstream-type1-%{version}.tar.xz
9 # Source0-md5: 3974a3e7f15ed7de19e45b4139d1468c
10 URL: https://xorg.freedesktop.org/
11 BuildRequires: autoconf >= 2.60
12 BuildRequires: automake
13 BuildRequires: fontconfig
14 BuildRequires: pkgconfig >= 1:0.9.0
15 BuildRequires: tar >= 1:1.22
16 BuildRequires: xorg-app-mkfontdir
17 BuildRequires: xorg-app-mkfontscale
18 BuildRequires: xorg-font-font-util >= 1.2
19 BuildRequires: xorg-util-util-macros >= 1.20
21 Requires(post,postun): fontpostinst
22 Requires: %{_fontsdir}/Type1
24 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
27 Bitstream Charter and Courier fonts in Type1 format.
29 %description -l pl.UTF-8
30 Fonty Bitstream Charter i Courier w formacie Type1.
33 %setup -q -n font-bitstream-type1-%{version}
40 %if "%{_gnu}" != "-gnux32"
44 --with-fontdir=%{_fontsdir}/Type1
49 rm -rf $RPM_BUILD_ROOT
52 DESTDIR=$RPM_BUILD_ROOT
55 cd $RPM_BUILD_ROOT%{_fontsdir}/Type1
58 sed -e '1d' fonts.scale > fonts.scale.bitstream
59 %{__rm} fonts.scale fonts.dir
61 cat > Fontmap.bitstream <<EOF
62 /Courier10PitchBT-Roman (c0419bt_.pfb) ;
63 /Courier10PitchBT-Italic (c0582bt_.pfb) ;
64 /Courier10PitchBT-Bold (c0583bt_.pfb) ;
65 /Courier10PitchBT-BoldItalic (c0611bt_.pfb) ;
66 /CharterBT-Bold (c0632bt_.pfb) ;
67 /CharterBT-BoldItalic (c0633bt_.pfb) ;
68 /CharterBT-Roman (c0648bt_.pfb) ;
69 /CharterBT-Italic (c0649bt_.pfb) ;
73 rm -rf $RPM_BUILD_ROOT
82 %defattr(644,root,root,755)
83 %doc COPYING ChangeLog README.md
84 %{_fontsdir}/Type1/c0*.pfb
85 %{_fontsdir}/Type1/afm/c0*.afm
86 %{_fontsdir}/Type1/fonts.scale.bitstream
87 %{_fontsdir}/Type1/Fontmap.bitstream