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

  ViewVC Help
Powered by ViewVC 1.1.30