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