source: projects/specs/branches/6/f/freetype2/freetype2-vl.spec @ 5166

Revision 5166, 15.2 KB checked in by iwamoto, 12 years ago (diff)

freetype2: CVE-2011-3256, 3438 fixes

Line 
1%define build_compat32 %{?_with_compat32:1}%{!?_with_compat32:0}
2
3%bcond_with subpixel_rendering
4
5Summary: FreeType 2 library
6Summary(ja): FreeType 2 ライブラリ
7Name: freetype2
8Version: 2.4.4
9Release: 4%{?_dist_release}
10License: GPL/FTL dual license
11URL: http://www.freetype.org/
12Group: System Environment/Libraries
13
14Source: freetype-%{version}.tar.bz2
15Source1: freetype-doc-%{version}.tar.bz2
16Source2: ft2demos-%{version}.tar.bz2
17
18# enable subpixel rendering
19Patch21: freetype-2.3.0-enable-spr.patch
20# Enable otvalid and gxvalid modules
21Patch46:  freetype-2.2.1-enable-valid.patch
22# Fix multilib conflicts
23Patch88:  freetype-multilib.patch
24# Fix crash https://bugs.freedesktop.org/show_bug.cgi?id=6841
25Patch89:  freetype-2.2.1-memcpy-fix.patch
26
27Patch200: freetype-2.1.10-slight-embolden.patch
28Patch201: freetype-2.4.4-x86_64-invalid_outline.patch
29
30# security fixes
31Patch300: freetype-2.4.4_CVE-2011-0226.patch
32Patch310: freetype-2.4.4_CVE-2011-3256.patch
33Patch320: freetype-2.4.4-CVE-2011-3439.patch
34
35BuildRoot: %{_tmppath}/%{name}-%{version}-root
36
37BuildRequires: zlib-devel
38BuildRequires: libX11-devel
39Requires: zlib
40
41Vendor: Project Vine
42Distribution: Vine Linux
43
44%description
45The FreeType project is a team of volunteers who develop free,
46portable and high-quality software solutions for digital typography.
47They specifically target embedded systems and focus on bringing small,
48efficient and ubiquitous products.
49
50The FreeType 2 library is their new software font engine. It has been
51designed to provide the following important features:
52 * A universal and simple API to manage font files
53 * Support for several font formats through loadable modules
54 * High-quality anti-aliasing
55 * High portability & performance
56
57Supported font formats include:
58 * TrueType files (.ttf) and collections (.ttc)
59 * Type 1 font files both in ASCII (.pfa) or binary (.pfb) format
60 * Type 1 Multiple Master fonts. The FreeType 2 API also provides
61   routines to manage design instances easily
62 * Type 1 CID-keyed fonts
63 * OpenType/CFF (.otf) fonts
64 * CFF/Type 2 fonts
65 * Adobe CEF fonts (.cef), used to embed fonts in SVG documents with
66   the Adobe SVG viewer plugin.
67 * Windows FNT/FON bitmap fonts
68
69This package contains the files needed to run programs that use the
70FreeType 2 library.
71
72
73%package demos
74Summary: A collection of FreeType demos
75Group: System Environment/Libraries
76Requires: %{name} = %{version}-%{release}
77Obsoletes: freetype-utils < 2.0
78Provides: freetype-utils = %{version}
79
80%description demos
81A collection of FreeType demos.
82
83
84%package -n compat32-%{name}
85Summary: FreeType 2 library
86Summary(ja): FreeType 2 ライブラリ
87Group: System Environment/Libraries
88Requires:       %{name} = %{version}-%{release}
89
90
91%description -n compat32-%{name}
92The FreeType project is a team of volunteers who develop free,
93portable and high-quality software solutions for digital typography.
94They specifically target embedded systems and focus on bringing small,
95efficient and ubiquitous products.
96
97The FreeType 2 library is their new software font engine. It has been
98designed to provide the following important features:
99 * A universal and simple API to manage font files
100 * Support for several font formats through loadable modules
101 * High-quality anti-aliasing
102 * High portability & performance
103
104Supported font formats include:
105 * TrueType files (.ttf) and collections (.ttc)
106 * Type 1 font files both in ASCII (.pfa) or binary (.pfb) format
107 * Type 1 Multiple Master fonts. The FreeType 2 API also provides
108   routines to manage design instances easily
109 * Type 1 CID-keyed fonts
110 * OpenType/CFF (.otf) fonts
111 * CFF/Type 2 fonts
112 * Adobe CEF fonts (.cef), used to embed fonts in SVG documents with
113   the Adobe SVG viewer plugin.
114 * Windows FNT/FON bitmap fonts
115
116This package contains the files needed to run programs that use the
117FreeType 2 library.
118
119
120%package devel
121Summary:        Development files for FreeType 2 library
122Summary(ja):    FreeType 2 ライブラリの開発ファイル
123Group:          Development/Libraries
124Requires:       %{name} = %{version}-%{release}
125Requires:       zlib-devel
126
127
128%description devel
129The FreeType project is a team of volunteers who develop free,
130portable and high-quality software solutions for digital typography.
131They specifically target embedded systems and focus on bringing small,
132efficient and ubiquitous products.
133
134The FreeType 2 library is their new software font engine. It has been
135designed to provide the following important features:
136 * A universal and simple API to manage font files
137 * Support for several font formats through loadable modules
138 * High-quality anti-aliasing
139 * High portability & performance
140
141Supported font formats include:
142 * TrueType files (.ttf) and collections (.ttc)
143 * Type 1 font files both in ASCII (.pfa) or binary (.pfb) format
144 * Type 1 Multiple Master fonts. The FreeType 2 API also provides
145   routines to manage design instances easily
146 * Type 1 CID-keyed fonts
147 * OpenType/CFF (.otf) fonts
148 * CFF/Type 2 fonts
149 * Adobe CEF fonts (.cef), used to embed fonts in SVG documents with
150   the Adobe SVG viewer plugin.
151 * Windows FNT/FON bitmap fonts
152
153This package contains all supplementary files (static library, headers
154and documentation) you need to develop your own programs using the
155FreeType 2 library.
156
157
158%package -n compat32-%{name}-devel
159Summary:        FreeType 2 library
160Summary(ja):    FreeType 2 ライブラリ
161Group:          Development/Libraries
162Requires:       compat32-%{name} = %{version}-%{release}
163Requires:       %{name}-devel    = %{version}-%{release}
164Requires:       compat32-zlib-devel
165
166%description -n compat32-%{name}-devel
167The FreeType project is a team of volunteers who develop free,
168portable and high-quality software solutions for digital typography.
169They specifically target embedded systems and focus on bringing small,
170efficient and ubiquitous products.
171
172The FreeType 2 library is their new software font engine. It has been
173designed to provide the following important features:
174 * A universal and simple API to manage font files
175 * Support for several font formats through loadable modules
176 * High-quality anti-aliasing
177 * High portability & performance
178
179Supported font formats include:
180 * TrueType files (.ttf) and collections (.ttc)
181 * Type 1 font files both in ASCII (.pfa) or binary (.pfb) format
182 * Type 1 Multiple Master fonts. The FreeType 2 API also provides
183   routines to manage design instances easily
184 * Type 1 CID-keyed fonts
185 * OpenType/CFF (.otf) fonts
186 * CFF/Type 2 fonts
187 * Adobe CEF fonts (.cef), used to embed fonts in SVG documents with
188   the Adobe SVG viewer plugin.
189 * Windows FNT/FON bitmap fonts
190
191This package contains all supplementary files (static library, headers
192and documentation) you need to develop your own programs using the
193FreeType 2 library.
194
195%package static
196Summary:        Static ilbrary for FreeType 2
197Summary(ja):    FreeType 2 のスタティックライブラリ
198Group:          Development/Libraries
199Requires:       %{name}-devel = %{version}-%{release}
200
201%description static
202This package contains the static library for %{name}
203
204%prep
205%setup -q -n freetype-%{version} -b 1 -a 2
206
207%if %{with subpixel_rendering}
208%patch21 -p1 -b .enable-spr
209%endif
210
211%patch46 -p1 -b .enable-valid
212%patch88 -p1 -b .multilib
213%patch89 -p1 -b .memcpy
214
215%patch200 -p1 -b .slight-embolden
216
217%ifarch x86_64
218%patch201 -p1 -b .invalid_outline
219%endif
220
221# security fixes
222%patch300 -p1 -b .CVE-2011-0226
223%patch310 -p1 -b .CVE-2011-3256
224%patch320 -p1 -b .CVE-2011-3439
225
226%build
227%configure
228%__make %{?_smp_mflags}
229
230# Build demos
231pushd ft2demos-%{version}
232make TOP_DIR=".."
233popd
234
235
236%install
237[ -n "$RPM_BUILD_ROOT" -a "$RPM_BUILD_ROOT" != / ] && rm -rf $RPM_BUILD_ROOT
238
239%makeinstall gnulocaledir=$RPM_BUILD_ROOT%{_datadir}/locale
240
241for ftdemo in ftbench ftdump ftlint ftvalid ftdiff ftgamma ftgrid ftmulti ftstring ftview
242do
243  builds/unix/libtool --mode=install install -m 755 ft2demos-%{version}/bin/$ftdemo $RPM_BUILD_ROOT/%{_bindir}
244done
245
246## remove unuse files
247rm -f $RPM_BUILD_ROOT%{_libdir}/*.la
248
249
250%clean
251[ -n "$RPM_BUILD_ROOT" -a "$RPM_BUILD_ROOT" != / ] && rm -rf $RPM_BUILD_ROOT
252
253
254%post -p /sbin/ldconfig
255
256%postun -p /sbin/ldconfig
257
258%post -n compat32-%{name} -p /sbin/ldconfig
259
260%postun -n compat32-%{name} -p /sbin/ldconfig
261
262%files
263%defattr(-, root, root)
264%{_libdir}/*.so*
265%doc docs
266
267%files devel
268%defattr(-, root, root)
269%{_bindir}/freetype-config
270%{_libdir}/*.so
271%{_libdir}/pkgconfig/*.pc
272%{_includedir}/*
273%{_datadir}/aclocal/freetype2.m4
274
275%files static
276%defattr(-, root, root)
277%{_libdir}/*.a
278
279%files demos
280%defattr(-,root,root)
281%{_bindir}/ftbench
282%{_bindir}/ftdump
283%{_bindir}/ftlint
284%{_bindir}/ftvalid
285%{_bindir}/ftdiff
286%{_bindir}/ftgamma
287%{_bindir}/ftgrid
288%{_bindir}/ftmulti
289%{_bindir}/ftstring
290%{_bindir}/ftview
291
292%if %{build_compat32}
293%files -n compat32-%{name}
294%defattr(-, root, root)
295%{_libdir}/*.so*
296
297%files -n compat32-%{name}-devel
298%defattr(-, root, root)
299%{_libdir}/*.so
300%{_libdir}/pkgconfig/*.pc
301%endif
302
303%changelog
304* Tue Nov 22 2011 Satoshi IWAMOTO <satoshi.iwamoto@nifty.ne.jp> 2.4.4-4
305- add patch320 for fix CVE-2011-3439 (CID)
306
307* Wed Oct 26 2011 Satoshi IWAMOTO <satoshi.iwamoto@nifty.ne.jp> 2.4.4-3
308- add patch310 for fix CVE-2011-3256 (glyph handling)
309
310* Tue Aug 16 2011 Satoshi IWAMOTO <satoshi.iwamoto@nifty.ne.jp> 2.4.4-2
311- add patch300 for fix CVE-2011-0226 (t1decode)
312- add Vendor/Distri Tags
313
314* Fri Dec 03 2010 Daisuke SUZUKI <daisuke@linux.or.jp> 2.4.4-1
315- new upstream release
316
317* Tue Sep 21 2010 IWAI, Masaharu <iwai@alib.jp> 2.4.2-2
318- build with rpm-4.8.1-1 for pkg-config file
319
320* Mon Aug 16 2010 Daisuke SUZUKI <daisuke@linux.or.jp> 2.4.2-1
321- new upstream release
322
323* Tue Jul 27 2010 Daisuke SUZUKI <daisuke@linux.or.jp> 2.4.1-1
324- new upstream release
325
326* Thu Jul 15 2010 Daisuke SUZUKI <daisuke@linux.or.jp> 2.4.0-1
327- new upstream release
328
329* Sun May 09 2010 Daisuke SUZUKI <daisuke@linux.or.jp> 2.3.12-2
330- enable bytecode interpreter, the patent is now expired.
331
332* Tue Feb 16 2010 Daisuke SUZUKI <daisuke@linux.or.jp> 2.3.12-1
333- new upstream release
334
335* Tue Oct 13 2009 Daisuke SUZUKI <daisuke@linux.or.jp> 2.3.11-1
336- new upstream release
337- update patch201
338
339* Sun Aug 16 2009 Daisuke SUZUKI <daisuke@linux.or.jp> 2.3.9-6
340- rebuild with gpg signing
341
342* Wed Jul 29 2009 Tomohiro "Tomo-p" KATO <tomop@teamgedoh.net> 2.3.9-5
343- fixed "Invalid Outline" error on x86_64.
344
345* Sun May 03 2009 NAKAMURA Kenta <kenta@vinelinux.org> 2.3.9-4
346- removed %%if !%%{build_compat32} case condition
347- removed CC='gcc -m32' before make setup
348
349* Sun Apr 05 2009 Daisuke SUZUKI <daisuke@linux.or.jp> 2.3.9-3
350- enable Patch200 again
351
352* Fri Mar 27 2009 Daisuke SUZUKI <daisuke@linux.or.jp> 2.3.9-2
353- split static library to freetype2-static
354  - needed by tuxonice-userui
355- disable Patch200
356
357* Sat Mar 14 2009 Daisuke SUZUKI <daisuke@linux.or.jp> 2.3.9-1
358- new upstream release
359
360* Wed Jan 14 2009 Daisuke SUZUKI <daisuke@linux.or.jp> 2.3.8-1
361- new upstream release
362
363* Sun Oct 12 2008 Shu KONNO <owa@bg.wakwak.com> 2.3.7-2
364- removed *.la
365
366* Wed Jul 02 2008 Daisuke SUZUKI <daisuke@linux.or.jp> 2.3.7-1
367- new upstream release
368
369* Wed Jun 11 2008 Daisuke SUZUKI <daisuke@linux.or.jp> 2.3.6-1
370- new upstream release
371
372* Sun May 11 2008 Daisuke SUZUKI <daisuke@linux.or.jp> 2.3.5-3
373- add Provides: freetype-utils = %%{version} to freetype2-demos
374
375* Thu Apr 17 2008 Daisuke SUZUKI <daisuke@linux.or.jp> 2.3.5-2
376- remove %%{_bindir}/* from -devel
377
378* Fri Mar 21 2008 Daisuke SUZUKI <daisuke@linux.or.jp> 2.3.5-1
379- new upstream release
380- add freetype2-demos
381  - Obsoletes: freetype-utils
382
383* Wed May 23 2007 AKIYAMA Kazuhito <akiyama@yb3.so-net.ne.jp> 2.3.4-0vl2
384- add Patch201 (CVE-2007-2754)
385
386* Sun May 20 2007 Daisuke SUZUKI <daisuke@linux.or.jp> 2.3.4-0vl1
387- new upstream release
388
389* Thu Aug 17 2006 KAZUKI SHIMURA <kazuki@ma.ccnw.ne.jp> 2.1.10-0vl8
390- add Requires: zlib-devel (devel package)
391- compat32
392  - add BuildRequires: compat32-zlib-devel
393  - add Requires: compat32-zlib-devel (devel package)
394
395* Thu Jul 20 2006 Daisuke SUZUKI <daisuke@linux.or.jp> 2.1.10-0vl7
396- add Patch200 to adjust synthetic-embold font weight.
397  - default value is too heavy...
398
399* Sat Jun 17 2006 Daisuke SUZUKI <daisuke@linux.or.jp> 2.1.10-0vl6
400- add Patch100 for autofit-cjk
401
402* Fri Feb 24 2006 Shu KONNO <owa@bg.wakwak.com> 2.1.10-0vl5
403- added --libdir=%%{_libdir} to make setup
404- added CC='gcc -m32' before make setup if compat32
405
406* Sun Feb 12 2006 NAKAMURA Kenta <kenta@c.csce.kyushu-u.ac.jp> 2.1.10-0vl4
407- added compat32-* packages for x86_64 architecture support
408
409* Thu Oct 13 2005 Daisuke SUZUKI <daisuke@linux.or.jp> 2.1.10-0vl3
410- add upstream patches (from MDK)
411  - add Patch13 to fix memleak
412  - add Patch14 to put back internal API, used by XOrg
413  - add Patch15 to fix bad anti-aliasing
414
415* Sat Oct 01 2005 Daisuke SUZUKI <daisuke@linux.or.jp> 2.1.10-0vl2
416- add upstream patches (from MDK)
417  - add Patch10 to add fixes from CVS
418  - add Patch11 to fix autofit render setup
419  - add Patch12 to fix kerning
420- add Patch20 (enable bytecode interpreter), but not applied by default
421
422* Tue Sep  6 2005 AKIYAMA Kazuhito <akiyama@yb3.so-net.ne.jp> 2.1.10-0vl1
423- new upstream release
424- drop Patch1 (auto-hinter has been replaced with a new module)
425- drop Patch2 (included in freetype-2.1.8)
426- add pkgconfig file
427
428* Fri Apr 16 2004 Daisuke SUZUKI <daisuke@linux.or.jp> 2.1.7-0vl4
429- add xtt2-1.2a related patch which is merged in CVS.
430  (http://x-tt.sourceforge.jp/index_nippon.html)
431
432* Thu Apr 01 2004 Tomoya TAKA <taka@vinelinux.org> 2.1.7-0vl3
433- add a fix from Fedora freetype-2.1.7-3
434  * Wed Mar 10 2004 Mike A. Harris <mharris@redhat.com> 2.1.7-3
435  - Added -fno-strict-aliasing to CFLAGS and CXXFLAGS to try to fix SEGV and
436    SIGILL crashes in mkfontscale which have been traced into freetype and seem
437    to be caused by aliasing issues in freetype macros
438
439* Wed Dec 10 2003 KOBAYASHI R. Taizo <tkoba@vinelinux.org> 2.1.7-0vl2
440- update patch1
441
442* Sun Nov 09 2003 Daisuke SUZUKI <daisuke@linux.or.jp> 2.1.7-0vl1
443- new upstream release
444
445* Sat Sep 27 2003 AKIYAMA Kazuhito <akiyama@yb3.so-net.ne.jp> 2.1.5-0vl2
446- rebuild for VineSeed
447
448* Sat Sep 27 2003 AKIYAMA Kazuhito <akiyama@yb3.so-net.ne.jp> 2.1.5-0vl1
449- source upgrade
450- add Patch1 from http://www.kde.gr.jp/~akito/
451- remove Source1
452- remove Patch0 (no need to 2.1.5)
453
454* Wed Aug 06 2003 Daisuke SUZUKI <daisuke@linux.or.jp> 2.1.4-0vl2
455- correct License tag from GPL to GPL/FTL dual license
456  - FTL: The FreeType Project License
457
458* Wed Apr  9 2003 AKIYAMA Kazuhito <akiyama@yb3.so-net.ne.jp> 2.1.4-0vl1
459- source upgrade
460
461* Sat Dec  7 2002 AKIYAMA Kazuhito <akiyama@yb3.so-net.ne.jp> 2.1.3-0vl1
462- source and patch upgrade
463
464* Thu Dec  5 2002 AKIYAMA Kazuhito <akiyama@yb3.so-net.ne.jp> 2.1.2-0vl3
465- rebuild with new toolchain
466
467* Wed Aug 21 2002 AKIYAMA Kazuhito <akiyama@yb3.so-net.ne.jp> 2.1.2-0vl2
468- add Patch0 to fix problem to Dyna-Font
469
470* Mon Jul 23 2002 AKIYAMA Kazuhito <akiyama@yb3.so-net.ne.jp> 2.1.2-0vl1
471- source upgrade
472- add %{_datadir}/aclocal/freetype2.m4 to -devel
473
474* Mon Jan 28 2002 MATSUBAYASHI Kohji <shaolin@vinelinux.org> 2.0.6-0vl2
475- modified %%build section
476
477* Wed Jan 16 2002 AKIYAMA Kazuhito <akiyama@karen.servepics.com> 2.0.6-0vl1
478- source update
479- add ftdocs
480
481* Fri Nov 23 2001 MATSUBAYASHI Kohji <shaolin@vinelinux.org> 2.0.1-0vl5
482- small build fix
483
484* Wed May  9 2001 Akira TAGOH <tagoh@gnome.gr.jp> 2.0.1-0vl4
485- Added Requires for -devel
486- Fixed config path
487
488* Mon Apr 23 2001 Kazuhisa TAKEI <takei@vinelinux.org> 2.0.1-0vl3
489- add %{_bindir} in devel package's %file section.
490
491* Tue Jan  9 2001 Akira TAGOH <tagoh@gnome.gr.jp> 2.0.1-0vl2
492- Added %defattr.
493
494* Sun Dec 17 2000 Akira TAGOH <tagoh@gnome.gr.jp> 2.0.1-0vl1
495- Initial revision.
496
Note: See TracBrowser for help on using the repository browser.