1 | %define pkgname font-utils |
---|
2 | |
---|
3 | Summary: X.Org X11 font utilities |
---|
4 | Summary(ja): X.Org X11 font ユーティリティ |
---|
5 | Name: xorg-x11-%{pkgname} |
---|
6 | Version: 7.5 |
---|
7 | Release: 1%{?_dist_release} |
---|
8 | License: MIT/X11 |
---|
9 | Group: User Interface/X |
---|
10 | URL: http://www.x.org |
---|
11 | |
---|
12 | Source0: ftp://ftp.x.org/pub/individual/app/bdftopcf-1.0.2.tar.bz2 |
---|
13 | Source1: ftp://ftp.x.org/pub/individual/app/fonttosfnt-1.0.4.tar.bz2 |
---|
14 | Source2: ftp://ftp.x.org/pub/individual/app/mkfontdir-1.0.5.tar.bz2 |
---|
15 | Source3: ftp://ftp.x.org/pub/individual/app/mkfontscale-1.0.7.tar.bz2 |
---|
16 | Source4: ftp://ftp.x.org/pub/individual/font/font-util-1.1.1.tar.bz2 |
---|
17 | |
---|
18 | BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root |
---|
19 | BuildRequires: pkgconfig |
---|
20 | # xorg-x11-libXfont-devel needed for bdftopcf |
---|
21 | BuildRequires: libXfont-devel |
---|
22 | # xorg-x11-libX11-devel needed for fonttosfnt |
---|
23 | BuildRequires: libX11-devel |
---|
24 | # xorg-x11-libfontenc-devel needed for fonttosfnt, mkfontscale |
---|
25 | BuildRequires: libfontenc-devel >= 0.99.2-2 |
---|
26 | # freetype-devel needed for bdftopcf, fonttosfnt, mkfontscale |
---|
27 | BuildRequires: freetype2-devel |
---|
28 | # zlib-devel needed for bdftopcf |
---|
29 | BuildRequires: zlib-devel |
---|
30 | # xorg-x11-proto-devel is needed for mkfontscale, which includes headers |
---|
31 | # from it directly. |
---|
32 | BuildRequires: xorg-x11-proto-devel |
---|
33 | BuildRequires: autoconf |
---|
34 | |
---|
35 | Requires(pre): xorg-x11-filesystem |
---|
36 | |
---|
37 | # NOTE: This versioned pre-dependency is needed to ensure that the bugfix for |
---|
38 | # bug #173875 is installed in order for mkfontscale/mkfontdir to work |
---|
39 | # properly. It is a "pre" dep, to ensure libfontenc gets installed before |
---|
40 | # xorg-font-utils, before any fonts in an rpm upgrade or multi-transaction |
---|
41 | # set, avoiding a possible race condition. |
---|
42 | Requires(pre): libfontenc |
---|
43 | |
---|
44 | Provides: %{pkgname} |
---|
45 | Provides: XOrg-%{pkgname} = %{version} |
---|
46 | Provides: bdftopcf, fonttosfnt, mkfontdir, mkfontscale, ucs2any |
---|
47 | # NOTE: XFree86-font-utils package contains mkfontdir, mkfontscale, so this |
---|
48 | # is needed for upgrades to work properly from OS releases that had XFree86 |
---|
49 | Obsoletes: XFree86-font-utils, XOrg-font-utils |
---|
50 | # NOTE: XFree86 package used to contain bdftopcf, mkfontdir, mkfontscale so |
---|
51 | # this is needed for upgrades to work. |
---|
52 | Obsoletes: XFree86 |
---|
53 | # NOTE: The fonts/util subdir moved from xorg-x11-base-fonts to |
---|
54 | # xorg-x11-font-utils in 6.7.99.903-3 |
---|
55 | Obsoletes: XOrg-base-fonts <= 6.7.99.903-3 |
---|
56 | # NOTE: ucs2any moved from xorg-x11-tools to xorg-x11-font-utils in 6.7.99.903-3 |
---|
57 | Obsoletes: XOrg-tools <= 6.7.99.903-3 |
---|
58 | |
---|
59 | %description |
---|
60 | X.Org X11 font utilities required for font installation, conversion, |
---|
61 | and generation. |
---|
62 | |
---|
63 | %package -n bdftruncate |
---|
64 | Summary: Generate truncated BDF font from ISO 10646-1 encoded BDF font |
---|
65 | Summary(ja): Generate truncated BDF font from ISO 10646-1 encoded BDF font |
---|
66 | Group: Applications/System |
---|
67 | |
---|
68 | %description -n bdftruncate |
---|
69 | bdftruncate allows one to generate from an ISO10646-1 encoded BDF font |
---|
70 | other ISO10646-1 BDF fonts in which all characters above a threshold |
---|
71 | code value are stored unencoded. This is often desirable because the |
---|
72 | Xlib API and X11 protocol data structures used for representing font |
---|
73 | metric information are extremely inefficient when handling sparsely |
---|
74 | populated fonts. |
---|
75 | |
---|
76 | %prep |
---|
77 | %setup -q -c %{name}-%{version} -a1 -a2 -a3 -a4 |
---|
78 | |
---|
79 | %build |
---|
80 | # Build all apps |
---|
81 | { |
---|
82 | for app in bdftopcf fonttosfnt mkfontdir mkfontscale font-util ; do |
---|
83 | pushd $app-* |
---|
84 | # FIXME: We run autoconf to activate font-util-0.99.1-mapdir-use-datadir-fix.patch |
---|
85 | case $app in |
---|
86 | font-util) |
---|
87 | autoconf |
---|
88 | ;; |
---|
89 | esac |
---|
90 | %configure |
---|
91 | make |
---|
92 | popd |
---|
93 | done |
---|
94 | } |
---|
95 | |
---|
96 | %install |
---|
97 | rm -rf $RPM_BUILD_ROOT |
---|
98 | # Install all apps |
---|
99 | { |
---|
100 | for app in bdftopcf fonttosfnt mkfontdir mkfontscale font-util; do |
---|
101 | pushd $app-* |
---|
102 | make install DESTDIR=$RPM_BUILD_ROOT |
---|
103 | popd |
---|
104 | done |
---|
105 | for i in */README ; do |
---|
106 | [ -s $i ] && cp $i README-$(echo $i | sed 's/-[0-9].*//') |
---|
107 | done |
---|
108 | for i in */COPYING ; do |
---|
109 | grep -q stub $i || cp $i COPYING-$(echo $i | sed 's/-[0-9].*//') |
---|
110 | done |
---|
111 | } |
---|
112 | |
---|
113 | %clean |
---|
114 | rm -rf $RPM_BUILD_ROOT |
---|
115 | |
---|
116 | %files |
---|
117 | %defattr(-,root,root,-) |
---|
118 | %doc README-* COPYING-* |
---|
119 | %{_bindir}/bdftopcf |
---|
120 | %{_bindir}/fonttosfnt |
---|
121 | %{_bindir}/mkfontdir |
---|
122 | %{_bindir}/mkfontscale |
---|
123 | %{_bindir}/ucs2any |
---|
124 | # blech. this one should be in -filesystem |
---|
125 | %dir %{_datadir}/fonts/X11 |
---|
126 | %dir %{_datadir}/fonts/X11/util |
---|
127 | %{_datadir}/fonts/X11/util/map-* |
---|
128 | %{_datadir}/aclocal/fontutil.m4 |
---|
129 | %{_libdir}/pkgconfig/fontutil.pc |
---|
130 | %{_mandir}/man1/bdftopcf.1* |
---|
131 | %{_mandir}/man1/fonttosfnt.1* |
---|
132 | %{_mandir}/man1/mkfontdir.1* |
---|
133 | %{_mandir}/man1/mkfontscale.1* |
---|
134 | %{_mandir}/man1/ucs2any.1* |
---|
135 | |
---|
136 | %files -n bdftruncate |
---|
137 | %defattr(-,root,root,-) |
---|
138 | %{_bindir}/bdftruncate |
---|
139 | %{_mandir}/man1/bdftruncate.1* |
---|
140 | |
---|
141 | |
---|
142 | %changelog |
---|
143 | * Fri Nov 20 2009 Daisuke SUZUKI <daisuke@linux.or.jp> 7.5-1 |
---|
144 | - bdftopcf-1.0.2 |
---|
145 | - mkfontdir-1.0.5 |
---|
146 | - mkfontscale-1.0.7 |
---|
147 | - font-util-1.1.1 |
---|
148 | |
---|
149 | * Sun Dec 21 2008 Daisuke SUZUKI <daisuke@linux.or.jp> 7.4-1 |
---|
150 | - mkfontscale 1.0.6 |
---|
151 | |
---|
152 | * Sat Jul 05 2008 Daisuke SUZUKI <daisuke@linux.or.jp> 7.3-1 |
---|
153 | - fonttosfnt 1.0.4 |
---|
154 | - mkfontdir 1.0.4 |
---|
155 | - mkfontscale 1.0.5 |
---|
156 | |
---|
157 | * Sun May 18 2008 Daisuke SUZUKI <daisuke@linux.or.jp> 7.2-1 |
---|
158 | - new versioning policy |
---|
159 | |
---|
160 | * Mon Jan 14 2008 Daisuke SUZUKI <daisuke@linux.or.jp> 7.2-0vl1 |
---|
161 | - initial build for Vine Linux |
---|
162 | |
---|
163 | * Mon Dec 10 2007 Adam Jackson <ajax@redhat.com> 1:7.2-3 |
---|
164 | - Move bdftruncate (and its perl dependency) to a subpackage. |
---|
165 | - %%doc for the non-empty READMEs and non-stub COPYINGs. |
---|
166 | |
---|
167 | * Tue Aug 21 2007 Adam Jackson <ajax@redhat.com> - 1:7.2-2 |
---|
168 | - Rebuild for build id |
---|
169 | |
---|
170 | * Thu Apr 26 2007 Adam Jackson <ajax@redhat.com> 1:7.2-1 |
---|
171 | - bdftopcf 1.0.1 |
---|
172 | - Superstition bump to 7.2-1 |
---|
173 | |
---|
174 | * Mon Mar 26 2007 Adam Jackson <ajax@redhat.com> 1:7.1-5 |
---|
175 | - mkfontdir 1.0.3 |
---|
176 | |
---|
177 | * Fri Jan 05 2007 Adam Jackson <ajax@redhat.com> 1:7.1-4.fc7 |
---|
178 | - fonttosfnt 1.0.3 |
---|
179 | |
---|
180 | * Thu Aug 17 2006 Adam Jackson <ajackson@redhat.com> 1:7.1-3 |
---|
181 | - Remove X11R6 symlinks. |
---|
182 | |
---|
183 | * Fri Jul 14 2006 Adam Jackson <ajackson@redhat.com> 1:7.1-2 |
---|
184 | - Added fonttosfnt-1.0.1-freetype22-build-fix.patch to fix a build failure |
---|
185 | with new freetype 2.2. |
---|
186 | |
---|
187 | * Wed Jul 12 2006 Jesse Keating <jkeating@redhat.com> - 1:7.1-1.1 |
---|
188 | - rebuild |
---|
189 | |
---|
190 | * Wed Jun 21 2006 Mike A. Harris <mharris@redhat.com> 1:7.1-1 |
---|
191 | - Update to font-util-1.0.1 from X11R7.1 |
---|
192 | - Set package version to X11 release the tarballs are based from. |
---|
193 | |
---|
194 | * Thu Apr 26 2006 Adam Jackson <ajackson@redhat.com> 1:1.0.2-2 |
---|
195 | - Update mkfontdir |
---|
196 | |
---|
197 | * Wed Feb 22 2006 Mike A. Harris <mharris@redhat.com> 1:1.0.1-3 |
---|
198 | - Remove "Obsoletes: xorg-x11-font-utils" as the package should not obsolete |
---|
199 | itself. Leftover from the original package template it seems. (#182439) |
---|
200 | |
---|
201 | * Fri Feb 17 2006 Mike A. Harris <mharris@redhat.com> 1:1.0.1-2 |
---|
202 | - Added with_X11R6_compat macro to conditionalize inclusion of mkfontdir and |
---|
203 | mkfontscale symlinks in the old X11R6 locations, pointing to the X11R7 |
---|
204 | binaries. This will provide backward compatibilty for Fedora Core 5, however |
---|
205 | 3rd party developers and rpm package maintainers should update to using the |
---|
206 | new X11R7 locations immediately, as these compatibility links are temporary, |
---|
207 | and will be removed from a future OS release. |
---|
208 | - Remove system directories from file manifest to appease the banshees. |
---|
209 | |
---|
210 | * Fri Feb 10 2006 Jesse Keating <jkeating@redhat.com> 1:1.0.1-1.2 |
---|
211 | - bump again for double-long bug on ppc(64) |
---|
212 | |
---|
213 | * Tue Feb 07 2006 Jesse Keating <jkeating@redhat.com> 1:1.0.1-1.1 |
---|
214 | - rebuilt for new gcc4.1 snapshot and glibc changes |
---|
215 | |
---|
216 | * Wed Jan 18 2006 Mike A. Harris <mharris@redhat.com> 1:1.0.1-1 |
---|
217 | - Updated all utilities to the versions shipped in X11R7.0. |
---|
218 | |
---|
219 | * Thu Dec 15 2005 Mike A. Harris <mharris@redhat.com> 1:1.0.0-1 |
---|
220 | - Updated all utilities to version 1.0.0 from X11R7 RC4. |
---|
221 | - Updated font-util-1.0.0-mapdir-use-datadir-fix.patch to work with RC4. |
---|
222 | - Added font-util-1.0.0-autoconf-add-with-fontdir-option.patch to add a new |
---|
223 | variable "fontdir" to the fontutil.pc file which all of the font packages |
---|
224 | can autodetect and use instead of having to put manual fontdir overrides |
---|
225 | in every single rpm package. |
---|
226 | |
---|
227 | * Tue Dec 13 2005 Mike A. Harris <mharris@redhat.com> 1:0.99.2-1 |
---|
228 | - Updated bdftopcf, fonttosfnt to version 0.99.3, and mkfontdir, mkfontscale, |
---|
229 | and font-util to version 0.99.2 from X11R7 RC3. |
---|
230 | - Changed manpage dir from man1x back to man1 due to another upstream change. |
---|
231 | - Added fontutil.m4 to file manifest. |
---|
232 | |
---|
233 | * Tue Nov 22 2005 Mike A. Harris <mharris@redhat.com> 1:0.99.1-1 |
---|
234 | - Changed package version to 0.99.1 to match the upstream font-util tarball |
---|
235 | version, and added "Epoch: 1" to the package for upgrades. |
---|
236 | - Added font-util-0.99.1-mapdir-use-datadir-fix.patch to fix the font-util |
---|
237 | mapfiles data to install into datadir instead of libdir (#173943) |
---|
238 | - Added "Requires(pre): libfontenc >= 0.99.2-2" to force a version of |
---|
239 | libfontenc to be installed that fixes bug #173453, and to also force it |
---|
240 | to be installed before xorg-x11-font-utils in a multi-package rpm |
---|
241 | transaction, which will ensure that when font packages get installed |
---|
242 | during upgrades via anaconda or yum, that the right libfontenc is being |
---|
243 | used by mkfontscale/mkfontdir. |
---|
244 | - Added ">= 0.99.2-2" to BuildRequires for libfontenc, as a convenience to |
---|
245 | people rebuilding xorg-x11-font-utils, as they'll need to install the new |
---|
246 | libfontenc now anyway before they can install the font-utils package. |
---|
247 | |
---|
248 | * Mon Nov 14 2005 Jeremy Katz <katzj@redhat.com> 6.99.99.902-2 |
---|
249 | - require newer filesystem (#172610) |
---|
250 | |
---|
251 | * Wed Nov 09 2005 Mike A. Harris <mharris@redhat.com> 6.99.99.902-1 |
---|
252 | - Updated bdftopcf, fonttosfnt, mkfontdir, mkfontscale to version 0.99.1 from |
---|
253 | X11R7 RC1. |
---|
254 | |
---|
255 | * Wed Nov 09 2005 Mike A. Harris <mharris@redhat.com> 6.99.99.901-3 |
---|
256 | - Glob util/map-* files in file manifest. |
---|
257 | - Added missing "Obsoletes: xorg-x11-font-utils". |
---|
258 | - Added "BuildRequires: pkgconfig". |
---|
259 | |
---|
260 | * Sun Nov 06 2005 Mike A. Harris <mharris@redhat.com> 6.99.99.901-2 |
---|
261 | - Added font-util-0.99.1 to package, from X11R7 RC1 release, which provides |
---|
262 | ucs2any, bdftruncate. |
---|
263 | |
---|
264 | * Wed Oct 26 2005 Mike A. Harris <mharris@redhat.com> 6.99.99.901-1 |
---|
265 | - Updated bdftopcf, fonttosfnt, mkfontdir, mkfontscale to version 0.99.1 from |
---|
266 | X11R7 RC1. |
---|
267 | - Bumped package version to 6.99.99.901, the X11R7 RC1 release version tag. |
---|
268 | - Updated file manifest to to find the manpages in "man1x". |
---|
269 | |
---|
270 | * Wed Aug 24 2005 Mike A. Harris <mharris@redhat.com> 6.99.99.0-1 |
---|
271 | - Initial build. |
---|