]> git.pld-linux.org Git - packages/xorg-font-font-ibm-type1.git/blob - xorg-font-font-ibm-type1.spec
927970360b24d458e781c811bd8f5d3751a65a0e
[packages/xorg-font-font-ibm-type1.git] / xorg-font-font-ibm-type1.spec
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
4 Version:        1.0.3
5 Release:        2
6 License:        distributable (see COPYING)
7 Group:          Fonts
8 Source0:        http://xorg.freedesktop.org/releases/individual/font/font-ibm-type1-%{version}.tar.bz2
9 # Source0-md5:  bfb2593d2102585f45daa960f43cb3c4
10 URL:            http://xorg.freedesktop.org/
11 BuildRequires:  autoconf >= 2.57
12 BuildRequires:  automake
13 BuildRequires:  fontconfig
14 BuildRequires:  t1utils
15 BuildRequires:  xorg-app-mkfontdir
16 BuildRequires:  xorg-app-mkfontscale
17 BuildRequires:  xorg-font-font-util >= 1.2
18 BuildRequires:  xorg-util-util-macros >= 1.3
19 Requires(post,postun):  fontpostinst
20 Requires:       %{_fontsdir}/Type1
21 BuildArch:      noarch
22 BuildRoot:      %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
23
24 %description
25 IBM Courier font in Type1 format.
26
27 %description -l pl.UTF-8
28 Font IBM Courier w formacie Type1.
29
30 %prep
31 %setup -q -n font-ibm-type1-%{version}
32
33 %build
34 %{__aclocal}
35 %{__autoconf}
36 %{__automake}
37 %configure \
38         --build=%{_host} \
39         --host=%{_host} \
40         --with-fontdir=%{_fontsdir}/Type1
41
42 %{__make}
43
44 %install
45 rm -rf $RPM_BUILD_ROOT
46
47 %{__make} install \
48         DESTDIR=$RPM_BUILD_ROOT
49
50 # separate *.afm, convert *.pfa to .pfb
51 cd $RPM_BUILD_ROOT%{_fontsdir}/Type1
52 install -d afm
53 mv -f *.afm afm
54 for f in *.pfa ; do
55         t1binary $f `basename $f .pfa`.pfb
56         rm -f $f
57 done
58 sed -e '1d;s/\.pfa /.pfb /' fonts.scale > fonts.scale.ibm
59 rm -f fonts.scale fonts.dir fonts.cache-1
60
61 cat > Fontmap.ibm <<EOF
62 /Courier                                 (cour.pfb)     ;
63 /Courier-Bold                            (courb.pfb)    ;
64 /Courier-BoldItalic                      (courbi.pfb)   ;
65 /Courier-Italic                          (couri.pfb)    ;
66 EOF
67
68 %clean
69 rm -rf $RPM_BUILD_ROOT
70
71 %post
72 fontpostinst Type1
73
74 %postun
75 fontpostinst Type1
76
77 %files
78 %defattr(644,root,root,755)
79 %doc COPYING ChangeLog README
80 %{_fontsdir}/Type1/cour*.pfb
81 %{_fontsdir}/Type1/afm/cour*.afm
82 %{_fontsdir}/Type1/fonts.scale.ibm
83 %{_fontsdir}/Type1/Fontmap.ibm
This page took 0.04935 seconds and 2 git commands to generate.