/[packages]/cauldron/bitmap-fonts/current/SPECS/bitmap-fonts.spec
ViewVC logotype

Contents of /cauldron/bitmap-fonts/current/SPECS/bitmap-fonts.spec

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1260098 - (show annotations) (download)
Tue Sep 18 13:36:40 2018 UTC (6 years, 10 months ago) by umeabot
File size: 3940 byte(s)
Mageia 7 Mass Rebuild
1 %global fontname bitmap
2 %global fontconf 66-%{fontname}
3 %global common_desc \
4 The bitmap-fonts package provides a number of bitmap fonts selected\
5 from the xorg package designed for use locations such as\
6 terminals.
7
8 Name: bitmap-fonts
9 Version: 0.3
10 Release: %mkrel 24
11 License: GPLv2 and MIT and Lucida
12 Source0: bitmap-fonts-%{version}.tar.bz2
13 Source1: fixfont-3.5.tar.bz2
14 Source2: LICENSE
15 Source3: 66-bitmap-console.conf
16 Source4: 66-bitmap-fangsongti.conf
17 Source5: 66-bitmap-fixed.conf
18 Source6: 66-bitmap-lucida-typewriter.conf
19 BuildArch: noarch
20 Group: System/Fonts/True type
21 Summary: Selected set of bitmap fonts
22 BuildRequires: fontpackages-devel
23 BuildRequires: bdftopcf
24
25 %description
26 %common_desc
27
28 %package -n %{fontname}-fonts-compat
29 Summary: Compatibility files of bitmap-font families
30 Group: System/Fonts/True type
31 Provides: bitmap-fonts = %{version}-%{release}
32 Requires: %{fontname}-lucida-typewriter-fonts = %{version}-%{release}
33 Requires: %{fontname}-fangsongti-fonts = %{version}-%{release}
34 Requires: %{fontname}-console-fonts = %{version}-%{release}
35 Requires: %{fontname}-fixed-fonts = %{version}-%{release}
36 Requires: ucs-miscfixed-fonts
37 Obsoletes: bitmap-fonts < %{version}-%{release}
38
39 %description -n %{fontname}-fonts-compat
40 %common_desc
41 Meta-package for installing all font families of bitmap.
42
43 %files -n %{fontname}-fonts-compat
44
45 %package -n bitmap-lucida-typewriter-fonts
46 Summary: Selected CJK bitmap fonts for Anaconda
47 Requires: fontpackages-filesystem
48 Provides: %{name}-cjk = %{version}-%{release}
49 License: Lucida
50
51 %description -n bitmap-lucida-typewriter-fonts
52 %common_desc
53
54 %_font_pkg -n lucida-typewriter -f %{fontconf}-lucida-typewriter.conf lut*
55 %doc LU_LEGALNOTICE
56
57 %package -n bitmap-fangsongti-fonts
58 Summary: Selected CJK bitmap fonts for Anaconda
59 Requires: fontpackages-filesystem
60 Provides: %{name}-cjk = %{version}-%{release}
61 License: MIT
62
63 %description -n %{fontname}-fangsongti-fonts
64 bitmap-fonts-cjk package contains bitmap fonts used by Anaconda. They are
65 selected from the xorg packages, and the font encoding are converted from
66 native encoding to ISO10646. They are only intended to be used in Anaconda.
67
68 %_font_pkg -n fangsongti -f %{fontconf}-fangsongti.conf fangsongti*
69 %doc LICENSE
70
71 %package -n bitmap-console-fonts
72 Summary: Selected set of bitmap fonts
73 Requires: fontpackages-filesystem
74 License: GPLv2
75
76 %description -n %{fontname}-console-fonts
77 %common_desc
78
79 %_font_pkg -n console -f %{fontconf}-console.conf console8x16*
80
81
82 %package -n bitmap-fixed-fonts
83 Summary: Selected set of bitmap fonts
84 Requires: fontpackages-filesystem
85 License: GPLv2
86
87 %description -n %{fontname}-fixed-fonts
88 %common_desc
89
90 %_font_pkg -n fixed -f %{fontconf}-fixed.conf console9*
91
92 %prep
93 %setup -q -a 1
94 cp %{SOURCE2} .
95
96
97 %build
98 %{nil}
99
100 %install
101 make install DESTDIR=$RPM_BUILD_ROOT
102
103 cd fixfont-3.5
104
105 make install DESTDIR=$RPM_BUILD_ROOT
106
107 mv $RPM_BUILD_ROOT/usr/share/fonts/bitmap-fonts %{buildroot}%{_fontdir}
108
109 rm %{buildroot}%{_fontdir}/[0-9]*.pcf
110 rm %{buildroot}%{_fontdir}/console8x8.pcf
111 rm README
112
113 gzip %{buildroot}%{_fontdir}/*.pcf
114
115 install -m 0755 -d %{buildroot}%{_fontconfig_templatedir} \
116 %{buildroot}%{_fontconfig_confdir}
117
118 # Repeat for every font family
119 install -m 0644 -p %{SOURCE3} \
120 %{buildroot}%{_fontconfig_templatedir}/%{fontconf}-console.conf
121
122 install -m 0644 -p %{SOURCE4} \
123 %{buildroot}%{_fontconfig_templatedir}/%{fontconf}-fangsongti.conf
124
125 install -m 0644 -p %{SOURCE5} \
126 %{buildroot}%{_fontconfig_templatedir}/%{fontconf}-fixed.conf
127
128 install -m 0644 -p %{SOURCE6} \
129 %{buildroot}%{_fontconfig_templatedir}/%{fontconf}-lucida-typewriter.conf
130
131
132 for fconf in %{fontconf}-console.conf \
133 %{fontconf}-fangsongti.conf \
134 %{fontconf}-fixed.conf \
135 %{fontconf}-lucida-typewriter.conf ; do
136 ln -s %{_fontconfig_templatedir}/$fconf \
137 %{buildroot}%{_fontconfig_confdir}/$fconf
138 done
139
140

  ViewVC Help
Powered by ViewVC 1.1.30