]>
Commit | Line | Data |
---|---|---|
840d71f9 JB |
1 | Summary: Bitstream Type1 fonts |
2 | Summary(pl.UTF-8): Fonty Type1 Bitstream | |
6f903fb1 | 3 | Name: xorg-font-font-bitstream-type1 |
d24286e1 JB |
4 | Version: 1.0.4 |
5 | Release: 1 | |
6f903fb1 | 6 | License: MIT |
328b0758 | 7 | Group: Fonts |
d24286e1 JB |
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 | |
6f903fb1 | 12 | BuildRequires: automake |
bd31ffd3 | 13 | BuildRequires: fontconfig |
d24286e1 JB |
14 | BuildRequires: pkgconfig >= 1:0.9.0 |
15 | BuildRequires: tar >= 1:1.22 | |
6f903fb1 AM |
16 | BuildRequires: xorg-app-mkfontdir |
17 | BuildRequires: xorg-app-mkfontscale | |
a8612b41 | 18 | BuildRequires: xorg-font-font-util >= 1.2 |
d24286e1 JB |
19 | BuildRequires: xorg-util-util-macros >= 1.20 |
20 | BuildRequires: xz | |
bd31ffd3 JB |
21 | Requires(post,postun): fontpostinst |
22 | Requires: %{_fontsdir}/Type1 | |
e5dfc408 | 23 | BuildArch: noarch |
328b0758 | 24 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) |
6f903fb1 AM |
25 | |
26 | %description | |
840d71f9 | 27 | Bitstream Charter and Courier fonts in Type1 format. |
6f903fb1 | 28 | |
dd48482c | 29 | %description -l pl.UTF-8 |
840d71f9 | 30 | Fonty Bitstream Charter i Courier w formacie Type1. |
6f903fb1 AM |
31 | |
32 | %prep | |
33 | %setup -q -n font-bitstream-type1-%{version} | |
34 | ||
6f903fb1 AM |
35 | %build |
36 | %{__aclocal} | |
37 | %{__autoconf} | |
38 | %{__automake} | |
bd31ffd3 | 39 | %configure \ |
d24286e1 | 40 | %if "%{_gnu}" != "-gnux32" |
428fda86 JB |
41 | --build=%{_host} \ |
42 | --host=%{_host} \ | |
d24286e1 | 43 | %endif |
bd31ffd3 | 44 | --with-fontdir=%{_fontsdir}/Type1 |
6f903fb1 AM |
45 | |
46 | %{__make} | |
47 | ||
6f903fb1 AM |
48 | %install |
49 | rm -rf $RPM_BUILD_ROOT | |
50 | ||
51 | %{__make} install \ | |
52 | DESTDIR=$RPM_BUILD_ROOT | |
53 | ||
bd31ffd3 JB |
54 | # separate *.afm |
55 | cd $RPM_BUILD_ROOT%{_fontsdir}/Type1 | |
56 | install -d afm | |
d24286e1 | 57 | %{__mv} *.afm afm |
bd31ffd3 | 58 | sed -e '1d' fonts.scale > fonts.scale.bitstream |
d24286e1 | 59 | %{__rm} fonts.scale fonts.dir |
bd31ffd3 | 60 | |
840d71f9 JB |
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 | ||
6f903fb1 AM |
72 | %clean |
73 | rm -rf $RPM_BUILD_ROOT | |
74 | ||
bd31ffd3 JB |
75 | %post |
76 | fontpostinst Type1 | |
77 | ||
78 | %postun | |
79 | fontpostinst Type1 | |
80 | ||
6f903fb1 AM |
81 | %files |
82 | %defattr(644,root,root,755) | |
d24286e1 | 83 | %doc COPYING ChangeLog README.md |
ef523c14 JB |
84 | %{_fontsdir}/Type1/c0*.pfb |
85 | %{_fontsdir}/Type1/afm/c0*.afm | |
bd31ffd3 | 86 | %{_fontsdir}/Type1/fonts.scale.bitstream |
840d71f9 | 87 | %{_fontsdir}/Type1/Fontmap.bitstream |