]> git.pld-linux.org Git - packages/xorg-font-font-bitstream-type1.git/blob - xorg-font-font-bitstream-type1.spec
- updated to 1.0.4
[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.4
5 Release:        1
6 License:        MIT
7 Group:          Fonts
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
20 BuildRequires:  xz
21 Requires(post,postun):  fontpostinst
22 Requires:       %{_fontsdir}/Type1
23 BuildArch:      noarch
24 BuildRoot:      %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
25
26 %description
27 Bitstream Charter and Courier fonts in Type1 format.
28
29 %description -l pl.UTF-8
30 Fonty Bitstream Charter i Courier w formacie Type1.
31
32 %prep
33 %setup -q -n font-bitstream-type1-%{version}
34
35 %build
36 %{__aclocal}
37 %{__autoconf}
38 %{__automake}
39 %configure \
40 %if "%{_gnu}" != "-gnux32"
41         --build=%{_host} \
42         --host=%{_host} \
43 %endif
44         --with-fontdir=%{_fontsdir}/Type1
45
46 %{__make}
47
48 %install
49 rm -rf $RPM_BUILD_ROOT
50
51 %{__make} install \
52         DESTDIR=$RPM_BUILD_ROOT
53
54 # separate *.afm
55 cd $RPM_BUILD_ROOT%{_fontsdir}/Type1
56 install -d afm
57 %{__mv} *.afm afm
58 sed -e '1d' fonts.scale > fonts.scale.bitstream
59 %{__rm} fonts.scale fonts.dir
60
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) ;
70 EOF
71
72 %clean
73 rm -rf $RPM_BUILD_ROOT
74
75 %post
76 fontpostinst Type1
77
78 %postun
79 fontpostinst Type1
80
81 %files
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
This page took 0.030141 seconds and 3 git commands to generate.