1 Summary: IBM Courier font in Type1 format
2 Summary(pl.UTF-8): Font IBM Courier w formacie Type1
3 Name: xorg-font-font-ibm-type1
6 License: distributable (see COPYING)
8 Source0: https://xorg.freedesktop.org/releases/individual/font/font-ibm-type1-%{version}.tar.xz
9 # Source0-md5: 00f64a84b6c9886040241e081347a853
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: t1utils
16 BuildRequires: tar >= 1:1.22
17 BuildRequires: xorg-app-mkfontdir
18 BuildRequires: xorg-app-mkfontscale
19 BuildRequires: xorg-font-font-util >= 1.2
20 BuildRequires: xorg-util-util-macros >= 1.20
22 Requires(post,postun): fontpostinst
23 Requires: %{_fontsdir}/Type1
25 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
28 IBM Courier font in Type1 format.
30 %description -l pl.UTF-8
31 Font IBM Courier w formacie Type1.
34 %setup -q -n font-ibm-type1-%{version}
41 %if "%{_gnu}" != "-gnux32"
45 --with-fontdir=%{_fontsdir}/Type1
50 rm -rf $RPM_BUILD_ROOT
53 DESTDIR=$RPM_BUILD_ROOT
55 # separate *.afm, convert *.pfa to .pfb
56 cd $RPM_BUILD_ROOT%{_fontsdir}/Type1
60 t1binary $f `basename $f .pfa`.pfb
63 sed -e '1d;s/\.pfa /.pfb /' fonts.scale > fonts.scale.ibm
64 %{__rm} fonts.scale fonts.dir
66 cat > Fontmap.ibm <<EOF
68 /Courier-Bold (courb.pfb) ;
69 /Courier-BoldItalic (courbi.pfb) ;
70 /Courier-Italic (couri.pfb) ;
74 rm -rf $RPM_BUILD_ROOT
83 %defattr(644,root,root,755)
84 %doc COPYING ChangeLog README.md
85 %{_fontsdir}/Type1/cour*.pfb
86 %{_fontsdir}/Type1/afm/cour*.afm
87 %{_fontsdir}/Type1/fonts.scale.ibm
88 %{_fontsdir}/Type1/Fontmap.ibm