]> git.pld-linux.org Git - packages/xorg-font-font-ibm-type1.git/blob - xorg-font-font-ibm-type1.spec
- updated to 1.0.4
[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.4
5 Release:        1
6 License:        distributable (see COPYING)
7 Group:          Fonts
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
21 BuildRequires:  xz
22 Requires(post,postun):  fontpostinst
23 Requires:       %{_fontsdir}/Type1
24 BuildArch:      noarch
25 BuildRoot:      %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
26
27 %description
28 IBM Courier font in Type1 format.
29
30 %description -l pl.UTF-8
31 Font IBM Courier w formacie Type1.
32
33 %prep
34 %setup -q -n font-ibm-type1-%{version}
35
36 %build
37 %{__aclocal}
38 %{__autoconf}
39 %{__automake}
40 %configure \
41 %if "%{_gnu}" != "-gnux32"
42         --build=%{_host} \
43         --host=%{_host} \
44 %endif
45         --with-fontdir=%{_fontsdir}/Type1
46
47 %{__make}
48
49 %install
50 rm -rf $RPM_BUILD_ROOT
51
52 %{__make} install \
53         DESTDIR=$RPM_BUILD_ROOT
54
55 # separate *.afm, convert *.pfa to .pfb
56 cd $RPM_BUILD_ROOT%{_fontsdir}/Type1
57 install -d afm
58 %{__mv} *.afm afm
59 for f in *.pfa ; do
60         t1binary $f `basename $f .pfa`.pfb
61         rm -f $f
62 done
63 sed -e '1d;s/\.pfa /.pfb /' fonts.scale > fonts.scale.ibm
64 %{__rm} fonts.scale fonts.dir
65
66 cat > Fontmap.ibm <<EOF
67 /Courier                                 (cour.pfb)     ;
68 /Courier-Bold                            (courb.pfb)    ;
69 /Courier-BoldItalic                      (courbi.pfb)   ;
70 /Courier-Italic                          (couri.pfb)    ;
71 EOF
72
73 %clean
74 rm -rf $RPM_BUILD_ROOT
75
76 %post
77 fontpostinst Type1
78
79 %postun
80 fontpostinst Type1
81
82 %files
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
This page took 0.084769 seconds and 3 git commands to generate.